Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array Index spam #300

Open
mrflylice opened this issue Dec 31, 2022 · 1 comment
Open

Array Index spam #300

mrflylice opened this issue Dec 31, 2022 · 1 comment
Labels
not an issue The described behavior is not an issue or is not caused by Real Time

Comments

@mrflylice
Copy link

During gameplay, I repeatedly get spammed with a pop-up error window that says the following:

Array index is out of range. [System.IndexOutOfRangeException]

Details:
No details

When I open my output file, I find the following:

Simulation error: Array index is out of range.
at (wrapper dynamic-method) DisasterManager.DisasterManager.IsEvacuating_Patch0 (DisasterManager,UnityEngine.Vector3) <0x000e5>
at RealTime.GameConnection.CitizenManagerConnection.IsAreaEvacuating (uint16) <0x000be>
at RealTime.CustomAI.RealTimeTouristAI2<TouristAI, Citizen>.ProcessMoving (TouristAI,uint,Citizen&) <0x00127> at RealTime.CustomAI.RealTimeTouristAI2<TouristAI, Citizen>.UpdateLocation (TouristAI,uint,Citizen&) <0x00177>
at RealTime.GameConnection.Patches.TouristAIPatch/TouristAI_UpdateLocation.Prefix (TouristAI,uint,Citizen&) <0x00043>
at (wrapper dynamic-method) TouristAI.TouristAI.UpdateLocation_Patch1 (TouristAI,uint,Citizen&) <0x0004f>
at TouristAI.SimulationStep (uint,Citizen&) <0x0002b>
at (wrapper dynamic-method) CitizenManager.CitizenManager.SimulationStepImpl_Patch1 (CitizenManager,int) <0x00168>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at CitizenManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>
[Core]

My mods, apart from real time, are as follows:
-Vehicle Selector 1.4
-Unlimited Outside Connections Revisited 1.1
-Prop Anarchy 0.7.6
-Move It
-Extended Managers Library 1.0.3
-Extra Vehicle Effects 0.4
-FPS Booster
-Patch Loader Mod
-81 Tiles 2
-Realistic Population 2 2.2.2
-Lifecycle Reblance Revisited 1.6.5
-More Network Stuff
-Prefab Hook (Mod Dependency)
-Configure Outside Connections' Limits
-Optimised Outside Connections
-Achieve It!
-Theme Decals
-Rebalanced Industries
-Vehicle Effects 1.9.4
-Bee's North America Sound Pack
-Ambient Sounds Tuner 2.0
-Parallel Road Tool
-Environment Changer
-Harmony 2.2.2-0 (Mod Dependency) [1.16.0-f3 compatible]
-Broken Nodes Detector
-TM:PE 11.7.3.1 STABLE (Traffic Manager: President Edition)

@dymanoid
Copy link
Owner

dymanoid commented Jan 7, 2023

This issue is not caused by Real Time. There is some other mod that patches the method DisasterManager.IsEvacuating which is called by Real Time. When Real Time calls that method, the other mod's patch jumps in and tries to do something but fails due to an error in the mod code.

Unfortunately, it's not possible to say from the logs which mod patches the DisasterManager code. You might check your mods for any Natural Disasters related ones. Alternatively, you could ask in the modder community on the Cities: Skylines Discord server.

@dymanoid dymanoid added the not an issue The described behavior is not an issue or is not caused by Real Time label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue The described behavior is not an issue or is not caused by Real Time
Projects
None yet
Development

No branches or pull requests

2 participants