• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
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+ModInfo_OnLoad (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager.InitializeMods (Game.UpdateSystem updateSystem)
 
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+ModInfo_OnLoad (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem)
at Game.Modding.ModManager.InitializeMods (Game.UpdateSystem updateSystem)


Hello!
Indeed there might be some problems with the initial deployment to PDX - got the same problem as you.
Fingers crossed, I was waiting for a mod like this!
 
The discussion thread for the mod.
I keep getting this message it wont work

NullReferenceException: One or more systems are null
at SpeedLimitEditor.Systems.SpeedLimitEditorUISystem.OnCreate () [0x000dd] in E:\Repo\Mods\Cities Skylines 2\SpeedLimitMod\Systems\SpeedLimitEditorUISystem.cs:141
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+ModInfo_OnLoad (Game.UpdateSystem updateSystem) [0x00015] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem) [0x00162] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
 
Path in exceptions is ok, this is a debug build, and for now it's better this way - it gives me the line number in the source code where the exception occurred. Can't have just the line number without a path.

@Ulf Vinr @isaacben2022$
Please, write the list of mods you are using.

And the new exception text, from version 0.2.1. I've changed the code a bit. so I'd like to see the new exception, if these minor changes wouldn't help (I don't really expect they would, but maybe).
 
Last edited:
Another one for you:
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+ModInfo_OnLoad (Game.UpdateSystem updateSystem) [0x00015] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0
at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem) [0x00162] in <b32c7d7e7ca9498a8ce0ea5e934fb7a7>:0


Primary code mods in use:
  • Achievement Enabler
  • Asset Icon Library
  • Asset Packs Manager
  • Bye Bye Homeless
  • Cim Route Highlighter
  • Extended Radio
  • Extended Road Upgrades
  • Extra Asset Importer
  • Extra Detailing Tools
  • Extra Lib
  • Extra Networks and Areas
  • Find It
  • First Person Camera Continued
  • FPS Limiter
  • I18n EveryWhere
  • Line Tool
  • Map Texture Replacer
  • Mio Road Asset Pack
  • Move It
  • No Vehicle Despawn
  • Realistic Trips
  • Scene Explorer
  • Traffic
  • Traffic Lights Enhancement Alpha
  • Traffic Simulation Adjuster
  • Unified Icon Library
  • Vehicle Variation Packs
  • Water Visual Tweaks
  • ZMZ铁路/地铁轨道资产包 ZMZ Train/Subway Track Assets Pack[Beta]
 
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.
 
  • 1Like
Reactions:
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.
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.
 
It was a bit more complicated, also, whole day I was trying to change road props (signs and markings) or at least to delete them, and I guess I'm too stupid for that. Anyway, I'm clearing up the mess, and finishing with at least correct speed values and units. The game doesn't use mph nor km/h, it uses some internal parrots as a unit of measure. In fact, two kinds of parrots, one for CarLane and such, another for road signs...
Upd.: oh, and mph just does not align with signs at all, it's non-linear (or actually, it's simply deliberate choice of speed limit signs and actual speed limits). I aligned internal value to be correct for 35mph, as the middle ground. But roads with 30mph limit on signs have 28mph actual limit value, while roads with 65mph on signs have 70mph actual limit. So... use metric.
 
Last edited:
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.
 
  • 1Like
Reactions:
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.
 
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.
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.