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

Strings should probably be padded again? #23

Open
Baezon opened this issue Oct 2, 2021 · 1 comment
Open

Strings should probably be padded again? #23

Baezon opened this issue Oct 2, 2021 · 1 comment

Comments

@Baezon
Copy link
Member

Baezon commented Oct 2, 2021

Not as sure on this one, but retail pof strings always contain a null-terminator, and pad with 0s until the string length is mod 4 again (and does count that as part of the string's length). For instance, (where - is a 0 byte) "Detail0" should be len = 8, Detail0-, and Turret2a would be len=12, Turret2a----, where current PCS2 generated POFs are len = 7, Detail0 and len = 8, Turret2a

Otherwise, the rest of the file becomes unaligned.

@TRBlount
Copy link
Contributor

TRBlount commented Oct 2, 2021

This and SLC2 should be added concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants