You are viewing our Forum Archives. To view or take place in current topics click here.
[TuT] How To Mod Common_mp.ff
Posted:

[TuT] How To Mod Common_mp.ffPosted:

Unter
  • Challenger
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 173
Reputation Power: 9
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 173
Reputation Power: 9
[size=18]This is a copy and paste of se7, 100% credit to Bigmikey00 on se7
THIS IS PURELY TO HELP!


first off this is a tutorial for the more advanced coder not an average noob.
This TuT will show how to find the files needed. also i may have came across an easier way of doing this i may release this weekend if it works.we are stuck on the part of compressing the missions_gsc back into the file it compresses,loads the game fine but no mods we are missing something somewhere help us find out what and where.

so lets begin....

1. you need the following programs.
***offzip--packzip (Download Here---http://www.mediafire.com/?f48zm8bf8g9aeqw).
****hxd(Download Here---http://www.mediafire.com/?nnm69s9atieu9ms).
2.Unzip to desktop.
3. put your common_mp.ff into the pack folder on desktop.
4. open cmd prompt.
5.type in offzip -a -z -15 common_mp.ff ./0
6.it will take about 10 -20 mins for this to run. but you should have like 1400 or more dat files.
7. we only need 2 of them but in order to fine the 2 we need to search through all of them.
8.to find which one you open (if you know how to decompress a patch_mp.ff then you will make this part easy..)if you dont then follow this step.
9.move a patch_mp.ff into the pack folder and run the following
***offzip -a -z -15 patch_mp.ff ./0 you will need 0000ba0.dat
00014f51.dat


now compare those files with ones from the common_mp.ff to find the 2 files you need for your missions.gsc*****
10. now that you found those the rest is pretty simple.
11. open up the first file of common_mp.ff (the one that matches your patch_mp.ff)
****************************************************
Press Control + E
The offset we are going to do are these
Start Offset: D7D2
End Offset: FFFF
Now just press
EnterIt will Highlight a lot of the file.
Press Control + C
Now Press
Control + N
Now Press
Control + V
*********************************************************
12. now open the 2nd one.
**************************************************************
Press Control + E Go to Length, Enter 61D
PRESS ENTER
If you do not. Make sure you go to the TOP of the page and click on the first offset. Then re-enter the Length. That will give it to you.
Now Press
Control + C Go over to the New file you made.
Paste this at the end.
You should be able to just click on the tab. And press
Control + V
Now press
Control + SSave as
_missions_comp.gsc.Make sure you save it in the "pack" folder with all our other stuff.
Now we have missions all in one file
First we need to decompress that file we just made.
**************************************************************
go to a Cmd Prompt.and type in
************************************************************
offzip -a -z -15 _missions_comp.gsc ./0
Now you should have a new file added to your pack folder should be 0000e800.dat but maybe differnt,
now open this with notepad.
This is your missions.gsc now you can add anything you want to it. make sure the code is correct i recommened using a missions.gsc from one of your patches.
13. now that that is complete we need to put the missions back into the Common_mp.ff
14. in your pack folder make a new file named _missions_recomp.gsc
15. in cmd Prompt type.
*******************************************************************
packzip -o 0x0000e800 -w -15 0000e800.dat _missions_recomp.gsc
(make sure the 0000e800 matches your dat file for missions.gsc)
now open both
Code:
_missions_comp.gsc
and
_missions_recomp.gscIn your hex editor.
First we do the Header.
In the _missions_recomp.gsc You will see the first four things are

code:
00 00

change that to

Code:
78 DA
That is it...Header is done.
Now to the footer.
Scroll all the way to the bottom of the _mission_recomp.gsc
Click on the END of the file. Take a notice on the "Offset:" in hex editor.
Notice it is
Code:
Offset: 2DC3Now, go to the _missions_comp.gsc in you hex editor.
Press
Code:
Control + GEnter that offset
Code:
This case is 2DC3
Press
Code:
EnterFind where it put you.
Now Highlight ALL from there down.
Now copy that by pressing
Code:
Control + CNow go back to your _missions_recomp.gsc
Paste it at the end. Make sure your cursor is at the END.
Press
Code:
Control + V
Notice the
Code:
FF FF FF FF At the end. Highlight all from that up to where you pasted in. (Just the Red Stuff).
Select
Now Click on "OK".
You will notice it changed it to 00 00 00. That is what we wanted.
Now press

Code:
Control + S Now we are on to part 2
Now we need to have 3 files open in hex editor
*************************************************************************
15. alright now open 3 files your 2 missions.gsc dat files then the _missions_recomp.gsc
We have to split this back into 2 dat files. open your first dat file( the same one you opened earlier as first).
**
press Ctrl E
enter the offset
Start: D7D2
End: FFFF
press Enter
Now go to the bottom and grab your length mine would be 282E.
Now Go to your _missions_recomp.gsc Press
Crtl E go to length (enter your length so mine would be 282E)enter
Press Ctrl C (Do Not click anywhere- we need this later***)
now go to your first dat file and paste this in by pressing
Ctrl B (Not V)
**********************************************************************
16. now we can fix the header size
to do this press Ctrl G offset is D7AA it will put you in front of 00
minimize for a second open a calculater and go to your pack folder and right click on 0000e800 (or whatever your file name is) Click on properties and you what the size in bytes.
change the calculators view to "Programmer"
enter as decimal then click on hex
This is your hex for your size
Now go back to hex editor(we need the one where we left the offsets highlighted) and EX. if my size is 10026 my hex would be 00 01 00 26 enter this in behind the 00
Now press Ctrl S
*************************************************************************888
17. now we open the 2nd dat file
Press
Control + E Go to Length Enter 61D

Now to go your _missions_recomp.gsc
Remember me saying leave that highlighted this is why.
You need to copy all the rest of that file.

Remember from there down.
Now press
Ctrl C go to the 2nd file now just press
Ctrl B then
Ctrl S
(this section should have been highlighted.)
now go to cmd prompt and type
code:
packzip -o 0x00000000 -w -15 00000000.dat common_mp.ff Press And hit enter!
Now type in
packzip -o 0x00000000-w -15 00000000.datcommon_mp.ff Press And again hit enter!
Now, the missions are back in.
(Make sure that you change 00000000 to the 2 files that you used for this tutorial.)
i will decide later weather or not to tell you the 2 files and make it simple however i may not due to i have just started using mods again and i dont want this patched in 2 weeks infections work including some binds the say command no longer works so no mod menu infections but everything else still works.
#2. Posted:
Baseband
  • TTG Contender
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 3,824
Reputation Power: 171
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 3,824
Reputation Power: 171
thats a pretty big copy and paste
#3. Posted:
Unter
  • Challenger
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 173
Reputation Power: 9
Status: Offline
Joined: Oct 28, 201014Year Member
Posts: 173
Reputation Power: 9
mcohall wrote thats a pretty big copy and paste

read the top mate, im trying to help
#4. Posted:
XEMBEASTY
  • Ladder Climber
Status: Offline
Joined: May 19, 201113Year Member
Posts: 352
Reputation Power: 24
Status: Offline
Joined: May 19, 201113Year Member
Posts: 352
Reputation Power: 24
i can do it in a bit why
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.