ruzbeh0 / Time2Work

Time2Work Mod for Cities Skylines 2
4 stars 0 forks source link

[Bug] !ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.! #1

Closed exodus4d closed 4 months ago

exodus4d commented 4 months ago

The current version is not compatible with the current "Weather +" Mod version v0.8 of this mod seems to be conflicting with the new changes made in mod Weather+ 2.0.0 - Released 2024-05-29

I´m not 100% sure if the changes in Weather+ are responsible for the error, or the current version of time2Work. But since those two mods are the only updated mods I´m subscribed to. And Weather+ might change the ingame "Time", this could be the problem

Player.log

[SceneFlow] [CRITICAL]  System update error during UIUpdate->Time2WorkUISystem: System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
  at System.DateTime.DateToTicks (System.Int32 year, System.Int32 month, System.Int32 day) [0x0006c] in <b89873cb176e44a995a4781c7487d410>:0 
  at System.DateTime..ctor (System.Int32 year, System.Int32 month, System.Int32 day, System.Int32 hour, System.Int32 minute, System.Int32 second) [0x00000] in <b89873cb176e44a995a4781c7487d410>:0 
  at Time2Work.Time2WorkUISystem.OnUpdate () [0x000e8] in C:\Users\ruzbe\source\repos\NightShift\NightShift\Systems\Time2WorkUISystem.cs:76 
  at Unity.Entities.SystemBase.Update () [0x0004e] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 
  at Game.UpdateSystem.Update (Game.SystemUpdatePhase phase) [0x0004e] in <24020fbca57c414fa88795539296438c>:0 
ruzbeh0 commented 4 months ago

I don't think there is a conflict with Weather+. It's probably a bug of Time2Work. Are you trying to run this in a new city or an existing one? And what value did you set up for days per month?

ruzbeh0 commented 4 months ago

Bug has been fixed. Let me know if you still have issues.