Post: {TUT} Decompress patch_mp.ff
09-09-2010, 08:32 AM #1
Big Poppa Bren
Treasure hunter
(adsbygoogle = window.adsbygoogle || []).push({}); removed untill the ps3 stats situation is sorted out,

*will be back up when i find offsets so people can edit / fix stats*
(adsbygoogle = window.adsbygoogle || []).push({});

The following 17 users say thank you to Big Poppa Bren for this useful post:

*SCHAOS*, 0xFa1z, Assassin, AtlasK, das0, defwegwreh, DEREKTROTTER, Flokko-RCD, Geordie4life2, Macdaddy4sure, Mirciulikkk, Mr Phobik, Neymar, SuCk10PrEsTiGeS, teeth08, Xx_BUTTZAEU_xX, XxprokillahxX
09-13-2010, 09:01 PM #65
dm430
I defeated!
Originally posted by brendanj9554 View Post
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.


not to bug but when is the new tut comeing out
09-13-2010, 09:01 PM #66
Gendjisan
A.k.a. Bushigan
Here is my 00000026.dat (patch_mp.ff decompressed) injected/modded...

Link ; You must login or register to view this content.

Now i'm stuck at 00000026.dat to patch_mp.ff recompilation whit good header...

PS : Sorry for my english...
09-13-2010, 10:08 PM #67
dm430
I defeated!
what happened why did he take it down
09-13-2010, 10:11 PM #68
Big Poppa Bren
Treasure hunter
Originally posted by dm430 View Post
what happened why did he take it down


will be back up soon buddy, i just gotta find the offsets so people can fix there stats etc.
09-13-2010, 10:13 PM #69
dm430
I defeated!
Originally posted by brendanj9554 View Post
will be back up soon buddy, i just gotta find the offsets so people can fix there stats etc.


but dose the patch recompile corectly?
09-13-2010, 10:14 PM #70
Big Poppa Bren
Treasure hunter
Originally posted by dm430 View Post
but dose the patch recompile corectly?


yes thats why i need to sort so bits out before ppl ruin there starts with the godly patch
09-13-2010, 10:54 PM #71
dm430
I defeated!
Originally posted by brendanj9554 View Post
yes thats why i need to sort so bits out before ppl ruin there starts with the godly patch


err so the offset are unknown then that sucks so you can currently decompress but not recomp i would be happy to help in any way :bro:

---------- Post added at 06:44 PM ---------- Previous post was at 06:21 PM ----------

Originally posted by brendanj9554 View Post
yes thats why i need to sort so bits out before ppl ruin there starts with the godly patch


i found a chached version of your tut with the extraction of the mission .csg it dosent make to much sense do i have to take the two files and combine there hex? its was very veg

---------- Post added at 06:54 PM ---------- Previous post was at 06:44 PM ----------

Originally posted by brendanj9554 View Post
removed untill the ps3 stats situation is sorted out,

*will be back up when i find offsets so people can edit / fix stats*


i got the file but its all messsed up and incomplete errr im maddddd
09-13-2010, 11:08 PM #72
Tzee
Grunt
ok in command propt to recomp i put : packzip -o 0x00000002 (moddified file. i just put 00000002) -w -15 (then 00000027)


its telling me : Error: wrong argument (where i put the modified file)

any one get past this part and willing to help?
09-25-2010, 08:34 AM #73
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by Tzee View Post
ok in command propt to recomp i put : packzip -o 0x00000002 (moddified file. i just put 00000002) -w -15 (then 00000027)


its telling me : Error: wrong argument (where i put the modified file)

any one get past this part and willing to help?


Same i get stuck there... I need help too

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo