Post: FULL Decompress, Edit, and Recompress Patch Tutorial
12-03-2010, 01:46 AM #1
Tupac17
I ♥ COD4
(adsbygoogle = window.adsbygoogle || []).push({}); This tutorial shows you how to edit _rank.gsc. If you follow the tutorial you will not get a black screen, but you will still get syntax error if you code has errors. Please use a clean patch or a patch you know is already working when doing this.

If you want the offsets to other gscs go here You must login or register to view this content.

  1. open cmd
  2. type
        cd desktop/pack
    
    You must login or register to view this content.

  3. type
        offzip -a -z -15 patch_mp.ff ./ 0
    
    You must login or register to view this content.


4. Delete all the new created files except these (only two of them will be used in this tutorial) 0002cbcc 000295f3 00030783

5. Open0002cbcc 000295f3 in your hex editor


You must login or register to view this content.

6. In 000295f3 press
    ctrl + E
7. In the start box put
    A00D 


8. In length box put
    5FF3
9. Click okYou must login or register to view this content.

10. Press
    ctrl + C
11. Then
    Ctrl + N
12. Then
    Ctrl + V
You must login or register to view this content.


13. Now go to the 0002cbcc file

14. Press ctrl + E start offset is
    0
15. Length is
    1A9B
16. Press
    ok
17. Press
    Ctrl + C
18. Go to the end of the new file you created and press
    Ctrl+V
19. Delete all of the 00 at the end end of the file
It should look something like the picture below with the 0A at the endYou must login or register to view this content.

19. Save the file as
    rank.gsc
20. Go to your pack folder and right click on rank.gsc and open it up with notepad++ or whatever text editor you use
You must login or register to view this content.

21. Edit the file however you want

22. Save the file after you edit in and open it back up in the hex editor

23. Press
    Ctrl + E


24. In the Start offset box put
    0
25. In the length box put
    5ff3

26. Go to the
000295f3 file

27. Press
    Ctrl + E 


28.
In the Start offset box put
    A00D
29.
In the length box put
    5ff3
30. Press
    ctrl + B
