Create an account

Persistent Weather  

Upload: 27 May 2022, 09:27
Created by: yohjimane [X]
Uploaded by: Aqxaro
Persistent Weather

Caches weather when saving and restores weather when reloading a save, to avoid random, awkward weather transitions.


Adapted from my gunslinger modpack

Not guaranteed to work with existing saves. From my testing though didn't seem to break anything. Keep in mind I do not play anomaly so I don't have a super old save to test it out on. Weather caching will not take effect until your next save/reload.

Users upgrading from v1.2 and below, please delete the old "level_weathers.script" located in gamedata\scripts\

Install instructions:

Regular:
Drag the gamedata folder from the archive, place in main anomaly directory.

MO2 / GAMMA users:
Install like regular MO2 package.

changelog:

1.3.1: New header image- thank you to the talented Cr3pis for making it!

1.3: Script is now monkey-patched (ty bvcx for the initial idea and to ravenascendant and TheMrDemonized for help creating the monkey-patch). We no longer overwrite the original level_weathers.script, making the script logic more readable and giving more flexibility in the future. Please delete the old level_weathers.script that came with versions 1.2 and below.

1.2: Fix bug with underground weathers again. Moving to and from underground level now caches correctly. After 10 minutes realtime of being underground, cached weather can now transition to a new weather. Moddb calls it 1.2.3 for some reason, it is the same as 1.2. Also added a couple debug logs that I will take out once things seem more stable.

Example here: Streamable.com

TLDW: If it's rainy and you go underground for 5 minutes and go back up, it will remain rainy. If it is rainy and you are underground for an hour, the cached weather can transition to a new one.

1.1: Fix bug with underground weathers - caching is now only executed if user is not underground. This fucked up ambients when going underground though, will look into better solution.

1.0: Initial release

- yohjimane

Comments
The minimum comment length is 10 characters.