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

Support new binary i64 data type from HOI4 1.13 #125

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Support new binary i64 data type from HOI4 1.13 #125

merged 1 commit into from
Oct 12, 2023

Conversation

nickbabcock
Copy link
Contributor

This new data type can be seen in HOI4 1.13 saves as

manpower = { ratio = 81900 }

This datatype technically conflicts with some detected tokens in Imperator and Vic3 (playbackrate), but I believe this token to be unused and shouldn't pose too much of a problem.

I determined that it was signed 64bit by editing the binary to turn all bits on and I saw the output as -1.

This is a breaking change as BinaryToken is receiving an addition.

This new data type can be seen in HOI4 1.13 saves as
```
manpower = { ratio = 81900 }
```

This datatype technically conflicts with some detected tokens in
Imperator and Vic3 (`playbackrate`), but I believe this token to be
unused and shouldn't pose too much of a problem.

I determined that it was signed 64bit by editing the binary to turn all
bits on and I saw the output as -1.

This is a breaking change as `BinaryToken` is receiving an addition.
@nickbabcock nickbabcock merged commit fd92409 into master Oct 12, 2023
7 checks passed
@nickbabcock nickbabcock deleted the i64 branch October 12, 2023 21:47
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.

1 participant