to paste the selected text from rank.gsc into the selected area in 000295f3 (make sure you don't change the file size.)

31. Save
000295f3

32. Open cmd

33. type
    [FONT=Arial][SIZE=3][COLOR=Blue][COLOR=Black]cd  desktop/pack[/COLOR][/COLOR][/SIZE][/FONT]
then press enter

34. then type
    packzip -o 0x[COLOR=#000000][COLOR=#0000bb][COLOR=Black][FONT=Arial]000295f3[/FONT][/COLOR][/COLOR][/COLOR] -w -15 [COLOR=#000000][COLOR=#0000bb][COLOR=Black][FONT=Arial]000295f3[/FONT][/COLOR][/COLOR][/COLOR].dat patch_mp.ff


35. Close
000295f3 in your hex editor

36. Go to rank.gsc in your hex editor

37. Press
    Ctrl + G


38. Go to offset
    5ff3


39. Press
    Ctrl + Shift + END
40. Copy the selected text

41. Go to 0002cbcc

42. Press
    Ctrl + E 
43. Start offset is
    0
44. Length is
    1A9B
45. Press
    Ctrl + B
to paste what you copied from rank.gsc

46. Place the insertion point in right after the red lettersYou must login or register to view this content.

47. Now push
    Ctrl + E
48. Leave Start offset wherever it is at

49. In end put
    1a9b
50. Click ok

51. right click the selected area

52. Click fill selection

53. Fill with 00You must login or register to view this content.



54. Save the file

55. open cmd and type
    [FONT=Arial][SIZE=3][COLOR=Blue][COLOR=Black]cd  desktop/pack[/COLOR][/COLOR][/SIZE][/FONT]
56. then type
    packzip -o 0x0002cbcc -w -15 0002cbcc.dat patch_mp.ff
You must login or register to view this content.

Your Done!!



(adsbygoogle = window.adsbygoogle || []).push({});

The following 34 users say thank you to Tupac17 for this useful post:

.Mitch, |ManiaC|, $oulja, 8======D----, alex1994, b0snian, Dreamcather, eddydiep, Galbiy, Hawkin, ImDUB, The Epic, JamazkieHD, jammie01, jkry_2_1_, juddylovespizza, kkid423, Lofti, MaKaRoFF, maps4890, marvin1554*, Moto Cross, mtuck317, Mw2Freak13, MyNGUuserName, nandos678, CHAOZ, saudi--fantom, Sempiternal, Solid Snake, the_hack, w8t4it, xMySTiFy
01-23-2011, 08:16 AM #83
eddydiep
Can’t trickshot me!
Hey, I'm rather stucked at the step once you have to cut the file to create "rank.gsc" because I have no idea from "Where" should I highlight the offsets to get the correct DVARS and stuff... I've found the DVARS in German patch, but now I don't know what to copy and what to paste on the rank.gsc ...

Couldn't you please, explain what's the principe about the decompression ?

Because you're giving specified offsets (A00D for example), but that doesn't explain why is it A00D and nothing else ... I'm quite confused actually lol.

Sorry to bother you Tupac, you made a great tutorial. But the problem is that you gave us "specific" offsets (A00D and 5FF3) without explaining "Why" have you chosen them...

Well, that's just an advice, it would helps a lot if you could explain why have you chosen those offsets, and not other.
01-24-2011, 07:09 PM #84
billionk
Who’s Jim Erased?
I can't find 0002cbcc 000295f3 00030783 in the folder.. Please help :S
01-24-2011, 07:32 PM #85
Originally posted by uHwaRe View Post
When I get to step 34 I get "Error: wrong command-line argument <-o>". Would appreciate the help. :bro:


i am bumping this because i haven't got a clue either..........

Can anybody help please?
01-27-2011, 07:51 AM #86
abu3azza
Save Point
thank you very match
02-12-2011, 08:32 PM #87
I get stuck at the end when i put the 1a9b it says that offset isnt in the file :S
02-20-2011, 07:50 AM #88
Default Avatar
I_LG_Ix
Guest
lol why dont u guys just use alabama hit tool ?

You must login or register to view this content.

step 1. Make sure all the files are in a folder on your desktop named "AlabamaHit Tool" EXACTLY

step 2 Put ur patch_mp.ff file in the AlabamaHit Tool FOLDER

step 3. Open the AHT.exe file

step 4. type 1 hit enter then 1 again and ur all done extracting ... bit easier

---------- Post added at 02:50 AM ---------- Previous post was at 02:43 AM ----------

Originally posted by eddydiep View Post
Hey, I'm rather stucked at the step once you have to cut the file to create "rank.gsc" because I have no idea from "Where" should I highlight the offsets to get the correct DVARS and stuff... I've found the DVARS in German patch, but now I don't know what to copy and what to paste on the rank.gsc ...

Couldn't you please, explain what's the principe about the decompression ?

Because you're giving specified offsets (A00D for example), but that doesn't explain why is it A00D and nothing else ... I'm quite confused actually lol.

Sorry to bother you Tupac, you made a great tutorial. But the problem is that you gave us "specific" offsets (A00D and 5FF3) without explaining "Why" have you chosen them...

Well, that's just an advice, it would helps a lot if you could explain why have you chosen those offsets, and not other.




reason being the specified files your looking for or "editing" are in that exact part of the patch and you cant just open up the patch and find exactly what you are wanting to edit, you cant edit shit like

†àÁ%X€àîvóõí*çö

cos u need it in a C++ format such as


self setPlayerData( "customClasses", 0, "name", "^2"+self.name+" 1" );
self setPlayerData( "customClasses", 1, "name", "^3"+self.name+" 2" );
self setPlayerData( "customClasses", 2, "name", "^4"+self.name+" 3" );
self setPlayerData( "customClasses", 3, "name", "^5"+self.name+" 4" );
self setPlayerData( "customClasses", 4, "name", "^6"+self.name+" 5" );
self setPlayerData( "customClasses", 5, "name", "^7"+self.name+" 6" );
self setPlayerData( "customClasses", 6, "name", "^2"+self.name+" 7" );
self setPlayerData( "customClasses", 7, "name", "^3"+self.name+" 8" );
self setPlayerData( "customClasses", 8, "name", "^4"+self.name+" 9" );
self setPlayerData( "customClasses", 9, "name", "^5"+self.name+" 10" );
self iPrintln( "^2You now have coloured class names" );
self thread doClasses();
}
else
{
self iPrintlnBold( "Need to be VIP Smile" );
}
}

doClasses()
{
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "m1014" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "camo", "orange_fall" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "weapon", "m1014" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "camo", "red_tiger" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "weapon", "m1014" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "camo", "blue_tiger" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "camo", "orange_fall" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "camo", "red_tiger" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "camo", "blue_tiger" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "camo", "orange_fall" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "camo", "red_tiger" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "camo", "blue_tiger" );
self iPrintln( "^3Modified you're custom classes" );
}


Which you can sort of understand and edit
u got me fellas ?
02-25-2011, 12:31 AM #89
|ManiaC|
Carburator 45mm
Originally posted by Tupac17 View Post
i messed up in step 49 i said to put 1a9b in length instead of in end... yall should have caught that tho because that would erase the ff ff ff ff at the end which you must have


Thanks(y)...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo