klyte45 / TransportLinesManager

The TLM mod for Cities Skylines
Other
28 stars 23 forks source link

The Mod F:\Games\Cities_Skylines\Files\Mods\1312767991 [0Harmony.dll, TransportLinesManager.dll] has caused an error [ModException] [BUG] #263

Closed cn4000 closed 1 year ago

cn4000 commented 2 years ago

This is what I get

  1. The transport menu doesn't open whenever I click on the magnifier icon. But if I manually say click on a bus and click Line Detail and Line Overview, I could open the panel. But if I click Line Overview after I clicked Line Detail, nothing happened.
  2. The texts on the Line Overview page is just cryptic now, bunch of random letters. image

Details: System.TypeLoadException: Could not load type 'UnifiedUI.Helpers.UUIHotKeys' from assembly 'TransportLinesManager'. at Klyte.Commons.Interfaces.BasicIUserMod3.OnLevelLoadedInherit (ICities.LoadMode) <0x001c5> at Klyte.Commons.Interfaces.BasicIUserModSimplified2.OnLevelLoaded (ICities.LoadMode) <0x00029> at (wrapper dynamic-method) LoadingWrapper.LoadingWrapper.OnLevelLoaded_Patch1 (LoadingWrapper,SimulationManager/UpdateMode) <0x0008b>

cn4000 commented 2 years ago

UnifiedUILib.log Here's the log

cn4000 commented 2 years ago

N here's the log content

[Info] 1ms | Log file at F:/Games/Cities_Skylines/Cities_Data\Logs\UnifiedUILib.log now=6/7/2022 8:11:15 PM [Info] 1ms | UnifiedUILib Version:2.2.9.20126 Commit:09b7ea2 CommitDate:2022-04-23T00:02:50+03:00 [Info] 21ms | UUIAPI.Register(TMPE, , TMPE, (UnityEngine.Texture2D), Tool Controller (TrafficManager.UI.TrafficManagerTool), Shift+Semicolon, { [None, ], [None, ], [None, System.Func1[System.Boolean]], [None, System.Func1[System.Boolean]], [None, System.Func1[System.Boolean]], [None, System.Func1[System.Boolean]], [Ctrl+S, System.Func`1[System.Boolean]], }) called. [Info] 23ms | ButtonBase.CreateMainAtlas() called. [Info] 44ms | MultiRowPanel.Awake() called. [Info] 45ms | MainPanel.Register(TMPE, , TMPE, ) called. [Info] 423ms | UUIAPI.Register(System.Action, Ctrl+F, ) called. [Info] 424ms | UUIAPI.Register(System.Action, Alt+Alpha1, ) called. [Info] 425ms | UUIAPI.Register(System.Action, Alt+Alpha2, ) called. [Info] 426ms | UUIAPI.Register(System.Action, Alt+Alpha3, ) called. [Info] 427ms | UUIAPI.Register(System.Action, Alt+Alpha6, ) called. [Info] 428ms | UUIAPI.Register(System.Action, Alt+Alpha5, ) called. [Info] 429ms | UUIAPI.Register(System.Action, Alt+Alpha6, ) called. [Info] 429ms | UUIAPI.Register(System.Action, Alt+Alpha7, ) called. [Info] 430ms | UUIAPI.Register(System.Action, Alt+Alpha8, ) called. [Info] 431ms | UUIAPI.Register(System.Action, Alt+Alpha9, ) called. [Info] 432ms | UUIAPI.Register(System.Action, Alt+V, ) called. [Info] 1,171ms | MainPanel.Start() called. [Debug] 1,184ms | atlas name is: UnifiedUI.GUI.MainPanel_rev2.2.9.20126 [Info] 1,187ms | MainPanel.Refresh() called. [Info] 1,188ms | Visible buttons = 0 [Info] 1,188ms | FloatingButton.Start() called. [Debug] 1,188ms | ButtonBase.Start() is called for FloatingButton [Info] 1,190ms | ButtonBase.GetOrCreateAtlas(UnifiedUI.GUI.FloatingButton_FloatingButton_rev2.2.9.20126, uui.png, True, { bg_normal, bg_hovered, bg_pressed, bg_disabled, UnlockRing, }) called. [Info] 1,204ms | UIExtensions.FitToScreen(target=FloatingButton (UnifiedUI.GUI.FloatingButton) absolutePosition=(0.0, 100.0, 0.0)) called. [Debug] 1,204ms | at System.Environment.get_StackTrace() at KianCommons.UI.UIExtensions.FitToScreen(ColossalFramework.UI.UIComponent target) at UnifiedUI.GUI.FloatingButton.LoadPosition() at UnifiedUI.GUI.FloatingButton.Start() [Debug] 1,204ms | resolution.x - w = 1920 - 40 = 1880 Clamp(pos0.x, 0, resolution.x - w) = Clamp(0, 0, 1880) = 0 [Debug] 1,204ms | pos1= (0.0, 100.0, 0.0) [Info] 1,204ms | target.absolutePosition=(0.0, 100.0, 0.0), resolution=(1920.0, 1080.0) [Info] 1,205ms | MultiRowPanel.Start() called. [Info] 1,206ms | MultiRowPanel.Arrange() called. [Debug] 1,207ms | ButtonBase.Start() is called for TMPE [Info] 2,100ms | UIExtensions.FitToScreen(target=MainPanel (UnifiedUI.GUI.MainPanel) absolutePosition=(0.0, 150.0, 0.0)) called. [Debug] 2,100ms | at System.Environment.get_StackTrace() at KianCommons.UI.UIExtensions.FitToScreen(ColossalFramework.UI.UIComponent target) at UnifiedUI.GUI.MainPanel.LoadPosition() at UnifiedUI.GUI.MainPanel.OnResolutionChanged(Vector2 previousResolution, Vector2 currentResolution) at ColossalFramework.UI.UIView.OnResolutionChanged(Vector2 oldSize, Vector2 currentSize) at ColossalFramework.UI.UIView.Update() [Debug] 2,100ms | resolution.x - w = 1920 - 1280 = 640 Clamp(pos0.x, 0, resolution.x - w) = Clamp(0, 0, 640) = 0 [Debug] 2,100ms | pos1= (0.0, -380.0, 0.0) [Info] 2,101ms | target.absolutePosition=(0.0, -380.0, 0.0), resolution=(1920.0, 1080.0) [Info] 2,101ms | UIExtensions.FitToScreen(target=FloatingButton (UnifiedUI.GUI.FloatingButton) absolutePosition=(0.0, 100.0, 0.0)) called. [Debug] 2,101ms | at System.Environment.get_StackTrace() at KianCommons.UI.UIExtensions.FitToScreen(ColossalFramework.UI.UIComponent target) at UnifiedUI.GUI.FloatingButton.LoadPosition() at UnifiedUI.GUI.FloatingButton.OnResolutionChanged(Vector2 previousResolution, Vector2 currentResolution) at ColossalFramework.UI.UIView.OnResolutionChanged(Vector2 oldSize, Vector2 currentSize) at ColossalFramework.UI.UIView.Update() [Debug] 2,101ms | resolution.x - w = 1920 - 40 = 1880 Clamp(pos0.x, 0, resolution.x - w) = Clamp(0, 0, 1880) = 0 [Debug] 2,102ms | pos1= (0.0, 100.0, 0.0) [Info] 2,102ms | target.absolutePosition=(0.0, 100.0, 0.0), resolution=(1920.0, 1080.0)

DavidThuss commented 2 years ago

I have the same problem, I tried uninstalling Transport manager, saved the game without it and then reinstalled it and it worked for a short period of time, but now the problem is back.

DavidThuss commented 2 years ago

Hey I just found a page that offers a solution https://github.com/klyte45/TransportLinesManager/issues/220