ST-Apps / CS2-ExtendedRoadUpgrades

A mod that enables multiple upgrade options for your roads.
Other
38 stars 4 forks source link

Error with new versions 1.2.0 & 1.2.1 #21

Closed Herjendil closed 10 months ago

Herjendil commented 10 months ago

Hi, the update to 1.2.0 and 1.2.1 brings an error in my save game. All bridges now have quay walls, underground subway tracks have retaining walls... Sorry... I have to go back to 1.1.1. Everything works there.

BepInEx 5.4.21.0

Ingame Error: [ERROR] Error in trigger binding callback 'toolbar.selectAsset' 'toolbar' 'selectAsset' NullReferenceException: Object reference not set to an instance of an object at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.UpdateCanUpdate () [0x0002c] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.set_CurrentNetTool (Game.Tools.ToolBaseSystem value) [0x00007] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.OnToolChanged (Game.Tools.ToolBaseSystem tool) [0x00000] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at (wrapper delegate-invoke) System.Action1[Game.Tools.ToolBaseSystem].invoke_void_T(Game.Tools.ToolBaseSystem) at Game.Tools.ToolSystem.set_activeTool (Game.Tools.ToolBaseSystem value) [0x00020] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.Tools.ToolSystem.ActivatePrefabTool (Game.Prefabs.PrefabBase prefab) [0x00028] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.ActivatePrefabTool (Unity.Entities.Entity assetEntity) [0x0003e] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.SelectAsset (Unity.Entities.Entity assetEntity, System.Boolean updateTool) [0x000be] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.SelectAsset (Unity.Entities.Entity asset) [0x00000] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Colossal.UI.Binding.TriggerBinding1[T].Callback () [0x00013] in <a8a5c7013ee54612a95b336ebf357256>: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:Error(Exception, Object) Colossal.UI.Binding.TriggerBinding1:Callback() System.Reflection.RuntimeMethodInfo:InternalInvoke(RuntimeMethodInfo, Object, Object[], Exception&) System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) cohtml.Net.Invoker:ExecuteAndSendResult(Binder, Delegate, Object[], Boolean) cohtml.Net.Invoker:Invoke(Int32) cohtml.Net.cohtmlNativePINVOKE:View_MouseEvent(HandleRef, HandleRef) cohtml.Net.View:MouseEvent(IMouseEventData) Colossal.UI.UIInputSystem:DispatchInputEvents(UIView, Boolean, InputEventType) Colossal.UI.UIInputSystem:DispatchInputEvents() Game.SceneFlow.GameManager:Update() `

BepInEx error: [Error : Unity Log] [UI] [ERROR] Error in trigger binding callback 'toolbar.selectAsset' 'toolbar' 'selectAsset' System.NullReferenceException: Object reference not set to an instance of an object at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.UpdateCanUpdate () [0x0002c] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.set_CurrentNetTool (Game.Tools.ToolBaseSystem value) [0x00007] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at ExtendedRoadUpgrades.Systems.NodeRetainingWallUpdateSystem.OnToolChanged (Game.Tools.ToolBaseSystem tool) [0x00000] in <fc1ba74b903b4a3e8ed0ea948b8fa0cc>:0 at (wrapper delegate-invoke) System.Action1[Game.Tools.ToolBaseSystem].invoke_void_T(Game.Tools.ToolBaseSystem) at Game.Tools.ToolSystem.set_activeTool (Game.Tools.ToolBaseSystem value) [0x00020] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.Tools.ToolSystem.ActivatePrefabTool (Game.Prefabs.PrefabBase prefab) [0x00028] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.ActivatePrefabTool (Unity.Entities.Entity assetEntity) [0x0003e] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.SelectAsset (Unity.Entities.Entity assetEntity, System.Boolean updateTool) [0x000be] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Game.UI.InGame.ToolbarUISystem.SelectAsset (Unity.Entities.Entity asset) [0x00000] in <1f030b0a20a34c92a53f8d33297505a2>:0 at Colossal.UI.Binding.TriggerBinding1[T].Callback () [0x00013] in <a8a5c7013ee54612a95b336ebf357256>:0

Screenshot 2023-11-30 213542

Lazo1G commented 10 months ago

Can confirm, having the same issue and I haven't really found a way to fix it yet, version 1.2.1

EDIT: this seems to be fixed in 1.2.3

Herjendil commented 10 months ago

Hi, version 1.2.3 now works without any problems. Thank you for the great mod and for your hard work! 👍

ST-Apps commented 10 months ago

Closing because it was fixed with v1.3.0.