Post: How to properly recompress .ff files ! (no blackscreen)
09-19-2010, 02:19 AM #1
Gendjisan
A.k.a. Bushigan
(adsbygoogle = window.adsbygoogle || []).push({}); Here an exemple on how to mod properly the godlymodz patch !

Tutorial in french because english is too hard for me for this tut...

If someone can trenslate...:whistle:

1 : Décompressez le patch_mp.ff grâce à la commande -a -1 -z -15 (offzip.exe)
2 : 00000027.dat (patch_mp.ff décompresser)
3 : Ouvrez le fichier patch_mp.ff avec un éditeur hexadécimal (HxD)
4 : CTRL + E (une fois que vous avez ouvert le fichier dans HxD)
5 : Début de l'offset 0x0000b4a0 et Fin de l'offset 0x00014ae9
6 : Faite CTRL + C, CTRL + N, CTRL + V et enfin CTRL + S
7 : Sauvegardez le fichier sous le nom 0000b4a0.dat
8 : Décompressez le fichier 0000b4a0.dat
9 : 00000000.dat (0000b4a0.dat decompresser)
10 : Ouvrez le fichier 00000000.dat avec un éditeur hexadécimal (HxD)
11 : CTRL + E (une fois que vous avez ouvert le fichier dans HxD)
12 : Début de l'offset 0x0000903f et Fin de l'offset 0x000c31e
13 : Faite CTRL + C, CTRL + N, CTRL + V et enfin CTRL + S
14 : Sauvegardez le fichier sous le nom _utility.gsc_compresser
15 : Décompressez le fichier _utility.gsc_compresser
16 : 00000002.dat (_utility.gsc_compresser décompresser)
17 : Ouvrez le fichier 00000002.dat dans Notepad++
18 : Inserez vos lignes de codes (language du codage en C++)
19 : Sauvegardez le fichier sous le nom 00000002.dat_modifier
20 : Créez un nouveau fichier 00000002.dat_modifier_recompresser
21 : Recompressez le fichier 00000002.dat_modifier avec la commande -o 0x00000002 -w -15 (packzip.exe) dans le nouveau fichier 00000002.dat_modifier_recompresser
22 : Ouvrez les fichiers 00000002.dat_modifier_compresser et _utility.gsc_compresser
23 : CTRL + E dans le fichier _utility.gsc_compresser (une fois que vous avez ouvert les deux fichiers dans HxD)
24 : Début de l'offset 0x00002f8e et Fin de l'offset 0x000032df
25 : Faite CTRL + C (toujours dans le fichier _utility.gsc_compresser)
26 : Ajoutez des 00 00 00 00 00 00 00 00 00 etc. a la suite de votre dernier hexadécimal présent a la fin de votre fichier 00000002.dat_modifier_compresser jusqu'à l'offset 0x000032d0
27 : Ajoutez des FF FF FF FF (4xFF) a la fin, donc a l'offset 0x000032dc,32dd,32de et 32df et sauvegardez votre fichier
28 : IMPORTANT : Veillez a se que le fichier _utility.gsc_compresser et le fichier 00000002.dat_modifier_compresser on toujours la même taille en octets !
29 : Faite une copie du fichier 00000000.dat sous le nom 00000000.dat_copy
30 : Ouvrez les fichiers 00000000.dat_copy et 00000002.dat_modifier_compresser dans HxD
31 : CTRL + A dans le fichier 00000002.dat_modifier_compresser
32 : CTRL + E dans le fichier 00000000.dat_copy
33 : Début de l'offset 0x0000903f et Fin de l'offset 0x000c31e
34 : Supprimez le bloc que vous venez de séléctionné avec Delete
35 : Collez tout se qui se trouve dans le fichier 00000002.dat_modifier_compresser dans le bloc que vous venez de supprimer
36 : Ajoutez 78 a l'offset 0x0000903f et DA a l'offset 0x00009040 et sauvegardez
37 : IMPORTANT : Veillez a se que le fichier 00000000.dat et le fichier 00000000.dat_copy on toujours la même taille en octets !
38 : Créez un nouveau fichier sous le nom 00000000.dat_copy_compresser
39 : Recompressez le fichier 00000000.dat_copy avec la commande -o 0x00000000 -w -15 (packzip.exe) dans le nouveau fichier 00000000.dat_copy_compresser
40 : Faite une copie du fichier 00000000.dat_copy_compresser que vous renommez en 0000b4a0.dat_modifier_compresser
41 : Ouvrez les fichiers patch_mp.ff et 0000b4a0.dat_modifier_compresser dans HxD
42 : CTRL + E dans le fichier patch_mp.ff
43 : Début de l'offset 0x0000b4a0 et Fin de l'offset 0x00014ae2
44 : Supprimez le bloc que vous venez de séléctionné avec Delete
45 : CTRL + A dans le fichier 0000b4a0.dat_modifier_compresser
46 : Collez tout se qui se trouve dans le fichier 0000b4a0.dat_modifier_compresser dans le bloc que vous venez de supprimer
47 : Notez sur un papier la taille de votre fichier patch_mp.ff final en octets (222.711 octets pour moi)
48 : Convertissez 222711 "octets" en hexadécimal = 0x000365F7 (03 65 F7)
49 : Ajoutez l'hexadécimal obtenu au début du fichier comme ceci ;

You must login or register to view this content.

50 : Sauvegardez votre patch_mp.ff !

Decompress my patch.ff edited proof without errors ;

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to Gendjisan for this useful post:

defwegwreh, IDontbreak, jb2203, juddylovespizza, ModThatGame, Solid Snake, The End, Tzee, VecRi
09-19-2010, 07:11 AM #65
PS3LUV3R
Too Beast
Originally posted by Shoot12 View Post
Ughh, everything seemed to be going so fine and dandy.
I think it's because my patch_mp.ff is like, 20 bytes off from his.

Either that OR
"36: Add 78 to offset 0x0000903f and DA offset 0x00009040 and save"

I replaced 903F with 78 and 9040 with DA
was I supposed to add new ones there?
I think the translation ****ed up the actual meaning.


Yea I replaced as well. And I think that could indeed **** it up.

And yea the translation sucks. He just HAD to write it in French. Bytes don't matter as long as you did everything right.
09-19-2010, 08:39 AM #66
Blackstorm
Veni. Vidi. Vici.
Just decompress the patch, edit the utility.gsc, paste a utility.gsc from clean patch and overwrite modded utility.gsc with clean utility.gsc. Save it. Open the utility.gsc with HxD. Copy the offsets onto patch_mp.ff. Then edit the missions.gsc and make your patch, or if you're a leecher copy the codes from someone elses patch_mp.ff. Save, recompress and test it out.
09-19-2010, 09:22 AM #67
tyvm for that
09-19-2010, 09:35 AM #68
ilikeitindabutt
Who fukmi who the fukru
im stuck at 33 there is no 9 starting nothing even close the a hex that starts with 9
09-19-2010, 09:57 AM #69
"Unzip the file 0000b4a0.dat"

How, if i may ask? :embarrassed:
09-19-2010, 10:03 AM #70
ilikeitindabutt
Who fukmi who the fukru
Originally posted by FARCRY2 View Post
"Unzip the file 0000b4a0.dat"

How, if i may ask? :embarrassed:


using offzip
09-19-2010, 11:30 AM #71
derp, nvm

..........
09-19-2010, 11:32 AM #72
VecRi
Keeper
awesome I will try this tonight thanksWinky Winky
09-19-2010, 03:37 PM #73
little_legz
SleepinIsCheatin
Nice tutorial. +85 rep for you Happy And heres a link for everyone that can't understand it.

You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo