Post: (DETAILED) Making your own CFG patch without .FF Viewer
03-19-2011, 03:35 AM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); First off, thanks to AlabamaHit for posting the original tutorial on how to manually decompress and decompress. Without that thread, this wouldn't be possible right now.

Also, thanks to blackstorm for the patch.

YOU WILL NEED HxD FOR THIS.

First off, download this file: You must login or register to view this content.

Now, extract it to your desktop. Go to run and type:

    cmd


Now press enter. It should bring up command prompt. Then type:

    cd desktop\pack


And press enter.

Now you in the right directory to get started.

In the command prompt, type:

    offzip -a -z -15 patch_mp.ff ./ 0


You will see all kinds of stuff running through the CMD prompt.

Once it's done, open your pack folder again. You should see tons of .dat files in there. Delete everything in that folder except:

    0000b4a0.dat
offzip.exe
packzip.exe
patch_mp.ff


Now we have the files we need.

Open the 0000b4a0.dat file in HxD hex editor. Press Control+E and type the following:

    
Start Offset: C33F
End Offset: D3E9


And press enter. It will highlight a lot of stuff.

Press Control+C, Control+N, then Control+V. Now press Control+S, and save the file as:
    _events_comp.gsc


Now you can close HxD and go back to CMD Prompt.

In CMD prompt, type:

    offzip -a -z -15 _events_comp.gsc ./ 0


You should see a little bit of stuff come up.

Now go back to your pack folder. There should be a file in there called 00000002.dat. Right click it and open it with Notepad.

Now you should see the raw code for Blackstorm's CFG patch. You now have the option to either delete it and write your own code, or delete the existing code and replace it with your own. I'll leave this for you guys to play around with. Once you're done editing, save the changes.

Now go to CMD Prompt again and type:

    packzip -o 0x00000002 -w -15 00000002.dat _events_recomp.gsc


Then press enter. Go to your pack folder, and you will see _events_recomp.gsc in the folder.

Now you need to open _events_comp.gsc and _events_recomp.gsc with HxD.

At the top of _events_recomp.gsc, you will notice the first 2 offsets are:
    00 00


Change that to:
    78 DA


Now go to the very bottom of _events_recomp.gsc and click after the very last offset. Note in the bottom what it says the offset is (For example, B3C or something).

Now go to _events_comp.gsc and press Control+G. Enter the offset from the bottom of _events_recomp.gsc. It will put you in front of a random offset. Highlight everything from there down, and press Control+C. Go back to the end of your _events_recomp.gsc and paste it there. MAKE SURE IT IS AT THE VERY END.

Alright, now you should have a bunch of red offsets at the end of the file. Notice the last four:
    FF FF FF FF


Now highlight all of the red offsets except those 4 FF's at the end. Once you have them all highlighted, right click on them and hit "Fill Selection". Fill the whole thing with 00's. Then save the file.

Now you can close your _events_comp.gsc in HxD.

Open the 0000b4a0.dat in HxD. Press Control+E and type:
    Start Offset: C33F
End Offset: D3E9


And press enter. It will highlight a lot of stuff, leave it highlighted.

Go back to your _events_recomp.gsc and highlight the whole file. Press Control+C.

Now go back again to your 0000b4a0.dat. Press Control+B and it should paste the code from your _events_recomp.gsc into the 0000b4a0.dat.

Now all we need to do is fix the filesize.

In the 0000b4a0.dat, press Control+G. For the offset, type:
    C323


Highlight the next four offsets. In your pack folder, right click on the 00000002.dat and view it's properties. It should display the "size" of the file in bytes.

Get that size number, then open your Calculator. Change the view to "Programmer". Click "Dec", then enter the filesize in the calculator. Now, just click "Hex". The number in the calculator will change. That is the hex value we need Smile

Take that hex value and enter it in those 4 offsets we highlighted (Example: if your Hex was B465, the 4 offsets would read 00 00 B4 65). Now press Control+S.

Now the final step: Go back to your CMD Prompt. Type:

    packzip -o 0x0000b4a0 -w -15 0000b4a0.dat patch_mp.ff


Now press Enter.

You have just packed your 0000b4a0.dat back into your patch Cool Man (aka Tustin)

Now just upload it to your PS3 and test it out.



Once again, thanks a million to AlabamaHit for that original tut. Link to his thread here: You must login or register to view this content.

Enjoy guys, It took me forever to write this so Thanks would be appreciated Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Choco for this useful post:

CaNDy-FuZioNZz, gamer89117, jrlop99, SALOOTME, tylerallmighty
03-19-2011, 03:41 AM #2
TheFallen
Former Dark Night
Thank GOD for FF Viewer

The following 3 users say thank you to TheFallen for this useful post:

.Andy, Blackstorm, Choco
03-19-2011, 03:58 AM #3
Choco
Respect my authoritah!!
22 views and only one reply? Really?
03-19-2011, 04:12 AM #4
tylerallmighty
Human After All
Damn leechers. :mad:
Nice tut mate. :y: now I'll try and make a CFG menu. Smile
03-19-2011, 04:13 AM #5
pcfreak30
>> PCFreak30.com Happy<<
Um, you really want people to do it manually? Thats a pain, and automation rules..
03-19-2011, 04:16 AM #6
Choco
Respect my authoritah!!
Originally posted by pcfreak30 View Post
Um, you really want people to do it manually? Thats a pain, and automation rules..


I don't actually own a PC, so I have to do this inside a VirtualBox computer which isn't capable of running .FF viewer. It's really not as hard as it seems.
03-19-2011, 04:52 AM #7
Blackstorm
Veni. Vidi. Vici.
Um I'm pretty sure the renaming of GSC's and compressing using packzip results in a black screen.
03-19-2011, 03:01 PM #8
Choco
Respect my authoritah!!
Originally posted by Blackstorm View Post
Um I'm pretty sure the renaming of GSC's and compressing using packzip results in a black screen.


You don't rename the GSC's, you use a patch (yours lol) with it already renamed. I picked yours because it was largest one, then wiped all the code and made my own in the remaining space.

The following user thanked Choco for this useful post:

jrlop99
03-19-2011, 07:40 PM #9
baremo
Pokemon Trainer
Hey !

When i have extract, edit, and recompress, if i want to re-decompress and re-edit, i have an error with "offzip" :

It says me :

0x000187f3
- zlib Z_DAtA_EROOR, the data in the file is not in zip format or uses a different windowsBits value (-z). TRy to use -z 15

x00018d61
- zlib Z_DAtA_EROOR, the data in the file is not in zip format or uses a different windowsBits value (-z). TRy to use -z 15


....


And that for a big list of offset....

Anyone no why please ?
03-20-2011, 12:13 AM #10
Choco
Respect my authoritah!!
Originally posted by baremo View Post
Hey !

When i have extract, edit, and recompress, if i want to re-decompress and re-edit, i have an error with "offzip" :

It says me :

0x000187f3
- zlib Z_DAtA_EROOR, the data in the file is not in zip format or uses a different windowsBits value (-z). TRy to use -z 15

x00018d61
- zlib Z_DAtA_EROOR, the data in the file is not in zip format or uses a different windowsBits value (-z). TRy to use -z 15


....


And that for a big list of offset....

Anyone no why please ?


I'd need more detail to help... is it the offzipping of the patch that is giving the error? If so it's perfectly normal, not every .dat file will get extracted. Just so the 0000b4a0.dat is there when you offzip the patch you're good to go Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo