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

SDB Writing #2

Closed
wants to merge 1 commit into from
Closed

SDB Writing #2

wants to merge 1 commit into from

Conversation

Xsear
Copy link
Contributor

@Xsear Xsear commented Jan 1, 2022

Implemented Write method of StaticDB.
This probably needs a sanity check for code quality, but the added tests work on 1962.
The written files are accepted both by SDBrowser, and the game seems to be fine with mods and additions, as long as new rows follow the expected index order of that table.
Reading and parsing the original database does not produce 100% identical output, with some difference in the keyed data section, and minor diff in the deflated output.
I did not perfectly implement the generation of the keys for the data section, see the function GenerateDataEntryKey. I verified that the alternate version produced the expected keys for two data points, but when put in use I ended up with garbled output for many values (but not all), particularly in the localization table.

@Xsear Xsear closed this Sep 28, 2024
@eXpl0it3r
Copy link
Contributor

Superseded by #4

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

Successfully merging this pull request may close these issues.

2 participants