MonthsToRespawn

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
derussas
Posts: 3
Joined: 05 Oct 2020, 18:22

MonthsToRespawn

Post by derussas »

OpenMW (tested with 0.46 and the latest nightly) doesn't seem to initialize the (hardcoded) global variable MonthsToRespawn. I suspect this is why the respawn of organics containers doesn't work ?
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: MonthsToRespawn

Post by akortunov »

It is an iMonthsToRespawn GMST, not a global variable.
derussas
Posts: 3
Joined: 05 Oct 2020, 18:22

Re: MonthsToRespawn

Post by derussas »

Sorry but... no
2 differents things : there is a GMST (iMonthToRespawn) and the global MonthToRespawn (yes, Bethesda's crap :mrgreen: )
The GMST is initialised by the game data (morrowind.esm) but the global need to be initialised by the .exe
EvilEye
Posts: 33
Joined: 12 Feb 2014, 13:45
Gitlab profile: https://gitlab.com/Assumeru

Re: MonthsToRespawn

Post by EvilEye »

The global doesn't appear to be implemented like you say, but organic containers do respawn in 0.46. I just tested it by setting the timescale to 30000 or so and waiting around a bit.

Edit: https://gitlab.com/OpenMW/openmw/-/issues/5629
derussas
Posts: 3
Joined: 05 Oct 2020, 18:22

Re: MonthsToRespawn

Post by derussas »

I think I forgot an important clarification :oops: : I installed the graphic herbalism plant models. But the organics containers which remain "regular containers" like the guild chests did not respawn (nor the plants) for the 1st hearthfire as they would have done with morrowind.exe

The global MonthToRespawn should be created by OpenMW at runtime (and populated with 1 at the begining of a game)
MonthToRespawn is decremented by 1 each first of the month.When it hits 0, all containers with the respawn flag should respawn, and MonthsToRespawn is reset to the value of the GMST iMonthsToRespawn. So, with a regular chargen (16th of Last Seed), you will have a respawn the 1st of Hearthfire and the next 4 months later.
In my present game, it's the 28 Hearthfire and I'm still waiting my first respawn :P
EvilEye
Posts: 33
Joined: 12 Feb 2014, 13:45
Gitlab profile: https://gitlab.com/Assumeru

Re: MonthsToRespawn

Post by EvilEye »

I'm afraid you'll have to wait another 3 months (unless the issue gets fixed)
Post Reply