How to repack .lpk?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
nahucirujano
Posts: 12
Joined: Sat Mar 24, 2018 9:58 pm

How to repack .lpk?

Post by nahucirujano »

I'm trying to change the BGM of Pac-Man Championship Edition (from Pac-Man Museum).
I successfully extracted the .lpk file using this script: https://www.zenhax.com/viewtopic.php?f=9&t=122#p364
I have created a new .xwb file with the music changed.
But now, how do I repack this into .lpk again?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to repack .lpk?

Post by aluigi »

You may have some luck with reimport.bat if the game will accept the edited archive.
Remember that reimport.bat is not "flexible" like reimport2.bat, it's limited by the size of the edited files which must be smaller or the same (suggested) than the original ones.
nahucirujano
Posts: 12
Joined: Sat Mar 24, 2018 9:58 pm

Re: How to repack .lpk?

Post by nahucirujano »

aluigi wrote:You may have some luck with reimport.bat if the game will accept the edited archive.
Remember that reimport.bat is not "flexible" like reimport2.bat, it's limited by the size of the edited files which must be smaller or the same (suggested) than the original ones.

I tried this but the command window keeps showing this with every single file:

signature of 4 bytes at offset 0x00000000 doesn't match the one
expected by the script:

this one: "MSFC"
4d 53 46 43 MSFC

expected: "LPK"
4c 50 4b 00 LPK.

- 0 files reimported in 0 seconds

There's still no new method to repack files into .lpk?