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

*SETTINGS.DAT Reference documentation #41

Open
Swiftb0y opened this issue Feb 23, 2022 · 3 comments
Open

*SETTINGS.DAT Reference documentation #41

Swiftb0y opened this issue Feb 23, 2022 · 3 comments

Comments

@Swiftb0y
Copy link
Contributor

Is there non-code documentation for this format or did you reverse engineer this just now yourself?

@Holzhaus
Copy link
Owner

I reverse-engineered it myself.

@Swiftb0y
Copy link
Contributor Author

Ok, its hard to get a firmer understanding of the format by looking at the code, though its getting easier with the binrw version

@Holzhaus
Copy link
Owner

The format is simple. It's basically:

  • length of string section (4 bytes)
  • string section (96 bytes)
    • contains 3 strings, each one 32 bytes and padded with nullbytes
  • length of data section (4 bytes)
  • data section (size depends on type)
  • crc16 checksum (2 bytes)
  • padding (2 bytes, null bytes)

The data section contains setting values, each one is 1 byte long.

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

2 participants