#My City suddenly isn't loading any more

52 messages · Page 1 of 1 (latest)

quiet nexus
#

I have been working on this city for months and it was working fine until a few weeks ago when it stopped loading and started giving the error: Argument is out of range. Parameter name: index [System.ArgumentOutOfRangeException]

I have a fairly large mod list but have checked the Compatibility Report and nothing seems to be the obvious issue. Are there any steps I can take to try to get the city back? Mods that often cause this problem I might have? Is there any information/files I can put here to make finding the problem easier?

Please save my 300k+ population city from deletion

real meteor
#

!logs

vapid oasisBOT
#
The following files are necessary to identify the cause of your issue(s):

Output / Player log
Windows (output_log.txt):
[steam folder]\steamapps\common\Cities_Skylines\Cities_Data\
macOS (Player.log):
~/Library/Logs/Unity/
Linux (Player.log):
~/.config/unity3d/Colossal Order/Cities: Skylines/

TM:PE logs
(TMPE.log)
Windows:
[steam folder]\steamapps\common\Cities_Skylines\Cities_Data\
macOS:
~/Library/Application Support/Steam/steamapps/common/Cities_Skylines > right-click and select "Show Package Options" (Yosemite users: "Open in new tab"). The log can then be found in the new tab: Contents/TMPE.log
Linux:
~/.config/unity3d/Colossal Order/Cities: Skylines/

Loading Screen Mod (LSM)
Windows:
%localappdata%\Colossal Order\Cities_Skylines\Report\LoadingScreenMod
macOS:
~/Library/Application Support/Colossal Order/Cities_Skylines/
Linux:
~/.local/share/Colossal Order/Cities_Skylines/Report/LoadingScreenMod/

Compatibility Report
Step 1: Subscribe to the mod and look at the report it generates when launching the game, found at C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Cities_Data by default.
Step 2: Unsubscribe from anything with "major issues" and check for up-to-date replacements of "mods you should or could unsubscribe."

quiet nexus
#

those are the Output logs and TMPE logs respectively

#

I have gone through the compatability report and solved any major issues

ancient ridge
#

it looks like you have some outdated mods, try uninstalling them and reinstalling them on the steam workshop, and see if that fixes it

quiet nexus
quiet nexus
#

after doing this I now get the error:

#

Object reference not set to an instance of an object [System.NullReferenceException]

Details:
No details

quiet nexus
#

