Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emigration cycle resets every time world is loaded, leading to variable behaviour depending on the player's session habits #5011

Open
master-spike opened this issue Oct 27, 2024 · 0 comments

Comments

@master-spike
Copy link
Contributor

master-spike commented Oct 27, 2024

Currently, the emigration script is set to run once per month by calling dfhack.timeout(1, 'months', event_loop) at the end of event_loop()

However, timeouted functions are cancelled when the world is unloaded, and when the world is reloaded event_loop() is called again. This means that players who exit and reload often will have a measurably different experience using this script to players who play in long uninterrupted sessions.

The desired behaviour would be for the script to be reload-agnostic, for a consistent gameplay experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant