hey guys. i notice ppl are playing with jailbreaks and servers etc and are finding the patch_mp.ff and various other files, but dont know how to decompile / recompile. so heres a quick tut that will hopefully help you guys get a better understanding of the compressions (thats right, they aint encrypted just compressed)
theres a few things you will need.
1. offzip & packzip (google darksiders mod and you will find a download link)
2. hxd or winhex
3. patiance
firstly you need the full patch_mp.ff fastfile (starts with iwff......)
open up cmd and drap offzip into the command window.
(offzip is now running via cmd!!) no you need to put in the commands that you want to run. if you press enter you will get a help screen with different commands, use as a reference.
so.... open offzip and type (as i do)
-a -1 -z -15
hit spacebar and drag the patch_mp.ff file into the cmd window,
hit spacebar again then drag an empty folder into the window
hit spacebar again and type the number 0 then press enter.
offzip will then decompile the ff and put the decomp file into the empty folder.
-a = tells program to decompile the file from first zlib header
-1 = tells program to put all decomp zlibs into one file in order headers were found
-z = tells the program that you want to use a compression different to original offzip (15)
-15 = the compression used to decomp fastfiles
ok, so now if you go to your empty folder you will find the decompiled fastfile and its in english, open with hxd and search .gsc
you will then find all the .gsc files they are further compressed, so if you want to edit lets say _missions.gsc you need to extract the hex and make a new file and repeat the offzip process on that.
the gsc files start with hex 78DA and end FFFFFFFF or in txt form
xU and yyyy
copy everything from xU to yyyy (thats a complete zlib block) theres refernce to what zlib block is what ie. yyyy_maps.gsc.78DA
yyyymissions.gsc.78DA _ranks.gsc.78DA
TO RECOMPILE
now drag packzip into the cmd window. the commands are different but do the same job, but to compress.
theres 2 ways to do this. either injecting your modded files into the original (the hex lenth stays the same, but byte value will change)
or compress to a new file, no injecting, just compressing the file to correct compression
one more thing to note is the header!!!!!!
if you look at the name of the decomp file it will be something like 00000027 <<<< 27 is the offset that offzip found to be the first zlib header (everything before that is the ps3 header :-) we also need to use that offset as a stating point to compress our new data
-o 0x00000027 (spacebar) (modded file) (spacebar) -w -15 (spacbar) (original compressed .ff) then enter
the above commands will inject the new data starting after the header. make a backup of you orignal ff to compare the data differences ;-)
to make a new fastfile alls you need to do is copy the first 27 bytes of the fastfile and paste to a new file. repeat the process above using your new file (ps3 header) in place of the orinal.
if you make the ff from scratch you can then view and edit your file in ffviewer (orinal dont take the update) you can then edit and save etc.
hope this helps a few guys out.
EDIT I HAVE ADDED PICTURES SO PEOPLE CAN GET A BETTER UNDERSTANDING
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.