Hello,
When I was starting up my game for the first time after installing the Speed Limit Editor, I had an error message in among all the initialization counters as CS2 loaded up. I disabled the mod on the popup screen, and will rest art the game shortly. This is the error message as shown in Skyuve's 'Help and Logs' feature that seems relevant to Speed Limit Editor.
Please not that there is a path referenced in the error message, namely E:RepoModsCities Skylines 2SpeedLimitModSystemsSpeedLimitEditorUISystem.cs:141. I have no E drive on my computer, so I have no idea why this is mentioned, unless the author accidently lefrt a reference to the computer used to bvuild this mod somewhere inside the mod.
[EXCEPTION] - [22:31:10,230] - (Player.log)
[Modding] [ERROR] Error initializing mod SpeedLimitEditor, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null (SpeedLimitEditor, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null) System.NullReferenceException: One or more systems are null
at SpeedLimitEditor.Systems.SpeedLimitEditorUISystem.OnCreate () in E:RepoModsCities Skylines 2SpeedLimitModSystemsSpeedLimitEditorUISystem.cs:141
at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world)
at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system)
at Unity.Entities.World.CreateSystemInternal (Unity.Entities.SystemTypeIndex type)
at Unity.Entities.World.GetOrCreateSystemManaged (Unity.Entities.SystemTypeIndex typeIndex)
at Unity.Entities.World.GetOrCreateSystemManaged[T] ()
at Game.UpdateSystem.UpdateAt[SystemType] (Game.SystemUpdatePhase phase)
at SpeedLimitEditor.Mod.OnLoad (Game.UpdateSystem updateSystem) in E:RepoModsCities Skylines 2SpeedLimitModMod.cs:32
at Game.Modding.ModManager+ModInfnLoad (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager.InitializeMods (Game.UpdateSystem updateSystem)
I keep getting this message it wont workThe discussion thread for the mod.
NullReferenceException: Object reference not set to an instance of an object
at Game.UI.UISystemBase.AddBinding (Colossal.UI.Binding.IBinding binding) [0x00000] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
at SpeedLimitEditor.Systems.SpeedLimitEditorUISystem.OnCreate () [0x00001] in E:\Repo\Mods\Cities Skylines 2\SpeedLimitMod\Systems\SpeedLimitEditorUISystem.cs:89
at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world) [0x00093] in <ddcd3907f2354f4dba7399da4b0a5375>:0
at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) [0x00011] in <ddcd3907f2354f4dba7399da4b0a5375>:0
at Unity.Entities.World.CreateSystemInternal (Unity.Entities.SystemTypeIndex type) [0x0000f] in <ddcd3907f2354f4dba7399da4b0a5375>:0
at Unity.Entities.World.GetOrCreateSystemManaged (Unity.Entities.SystemTypeIndex typeIndex) [0x0000b] in <ddcd3907f2354f4dba7399da4b0a5375>:0
at Unity.Entities.World.GetOrCreateSystemManaged[T] () [0x00028] in <ddcd3907f2354f4dba7399da4b0a5375>:0
at Game.UpdateSystem.UpdateAt[SystemType] (Game.SystemUpdatePhase phase) [0x00018] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
at SpeedLimitEditor.Mod.OnLoad (Game.UpdateSystem updateSystem) [0x00042] in E:\Repo\Mods\Cities Skylines 2\SpeedLimitMod\Mod.cs:32
at Game.Modding.ModManager+ModInfnLoad (Game.UpdateSystem updateSystem) [0x00015] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem) [0x00162] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
Could you try a new version 0.2.2?Another one for you:
Seems to work fine now - also ingame, thank you!Could you try a new version 0.2.2?
well you are aware of this... i was using this mod in my last play, and see odd numbers. "60" km/h in highway marked as 120km/h i assumed that was a display error in MPH.Also, another bug I found is wrong units. Either original mod, or my inaccurate update, but anyway, the current version uses km/h internally, while the game uses mph.
So, the next update will fix that.
But I'm also trying to figure out the speed limit props - road markings and road signs, so I can set proper props when the speed is changed. If I'll be able to do that, then the next update also include this.
yess solved now the unit error.New version is ready. Fixed units, fixed case when updated road also changes speed of adjacent nodes. I still don't see any reports about crashes on new versions, so it seems minor changes in 0.2.1 did actually fixed it.
you will not see any change in the road markings, but the speed actually changes.I tried it earlier today. It seems to load no problem now but unfortunately, it doesn’t do anything when you click on the speed limit icon and try to upgrade the road. Tomorrow I will remove the Mod and reinstall it, maybe that will help. I appreciate all the help.
Sorry, I'm not doing it. Modding this game is a developer's hell. Unity ECS is overcomplicated and poorly documented by itself, and it's overcomplicated even further by the game, to the point where it's practically an enterprise application and there's no documentation whatsoever on game's APIs and types from developers.I tried it earlier today. It seems to load no problem now but unfortunately, it doesn’t do anything when you click on the speed limit icon and try to upgrade the road. Tomorrow I will remove the Mod and reinstall it, maybe that will help. I appreciate all the help.