Cities: Skylines

Cities: Skylines

Mini FPS Booster
meda22 2020 年 2 月 22 日 下午 3:28
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!
< >
正在显示第 1 - 6 条,共 6 条留言
Krzychu1245  [开发者] 2020 年 3 月 7 日 下午 12:38 
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 2020 年 3 月 8 日 上午 3:13 
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  [开发者] 2020 年 3 月 8 日 上午 9:24 
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 2020 年 3 月 8 日 上午 10:55 
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 2020 年 7 月 7 日 下午 3:57 
引用自 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  [开发者] 2020 年 7 月 7 日 下午 4:15 
引用自 tyler.fetty
引用自 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?
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50