I tried Disabling and Re-enabling all of my mods and I got this error A Mod caused an error [System.Exception]

Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at EManagersLib.Patches.EDefaultToolPatch+<RenderOverlayTranspiler>d__3.MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List1[HarmonyLib.CodeInstruction].AddEnumerable (IEnumerable1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List1[HarmonyLib.CodeInstruction]..ctor (IEnumerable1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToList[CodeInstruction] (IEnumerable1 source) [0x00000] in <filename unknown>:0 at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00000] in <filename unknown>:0 at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List1 transpilers, System.Collections.Generic.List`1 endLabels, System.Boolean

#

seems to be a problem with the Harmony Mod dependency and Extended Managers Library

#

After clicking OK I get a second error

#

LoadOrderMod.Patches.ContentManager.PluginInfo_SetIsEnable failed. [System.Exception]

Details:
HarmonyLib.HarmonyException: Patching exception in method System.Void ColossalFramework.Plugins.PluginInfo::set_isEnabled(System.Boolean value) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List1[HarmonyLib.CodeInstruction].get_Item (Int32 index) [0x00000] in <filename unknown>:0 at KianCommons.Patches.TranspilerUtils.ReplaceInstructions (System.Collections.Generic.List1 codes, HarmonyLib.CodeInstruction[] insertion, Int32 index) [0x00000] in <filename unknown>:0
at KianCommons.Patches.TranspilerExtensions.ReplaceInstruction (System.Collections.Generic.List1 codes, Int32 index, HarmonyLib.CodeInstruction insertion) [0x00000] in <filename unknown>:0 at LoadOrderMod.Patches.ContentManager.PluginInfo_SetIsEnable.Transpiler (IEnumerable1 instructions) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

#

Once again mentioning Harmony

#

Then after clicking OK again, I get a third error

#

LoadOrderMod.Patches.ContentManager.SetActivePatch failed. [System.Exception]

Details:
HarmonyLib.HarmonyException: Patching exception in method System.Void EntryData::SetActive(System.Boolean active) ---> System.Exception: Assertion failed: expected 0 == 1

#

Another Error, number 4

#

A Mod caused an error [System.Exception]

Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ColossalFramework.GameSettingsException: System.ArgumentException An element with the same key already exists in the dictionary. ---> System.ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,ColossalFramework.SettingsFile].Add (System.String key, ColossalFramework.SettingsFile value) [0x00000] in <filename unknown>:0
at ColossalFramework.GameSettings.InternalAddSettingsFile (ColossalFramework.SettingsFile[] settingsFiles) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at ColossalFramework.GameSettings.InternalAddSettingsFile (ColossalFramework.SettingsFile[] settingsFiles) [0x00000] in <filename unknown>:0
at ColossalFramework.GameSettings.AddSettingsFile (ColossalFramework.SettingsFile[] settingsFiles) [0x00000] in <filename unknown>:0
at TreeAnarchy.TAMod.OnEnabled () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

#

And that's all the errors I get

#

The last one mentions Tree Anarchy as well

quiet nexus
#

UPDATE I was able to load a much older version of the city without problems, so it must be something wrong with my current save I am trying to load from.

After trying to load the latest save, I got a new error that I haven't seen before:

Exception has been thrown by the target of an invocation. [System.Reflection.TargetInvocationException]

Details:
System.IndexOutOfRangeException: Array index is out of range.
at (wrapper dynamic-method) DistrictManager.DistrictManager.GetDistrict_Patch0 (DistrictManager,UnityEngine.Vector3) <0x000dc>
at RoadBaseAI.GetMaintenanceCost (UnityEngine.Vector3,UnityEngine.Vector3) <0x0011d>
at IntersectionAI.EnsureCosts () <0x00221>
at IntersectionAI.GetMaintenanceCost () <0x0001c>
at BuildingAI.GetLocalizedTooltip () <0x00022>
at PrefabInfo.GetLocalizedTooltip () <0x00595>
at GeneratedScrollPanel.CreateAssetItem (PrefabInfo) <0x00022>
at GeneratedScrollPanel.PopulateAssets (GeneratedScrollPanel/AssetFilter,System.Comparison1<PrefabInfo>,bool) <0x00090> at GeneratedScrollPanel.PopulateAssets (GeneratedScrollPanel/AssetFilter,System.Comparison1<PrefabInfo>) <0x0002f>
at RoadsPanel.RefreshPanel () <0x0007c>
at GeneratedGroupPanel.SpawnButtonEntry (ColossalFramework.UI.UITabstrip,string,string,bool,string,string,string,bool,bool) <0x003e3>
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception

real meteor
#

Did you check your compatibility report? Post it if you need help. Many errors are because of outdated mods or assets that have mods as dependencies. Posting the LSM report would help too.

lethal widget
#

!logs

vapid oasisBOT
#
The following files are necessary to identify the cause of your issue(s):

Output / Player log
Windows (output_log.txt):
[steam folder]\steamapps\common\Cities_Skylines\Cities_Data\
macOS (Player.log):
~/Library/Logs/Unity/
Linux (Player.log):
~/.config/unity3d/Colossal Order/Cities: Skylines/

TM:PE logs
(TMPE.log)
Windows:
[steam folder]\steamapps\common\Cities_Skylines\Cities_Data\
macOS:
~/Library/Application Support/Steam/steamapps/common/Cities_Skylines > right-click and select "Show Package Options" (Yosemite users: "Open in new tab"). The log can then be found in the new tab: Contents/TMPE.log
Linux:
~/.config/unity3d/Colossal Order/Cities: Skylines/

Loading Screen Mod (LSM)
Windows:
%localappdata%\Colossal Order\Cities_Skylines\Report\LoadingScreenMod
macOS:
~/Library/Application Support/Colossal Order/Cities_Skylines/
Linux:
~/.local/share/Colossal Order/Cities_Skylines/Report/LoadingScreenMod/

Compatibility Report
Step 1: Subscribe to the mod and look at the report it generates when launching the game, found at C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Cities_Data by default.
Step 2: Unsubscribe from anything with "major issues" and check for up-to-date replacements of "mods you should or could unsubscribe."

quiet nexus
#

only missing assets aren't on the workshop anymore

#

I dealt with all the major issues on the compatability report

real meteor
#

The output_log.txt files still shows outdated/broken mods (I.e. Theme Mixer 2) Could please try to load your save again and post the new output_log.txt

quiet nexus
#

will do

real meteor
#

I wish I had an answer for you on this. Your mods seem fine as well does your assets.

quiet nexus
#

my current theory is that there are too many trees (I've learnt too much from Phil), do you know of a mod that could just remove them all before loading?

real meteor
#

Most the errors are from HideCrossWalk and Advanced Vehicle Options. No I don't know how to do that on purpose, most people right now are complaining that all their trees have disappeared.

quiet nexus
#

I can remove both of those mods

#

I don't use them often at all

real meteor
#

For some mods, you can't get remove them without save loading errors, but those two should be fine, but I think there is another problem causing all these but haven't been able to narrow it down.

quiet nexus
#

I'll try that first

real meteor
#

Sigh..too many butts

#

Only other thing I can think of in LSM Options is to try to recover from Simulation errors (bottom option) which you select prior to loading save

quiet nexus
#

The weird thing about this is

#

It was fine for a few days after the update in late march

#

but then one day it broke

real meteor
#

I'm sorry to say that I'm out of ideas. Most of the time checking mods & missing network assets resolve these types of issues. In this case, it is something with your save.

quiet nexus
#

Thanks a lot for all the help tho

#

I will start a new city I think

#

and back it up regularly haha

real meteor
#

I have autosave turned on, but I don't depend on it. I usually save a new map file every time I stop, and after any big map changes (usually before I make the change and then another afterwards) - Always change the number at the end. On one of my cities, I have over 400 save files but disk space is cheap.