Cities: Skylines

Cities: Skylines

Mini FPS Booster
meda22 22 Feb, 2020 @ 3:28pm
Array index is out of range
Hi,

During game session, I've got error "Array index is out of range" error... when I checked output.log, I found this:

IndexOutOfRangeException: Array index is out of range.
at ColossalFramework.PoolList`1<ColossalFramework.UI.UIComponent>.get_Item (int) <0x00071>
at Mini_FPS_Booster.Patch.UIRaycast.Prefix (ColossalFramework.UI.UIComponent,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x0041a>
at (wrapper dynamic-method) ColossalFramework.UI.UIComponent.Raycast_Patch1 (object,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x00095>
at (wrapper dynamic-method) ColossalFramework.UI.UIView.RaycastAll_Patch1 (object,UnityEngine.Ray) <0x000e1>
at ColossalFramework.UI.UIInput.ProcessMouseInput () <0x0023b>
at ColossalFramework.UI.UIInput.Update () <0x00055>


(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at ColossalFramework.UI.UIComponent.RefreshParentVisibilityCache (Boolean parentVisible) [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UIComponent.set_isVisible (Boolean value) [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UIComponent.Hide () [0x00000] in <filename unknown>:0
at MoreEffectiveTransfer.UI.PlayerBuildingUI.RefreshDisplayData () [0x00000] in <filename unknown>:0
at MoreEffectiveTransfer.UI.PlayerBuildingUI.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

GfxDevice: creating device client; threaded=1
GfxDevice: creating device client; threaded=1
GfxDevice: creating device client; threaded=1
GfxDevice: creating device client; threaded=1
IndexOutOfRangeException: Array index is out of range.
at ColossalFramework.PoolList`1<ColossalFramework.UI.UIComponent>.get_Item (int) <0x00071>
at Mini_FPS_Booster.Patch.UIRaycast.Prefix (ColossalFramework.UI.UIComponent,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x0041a>
at (wrapper dynamic-method) ColossalFramework.UI.UIComponent.Raycast_Patch1 (object,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x00095>
at Mini_FPS_Booster.Patch.UIRaycast.Prefix (ColossalFramework.UI.UIComponent,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x004b4>
at (wrapper dynamic-method) ColossalFramework.UI.UIComponent.Raycast_Patch1 (object,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x00095>
at (wrapper dynamic-method) ColossalFramework.UI.UIView.RaycastAll_Patch1 (object,UnityEngine.Ray) <0x000e1>
at ColossalFramework.UI.UIInput.ProcessMouseInput () <0x0023b>
at ColossalFramework.UI.UIInput.Update () <0x00055>


(Filename: Line: -1)

IndexOutOfRangeException: Array index is out of range.
at ColossalFramework.PoolList`1<ColossalFramework.UI.UIComponent>.get_Item (int) <0x00071>
at Mini_FPS_Booster.Patch.UIRaycast.Prefix (ColossalFramework.UI.UIComponent,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x0041a>
at (wrapper dynamic-method) ColossalFramework.UI.UIComponent.Raycast_Patch1 (object,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x00095>
at Mini_FPS_Booster.Patch.UIRaycast.Prefix (ColossalFramework.UI.UIComponent,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x004b4>
at (wrapper dynamic-method) ColossalFramework.UI.UIComponent.Raycast_Patch1 (object,UnityEngine.Ray,System.Collections.Generic.IList`1<ColossalFramework.UI.UIHitInfo>) <0x00095>
at (wrapper dynamic-method) ColossalFramework.UI.UIView.RaycastAll_Patch1 (object,UnityEngine.Ray) <0x000e1>
at ColossalFramework.UI.UIInput.ProcessMouseInput () <0x0023b>
at ColossalFramework.UI.UIInput.Update () <0x00055>


So I am just wondering if this problem is coming from FPS booster (as it is mentioned there) or if I should look elsewhere... or if it is a know issue.

Thank you!
< >
Showing 1-6 of 6 comments
Krzychu1245  [developer] 7 Mar, 2020 @ 12:38pm 
Sorry for late response, just noticed that I'm not subscribed to discussions forum. I doubt that's problem with FPS Booster because probably without it you would get exact same exception (IndexOutOfRangeException: Array index is out of range).
Maybe some mod does something weird with UI which breaks Mini FPS Booster. Hard to say what is going on and it shouldn't gonna happen under normal conditions.
meda22 8 Mar, 2020 @ 3:13am 
No problem at all ;) And thanks for answer.

Actually, it wasn't any game breaking problem - I just wanted to raise it up to find out in case of potential bug (let's say it's coming from my professional deformation one could say :D).

Anyway - you are right, I am building new city now and I don't get these errors with FPS Booster anymore (I still have it subscribed) but more generic. So it seems some other mod handle UI incorrectly. (now it looks like from Render It! mod which throws even some Harmony errors)
Krzychu1245  [developer] 8 Mar, 2020 @ 9:24am 
Harmony is another issue that we (modders) don't really know how to resolve right.
A lot of mods use it but different versions. Sometimes it's 1.2.0.1, sometimes 2.0.0.x and even custom builds. The problem is that v1.x is incompatible with 2.x and Mono runtime compiler doesn't help with solving that issue(creates even more problems). Because of above issues when you try reload savegame without closing, the game probably will crash at the end of loading process :/
meda22 8 Mar, 2020 @ 10:55am 
I see, thanks for clarification - I suppose that is always an issue of modding ... that it isn't "standardised" and different developers use different stuff. But one - as just a mod consumer - has to appreciate what are mod developers able to do and their time they invest to mods development :)
tyler.fetty 7 Jul, 2020 @ 3:57pm 
Originally posted by Krzychu1245:
Harmony is another issue that we (modders) don't really know how to resolve right.
A lot of mods use it but different versions. Sometimes it's 1.2.0.1, sometimes 2.0.0.x and even custom builds. The problem is that v1.x is incompatible with 2.x and Mono runtime compiler doesn't help with solving that issue(creates even more problems). Because of above issues when you try reload savegame without closing, the game probably will crash at the end of loading process :/
but, aren't you the developer?
Krzychu1245  [developer] 7 Jul, 2020 @ 4:15pm 
Originally posted by tyler.fetty:
Originally posted by Krzychu1245:
Harmony is another issue that we (modders) don't really know how to resolve right.
A lot of mods use it but different versions. Sometimes it's 1.2.0.1, sometimes 2.0.0.x and even custom builds. The problem is that v1.x is incompatible with 2.x and Mono runtime compiler doesn't help with solving that issue(creates even more problems). Because of above issues when you try reload savegame without closing, the game probably will crash at the end of loading process :/
but, aren't you the developer?
What do you mean?
< >
Showing 1-6 of 6 comments
Per page: 1530 50