You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful for scripts that save their own data if the pre-save hook open to plugins (or something similar) was also available in scripts. Currently, scripts can work around the lack of hooks for saving when the world is unloaded, but require hacky workarounds if they also want to save their data during autosaves.
The text was updated successfully, but these errors were encountered:
Handling of the onStateChange event in Lua (a similar approach could probably work here - unsure if an event under dfhack or an eventful event would make more sense yet):
It would be useful for scripts that save their own data if the pre-save hook open to plugins (or something similar) was also available in scripts. Currently, scripts can work around the lack of hooks for saving when the world is unloaded, but require hacky workarounds if they also want to save their data during autosaves.
The text was updated successfully, but these errors were encountered: