Build a two-lane road with a crossing as illustrated in the screenshot
Choose "Traffic Lights" from the "Road Services" tab
Click on the crossing
An error pops up
Expected behaviour
The TLE panel should open without any errors.
Screenshots
Error message[CRITICAL] System update error during ToolUpdate NullReferenceException: Object reference not set to an instance of an object at Unity.Entities.EntityComponentStore.Exists (Unity.Entities.Entity entity) [0x00007] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityComponentStore.HasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType type) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityDataAccess.HasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType type) [0x00006] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityDataAccess.AddComponentDuringStructuralChange (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType, Unity.Entities.SystemHandle& originSystem) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityManager.AddComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) [0x0000c] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityManager.AddComponentData[T] (Unity.Entities.Entity entity, T componentData) [0x00006] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.UpdateEntity () [0x00133] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.UpdateLaneDirectionTool () [0x0043d] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.ChangeSelectedEntity (Unity.Entities.Entity entity) [0x001fd] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.Patches.SetAppliedUpgrade (Game.Tools.NetToolSystem __instance, System.Boolean removing) [0x000db] in <5567c1ee9dd44665b834e5e9931e4046>:0 at (wrapper dynamic-method) Game.Tools.NetToolSystem.DMD<Game.Tools.NetToolSystem::SetAppliedUpgrade>(Game.Tools.NetToolSystem,bool) at Game.Tools.NetToolSystem.Apply (Unity.Jobs.JobHandle inputDeps) [0x00062] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Game.Tools.NetToolSystem.OnUpdate (Unity.Jobs.JobHandle inputDeps) [0x002d6] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Game.Tools.ToolBaseSystem.OnUpdate () [0x00008] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Unity.Entities.SystemBase.Update () [0x0004e] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Game.UpdateSystem.Update (Game.SystemUpdatePhase phase) [0x0004e] in <1612d666569f4a8aaf5062d9fcaab733>:0 Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:LogFormat(LogType, String, Object[]) Colossal.Logging.UnityLogger:Log(Level, String, Exception) Colossal.Logging.UnityLogger:CriticalFormat(Exception, String, Object) Game.UpdateSystem:Update(SystemUpdatePhase) Game.Tools.ToolSystem:ToolUpdate() Game.Tools.ToolSystem:OnUpdate() Unity.Entities.SystemBase:Update() Game.UpdateSystem:Update(SystemUpdatePhase) Game.SceneFlow.GameManager:UpdateWorld() Game.SceneFlow.GameManager:Update()
To Reproduce
Expected behaviour The TLE panel should open without any errors.
Screenshots![PNG image 3](https://github.com/slyh/Cities2-TrafficLightsEnhancement/assets/80482978/cc35322d-e385-4ed6-9199-a89ca67bb4bc)
Error message
[CRITICAL] System update error during ToolUpdate NullReferenceException: Object reference not set to an instance of an object at Unity.Entities.EntityComponentStore.Exists (Unity.Entities.Entity entity) [0x00007] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityComponentStore.HasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType type) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityDataAccess.HasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType type) [0x00006] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityDataAccess.AddComponentDuringStructuralChange (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType, Unity.Entities.SystemHandle& originSystem) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityManager.AddComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) [0x0000c] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.EntityManager.AddComponentData[T] (Unity.Entities.Entity entity, T componentData) [0x00006] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.UpdateEntity () [0x00133] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.UpdateLaneDirectionTool () [0x0043d] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.UISystem.ChangeSelectedEntity (Unity.Entities.Entity entity) [0x001fd] in <5567c1ee9dd44665b834e5e9931e4046>:0 at C2VM.TrafficLightsEnhancement.Systems.UISystem.Patches.SetAppliedUpgrade (Game.Tools.NetToolSystem __instance, System.Boolean removing) [0x000db] in <5567c1ee9dd44665b834e5e9931e4046>:0 at (wrapper dynamic-method) Game.Tools.NetToolSystem.DMD<Game.Tools.NetToolSystem::SetAppliedUpgrade>(Game.Tools.NetToolSystem,bool) at Game.Tools.NetToolSystem.Apply (Unity.Jobs.JobHandle inputDeps) [0x00062] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Game.Tools.NetToolSystem.OnUpdate (Unity.Jobs.JobHandle inputDeps) [0x002d6] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Game.Tools.ToolBaseSystem.OnUpdate () [0x00008] in <1612d666569f4a8aaf5062d9fcaab733>:0 at Unity.Entities.SystemBase.Update () [0x0004e] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Game.UpdateSystem.Update (Game.SystemUpdatePhase phase) [0x0004e] in <1612d666569f4a8aaf5062d9fcaab733>:0 Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:LogFormat(LogType, String, Object[]) Colossal.Logging.UnityLogger:Log(Level, String, Exception) Colossal.Logging.UnityLogger:CriticalFormat(Exception, String, Object) Game.UpdateSystem:Update(SystemUpdatePhase) Game.Tools.ToolSystem:ToolUpdate() Game.Tools.ToolSystem:OnUpdate() Unity.Entities.SystemBase:Update() Game.UpdateSystem:Update(SystemUpdatePhase) Game.SceneFlow.GameManager:UpdateWorld() Game.SceneFlow.GameManager:Update()