1

Closed

Optimizer

description

Hi,

Firstly thank you for taking on the work to make rawr viable again, I have downloaded the 5.2 WPF version and i am unable to run optimizer, unsure what to try? gives me the following

at Rawr.RandomSuffix.GetStatValue(Item item, Int32 id, AdditiveStat stat)
at Rawr.Reforging.GetReforgingOptions(Item baseItem, Int32 randomSuffixId, AdditiveStat[] reforgeStatsFrom, AdditiveStat[] reforgeStatsTo)
at Rawr.Mage.CalculationsMage.GetReforgingOptions(Item baseItem, Int32 randomSuffixId)
at Rawr.Optimizer.AvailableItemGenerator.GetPossibleGemmedItemsForItem(Item item, Int32 randomSuffixId, String gemmedId, ItemAvailabilityInformation availability)
at Rawr.Optimizer.AvailableItemGenerator.PopulateAvailableIds(Boolean positiveCostItemsAvailable)
at Rawr.Optimizer.AvailableItemGenerator..ctor(List1 availableItems, Boolean generateDirectUpgrades, Boolean templateGemsEnabled, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean slotFiltering, Boolean positiveCostItemsAvailable, Character[] characters, CalculationsBase[] models)
at Rawr.Optimizer.ItemInstanceOptimizer.PopulateAvailableIds(List
1 availableItems, Boolean templateGemsEnabled, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean positiveCostItemsAvailable)
at Rawr.Optimizer.ItemInstanceOptimizer.InitializeItemCache(Character character, List1 availableItems, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean templateGemsEnabled, CalculationsBase model, Boolean optimizeFood, Boolean optimizeElixirs, Boolean mixology, List1 talentSpecs, Boolean mutateTalents, Boolean mutateGlyphs, Boolean positiveCostItemsAvailable)
at Rawr.UI.OptimizeWindow.OptimizeButton_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Closed Nov 27, 2013 at 5:20 PM by dopefish
Closing because I believe this is an issue with randomly enchanted gear. If it continues to be an problem after trying 5.4.2, please open a new issue.

comments

dopefish wrote May 9, 2013 at 8:31 PM

Can you tell me the name and realm of your character? Thank you.

masterben wrote May 9, 2013 at 9:14 PM

I thank you for all your work on this tool. I am having the same problem. My character name is Aliester. My realm is Crushridge.

Here's the info I was given from the Optimizer tool. The first sentence is the error message. Thanks again!

Index was outside the bounds of the array.

at Rawr.RandomSuffix.GetStatValue(Item item, Int32 id, AdditiveStat stat)
at Rawr.Reforging.GetReforgingOptions(Item baseItem, Int32 randomSuffixId, AdditiveStat[] reforgeStatsFrom, AdditiveStat[] reforgeStatsTo)
at Rawr.Mage.CalculationsMage.GetReforgingOptions(Item baseItem, Int32 randomSuffixId)
at Rawr.Optimizer.AvailableItemGenerator.GetPossibleGemmedItemsForItem(Item item, Int32 randomSuffixId, String gemmedId, ItemAvailabilityInformation availability)
at Rawr.Optimizer.AvailableItemGenerator.PopulateAvailableIds(Boolean positiveCostItemsAvailable)
at Rawr.Optimizer.AvailableItemGenerator..ctor(List1 availableItems, Boolean generateDirectUpgrades, Boolean templateGemsEnabled, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean slotFiltering, Boolean positiveCostItemsAvailable, Character[] characters, CalculationsBase[] models)
at Rawr.Optimizer.ItemInstanceOptimizer.PopulateAvailableIds(List
1 availableItems, Boolean templateGemsEnabled, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean positiveCostItemsAvailable)
at Rawr.Optimizer.ItemInstanceOptimizer.InitializeItemCache(Character character, List1 availableItems, Boolean overrideRegem, Boolean overrideReenchant, Boolean overrideReforge, Boolean templateGemsEnabled, CalculationsBase model, Boolean optimizeFood, Boolean optimizeElixirs, Boolean mixology, List1 talentSpecs, Boolean mutateTalents, Boolean mutateGlyphs, Boolean positiveCostItemsAvailable)
at Rawr.UI.OptimizeWindow.OptimizeButton_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

qdos wrote May 9, 2013 at 10:50 PM

Apologies - Realm EU Dunemaul - character Qdos 90 Mage. Thank you in advance

dopefish wrote May 10, 2013 at 3:59 AM

It appears that there are some newly added items with random secondary stats that are messing up Rawr right now. I will look into it further when I get more time. Thank you!