Asset Manager Exception

Have a question about how to mod something? Or have an issue with one of our mod tools? Post here.

Moderators: Balthagor, Moderators

Post Reply
smygsork
Lieutenant
Posts: 99
Joined: Oct 03 2009
Human: Yes
Location: Sweden

Asset Manager Exception

Post by smygsork »

I've been playing around with the scenario creator the last week and it works pretty well once you start getting into it. So I thought I'd give the asset manager a go as well to edit the Unit file.

However when I tried using the function to edit multiple lines at the same time (add/divide/multiply etc.) the editor throws an exception and nothing happens.
The problem seems related to this previous thread as it throws the same exception from what I can tell: https://www.bgforums.com/forums/viewtop ... 92&t=30342. But it doesn't occur on load and only when editing multiple lines (a single line by editing the value in the cell is fine).

Here's an image example of what it looks like (error message in Swedish):
Image

I tried switching the language and localization/formatting to English (US) as it seemed to work in the other case, but I'm still getting the same exception, this is the stacktrace in the error messages "information":

Code: Select all

System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Int32.Parse(String s)
   at Asset_Manager.AssetManagerForm.<>c.<ApplyColumnMath>b__88_0(DataRow o)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Asset_Manager.AssetManagerForm.ApplyColumnMath(String function)
   at Asset_Manager.Function.button1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Post Reply

Return to “Modding Issues & Support”