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

migrate scripts to new persistence API #934

Merged
merged 2 commits into from
Jan 13, 2024
Merged

Conversation

myk002
Copy link
Member

@myk002 myk002 commented Jan 11, 2024

Depends on DFHack/dfhack#4153

most scripts had a straightforward conversion

once-per-save was doing a lot of undocumented stuff that is no longer necessary, so it got largely rewritten

made persistence in prioritize more efficient by not confusing the json serializer with a map that looks like a sparse list

changed persistence format of devel/prepare-save, but the persistence appears to be for human readability and is not read by the script

warn-stranded had a format change and will lose history. the persistence key name was changed so that old data won't mess up the new formats. this is only the list of stranded units that you are ignoring, though, so the impact to players is low. I wish I had caught the non-standard persistence format in code review : /

@myk002 myk002 merged commit 6365e98 into DFHack:master Jan 13, 2024
9 checks passed
@myk002 myk002 deleted the myk_persist branch January 13, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant