the Sim Settlements forums!

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Old Post A note on modifying the workshop flora harvest time

Sclerocephalus

New Member
Messages
3
I noticed that WSFW has an option now to modify the flora harvest time. This may not work as expected though, because the reset handling is tied to the frequency of workshop resets.

The reset of the harvested state is performed by calling HandleWorkshopReset() on the individual crops, and this is currently done by ResetWorkshop(). When we fixed the issue with endlessly repeating workshop resets for UFO4P 1.0.3, we had to decide for an appropriate minimum time interval between subsequent workshop resets, and we chose one game day because of the vanilla default value for the flora harvest time.

Now,if you modify the value and use anything smaller than one game day, the changes won't take effect (i.e. if the player doesn't leave the workshop, the earliest reset will still happen after one game day) unless you modify the respective check in the OnLocationChange event (and thus make ResetWorkshop() run more frequently), or you write new code that handles the flora reset independently (this would be the better solution because more frequent resets are not a good idea for obvious reasons).

Implementing new code to handle this would also remove the one day limitation for subsequent resets, and one could think about letting them run even less frequently.
 
The PipBoyCrate from the vault workshop DLC is a flora object too. They apparently refresh the chest's contents in regular intervals by flipping the harvested state (see DLC06:PipBoyCrateScript which extends WorkshopObjectScript). Thus, you'll also have to make sure somehow that this crate still overrides your new settings.
 
Top