View Single Post
  #5  
Old 20-06-2024, 09:49
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,688
Thanks: 1,106
Thanked 7,334 Times in 2,837 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by wareck View Post
Ok, it works
it's not a realy nice way to pack/unpack but it works
I think the problem is when use zip with password, it introduce some random number in header and data of the final zip
So there is no easy way to use xdelta or hdiff to rebuild original file

what i've done for v1.04.987:
uncompress basis.pak in a temporary folder
uncompress patch_003.pak in temporary folder
uncompress patch_005.pak in temporary folder
remove basis.pak patch_003.pak patch_005.pak

pack with diskspangui

then in my unpack batch, in the temporary folder :
.\7z.exe -mx5 -tzip -spe -poKoo$]bnGTKJLMNBA9A a patch_003.pak .\patch_003\*
.\7z.exe -mx5 -tzip -spe -poKoo$]bnGTKJLMNBA9A a patch_005.pak .\patch_005\*
.\7z.exe -mx5 -tzip -spe -poKoo$]bnGTKJLMNBA9A a basis.pak .\basis\*
move basis.pak ..\
move patch_005.pak ..\
move patch_003.pak ..\
delete temporay folder

I'm around 10go compressed game with setup.exe
game works without issue
I did a deep check today and found out there are at least 1 wav file which will crash using msc or flac.
__________________
Haters gonna hate
Reply With Quote