I've been curious about re-compressing the files in smackdown games for a while but have read alot about twisting bytes. What I have attached below is an uncompressed pac, later compressed to the .BPE file format using alba. I've tried the same using quickbms but the later option seem to yield better results.
I'd like to know how to go about adding the .bpe header to the newly compressed file and check if it compressed fully and correctly.
Update: 00 is ucompressed and a is compressed sample.
I figured that there's no help when there's nothing to work with..so I...figured out how to attach the files
WWF SD!2 Know Your Role .BPE
-
- Posts: 4
- Joined: Sun Jun 19, 2016 12:38 am
Re: WWF SD!2 Know Your Role .BPE
I was able to recompress an unmodified BPE file (unpacked with quickbms and the Yukes script) after fixing the swapped bytes in hex editor using daddydodo's bpe.exe tool:
I used vbindiff to compare the original and recompressed versions. There was only one byte swap needed.
I added a header to the recompressed file using the original's header and checked if it would extract correctly with unrrbpe. I was able to extract the unpacked file without error.
My question is, should a modified bpe file (edited texture) appear differently in terms of bytes and structure?
The goal is to reimport the modified bpe compressed files back into the game.
I used vbindiff to compare the original and recompressed versions. There was only one byte swap needed.
I added a header to the recompressed file using the original's header and checked if it would extract correctly with unrrbpe. I was able to extract the unpacked file without error.
My question is, should a modified bpe file (edited texture) appear differently in terms of bytes and structure?
The goal is to reimport the modified bpe compressed files back into the game.
-
- Posts: 21
- Joined: Sun Nov 29, 2015 11:06 pm
Re: WWF SD!2 Know Your Role .BPE
dont compress using alba,it uses a different compression method compared to the original bpe.c program.Yukes uses the original bpe.c algorithm for BPE compression.
-
- Posts: 4
- Joined: Sun Jun 19, 2016 12:38 am
Re: WWF SD!2 Know Your Role .BPE
eri619 wrote:dont compress using alba,it uses a different compression method compared to the original bpe.c program.Yukes uses the original bpe.c algorithm for BPE compression.
Right, it definitely gives a different result compared to the bpe.exe tool. My only issue is getting the newly compressed .bpe files to match the size of the original. If the files are unmodified, they retain identical sizes, but if I repacked an edited texture, the new file remains larger (usually a byte larger) than the original.