Post: {TUT} Recompile modded patch_mp.ff (detailed)
09-13-2010, 09:30 PM #1
Big Poppa Bren
Treasure hunter
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys, sorry for the delay, most have been having problems with recompiling, this is due to compresstions, so read on and you will get all the answers, first i will explian WHY everybody has been having problems, its because off all the empty space in the full decompiled patch, so follow my new method and hopefully you will all get sorted.

use offzip to decompile, but dont use the -1 option.
you will get all 22 zlib blocks as seperate files in the folder,

>> once decompressed cmd window will tell you important info you need to know <<

it will tell you what offsets were zlib blocks, for example

You must login or register to view this content.

here are the offsets ( 0x0000b4a0 > 0x00024ef5 ) for the gsc files, copy the hex from the patch in hxd and paste into a new file.

now you decomp that file with these options -a -1 -z -15
(use -1 as it will join the 2 zlib blocks for you, iw have split the missions in 2 parts with the use of zlib. but this is the way round it.)

open the decompiled file in hxd, you can search the gsc files and futher extract the _missions.gsc

(the offsets for missions in your new file are start > 0000D7D2 end > 00010628

once you have decompressed mission, use packzip to recompress with -o 0x00000002 (make a new hxd file with a zlib header only 78DA) -w -15 .it will then compress the missions

one thing you need to do is compare sizes from original files, you can paste write you compressed missions over the original, but you will have to delete data untill the end off your new missions meets the rank.gsc (check out the picture for a better idea of what i mean)

You must login or register to view this content.

once you have edited the data you need to delete all the untouched data inbetween, right up to when you paste write to the orignal patch_mp (delete data upto next untouched zlib block)

i have also uploaded an orginal patch_mp 1.11 offzip and packzip to help a few people out,

You must login or register to view this content.

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

The following 11 users say thank you to Big Poppa Bren for this useful post:

das0, fightinillini94, Flokko-RCD, Gendjisan, ihaxgames, IW_JOSH, Karoolus, Nice1der, NOTANOOB, The_Return, XxprokillahxX
09-20-2010, 01:08 AM #92
juddylovespizza
I'VE GOT JUNGLE FEVER
I followed the steps in this tutorial up until the last 2, theres where I am at. As I get black screen, I didn't miss anything out just sounded like I did with that quick post Happy

I inserted it into D7D2
offset patch mp paste write.. but thats wrong course as I got the black screen
09-20-2010, 02:15 AM #93
Ritztro
I am a Game Developer
well my patch is different probably so you would have to find your own offset but how do you know to type in 00000002 or whatever.

---------- Post added at 09:15 PM ---------- Previous post was at 08:11 PM ----------

Originally posted by brendanj9554 View Post

once you have decompressed mission, use packzip to recompress with -o 0x00000002 (make a new hxd file with a zlib header only 78DA) -w -15 .it will then compress the missions

one thing you need to do is compare sizes from original files, you can paste write you compressed missions over the original, but you will have to delete data untill the end off your new missions meets the rank.gsc (check out the picture for a better idea of what i mean)

You must login or register to view this content.

once you have edited the data you need to delete all the untouched data inbetween, right up to when you paste write to the orignal patch_mp (delete data upto next untouched zlib block)

i have also uploaded an orginal patch_mp 1.11 offzip and packzip to help a few people out,

You must login or register to view this content.

thanks guys
__________________


Ok how did you get 0x00000002? I have a different offset...
09-20-2010, 03:29 AM #94
PS3LUV3R
Too Beast
Not Happy or Sad I thought I had it again...

I decompressed mossy's patched, compressed it all together without changing anything, got the same exact file size in the end, black screened. DAMN it.
09-20-2010, 03:34 AM #95
Tzee
Grunt
you have to find what headers to copy.and add bytes.
i recompressed one but cant remember how it was done. then it got erased :(
09-20-2010, 04:07 AM #96
Ritztro
I am a Game Developer
Originally posted by Tzee View Post
you have to find what headers to copy.and add bytes.
i recompressed one but cant remember how it was done. then it got erased :(


What do you mean by headers and bytes? can you go into a little more depth?
09-20-2010, 04:16 AM #97
PS3LUV3R
Too Beast
^ Yes please go more in depth.

The following user thanked PS3LUV3R for this useful post:

Ritztro
09-20-2010, 12:42 PM #98
JordyPordy
Can’t trickshot me!
really detailed thankyou.
09-21-2010, 12:16 PM #99
Freezing-HOT
iiRoAM - Maori Stylezz
i cant even seem to drag offzip into my command prompt lol

FAIL!!
09-21-2010, 09:21 PM #100
IW_JOSH
►►►►►
Great thread as ever, glad you finally managed to work it out Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo