FuryFight3r / ScrappingSimulator

A Repository for DefectGamings Scrapping Simulator
4 stars 0 forks source link

[Bug]: <Stuck in sleep loop> #81

Closed DragonRapide closed 1 year ago

DragonRapide commented 1 year ago

Describe the bug

Started a new game, went through tutorial. Energy was low, went to bed to sleep. In game time did not pass, just stayed at 7. When I woke up time was 1900, no energy was regained and character passed out. Then character woke up and had gained no energy, so they passed out again. This continued in a loop. Only error shown was:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at :0) DistantLands.Cozy.CozyEcosystem.WeightedRandom (DistantLands.Cozy.Data.WeatherProfile[] profiles) (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.ForecastNewWeather () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.SetupWeather () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.Awake () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyWeather.Awake () (at <70bdaeb405004c69ae52c67fe037d085>:0)

Reproduction Steps

No response

Expected behaviour

No response

Screenshot(s)/Video(s)

No response

Console output

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at :0) DistantLands.Cozy.CozyEcosystem.WeightedRandom (DistantLands.Cozy.Data.WeatherProfile[] profiles) (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.ForecastNewWeather () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.SetupWeather () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyEcosystem.Awake () (at <70bdaeb405004c69ae52c67fe037d085>:0) DistantLands.Cozy.CozyWeather.Awake () (at <70bdaeb405004c69ae52c67fe037d085>:0)

Player Logs

No response

FuryFight3r commented 1 year ago

Hi there @DragonRapide I apologise about this, I will have a HotFix out asap 👍

FuryFight3r commented 1 year ago

Hi there @DragonRapide Thanks again for reporting this, I have just upload a HotFix that should fix Time being frozen - which also caused a few other issues like no energy regain, shops wouldn't open etc 🙂👍