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-10-2010, 12:17 AM #29
I am going to try to contact Agent God or lost to recompile FFviewer for PS3.

The following user thanked Macdaddy4sure for this useful post:

AlabamaHit
09-10-2010, 12:35 AM #30
BigMel1
Vault dweller
ok i have successfully opened up the file i have all the .gsc files. i just need some mods. anyone have any modded .gsc files?
09-10-2010, 12:45 AM #31
DARNY
Big Boy
honestly use the search function it will help
09-10-2010, 03:35 AM #32
what do you name the zlib block after you copy it?
09-10-2010, 03:48 AM #33
ThisIsBio
LiquiDΔx
Originally posted by DARNY View Post
honestly use the search function it will help

Originally posted by apples7 View Post
what do you name the zlib block after you copy it?
The answer on top will help.
09-11-2010, 12:51 AM #34
CBot
Brute
nvm found it
09-11-2010, 01:05 AM #35
dansbmx
BAY AREA*925*STUNTIN
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.


o what version of ffveiwer do we use??? can you link me to one that works for editing and saving.
09-11-2010, 05:56 PM #36
Ritztro
I am a Game Developer
[/COLOR]
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.


alright well I got godly mods ff file and it is already in gsc. I have tried compressing it but it doesnt work. Can you help me out?
09-11-2010, 06:08 PM #37
DEREKTROTTER
You're Goddamn Right
Originally posted by Dutch. View Post
[/COLOR]

alright well I got godly mods ff file and it is already in gsc. I have tried compressing it but it doesnt work. Can you help me out?


im stuck here aswell:

You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo