-
Notifications
You must be signed in to change notification settings - Fork 10
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
Repacked .hpk
does not work in Surviving Mars (loads forever)
#16
Comments
What happens when you change these four bytes to
The different file size comes from residual data in the original file. The data is not used and is some leftover from how Haemimont edits the files instead of re-creating the files. The command
|
original file:
generated wtih hpk:
Sadly no difference, the game still fails to load. |
Did you extract the file with
|
Do I didn't, all I did was use |
I could reproduce it with With the parameter
The armstrong.hpk contains other hpk files and the re-creation writes the files in a different order. |
that works! 🎉 thanks for the help, might be good to document that in the readme. Should I close issue then? |
OT: would you be interested in a PKGBUILD generating a DEB for Debian systems? Would make installation a single click. |
I'll add a parameter
sure, PR is welcome. |
When extracting
armstrong.hpk
and packing it again, the game refuses to load into the menu.Looking at your file format specifications, it seems like something weird is going on:
The original file does have the data of the first file right after the one
BPUL
header starting at 0x24.The newly created file though does contain two
BPUL
headers and then the data for the first file, which then starts later (0x48 I guess?)here the first 200 bytes of each file:
original
repacked
Also I noticed that the first header in the repacked archive does have
0x000000FF
instead of0xFFFFFFFF
.Any idea where this difference comes from and if that could be the cause of the problem?
EDIT:
when running it from terminal, the game seems to crash at loading the DLCs, which this file is part of.
EDIT2:
I also noticed, that there is a size difference between the original and the repacked file (the bak is the original one):
The text was updated successfully, but these errors were encountered: