FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Want a tutorial on how to apply xdelta patch on Just Cause 3 (https://fileforums.com/showthread.php?t=97967)

Amsal 13-06-2016 04:30

Want a tutorial on how to apply xdelta patch on Just Cause 3
 
As the title says, I want to know that I extracted just cause 3 .arc archives and compressed them with srep+lzma, but the md5 will change, but as I heard that if we apply delta patch on it then it is possible to make it exactly same. So is someone give me Full tutorial for applying delta patch on jc3 files!

Thanks for helping

felice2011 13-06-2016 05:37

You need something to create and apply patches xdelta, or do not think you fully understand what you need.:confused:

KaktoR 13-06-2016 05:57

You need some base version + update to newer version for JC3.

md5 is always the same unless you edit a file, then it mismatches.
You can copy/extract a file 1000 times, md5 will be always the same if you don't edit them.

I don't know what you actually looking for. A patch for a newer version for the game or what?

Amsal 13-06-2016 07:48

No everyone, I mean there is one more method for repacking, we extract game files through quickbms then compress them through simple method like srep+lzma and then we repack whole game, so I am asking that we extracted file, if we rebuild through quickbms then yes it will be md5, but if we extract and compress through any other compression method then md5 changes!

mikey26 13-06-2016 08:58

@Amsal : i see what you want to do u wanna unpack all the files with quickbms compress srep+lzma for better compression.then install game then rebuild the unpacked files to match correct md5 like the original pack files so game can work.basically you wanna do a fitgirl repack.which is crazy cause the install times is just madness and the work behind it is crazy.i feel sorry for your hard drives during repacking and install.

as you said you can unpack with quickbmas just you need to know how those pack files are repacked you can check the headers to see and repack the same to match md5.there are tools on the quickbms site like (offzip as a example) to scan headers to find out so repack file with the correct encryption and md5.its alot of work as i mentioned.

ChronoCross 13-06-2016 18:46

1 Attachment(s)
This take a lot of time.

Amsal 13-06-2016 22:04

Quote:

Originally Posted by ChronoCross (Post 449520)
This take a lot of time.

Thanks a lot chronocross for the deep lesson!

Amsal 13-06-2016 22:29

But could you give deep lesson for how to use xdelta for applying the patch, like which tool I have to use and how to use :) thanks for the help chronocross

felice2011 14-06-2016 00:27

Quote:

Originally Posted by Amsal (Post 449522)
But could you give deep lesson for how to use xdelta for applying the patch, like which tool I have to use and how to use :) thanks for the help chronocross

To begin you have tried Xdelta GUI, execute the work 3 & 4 of the image posted by ChronoCross.

Amsal 14-06-2016 01:13

Quote:

Originally Posted by felice2011 (Post 449525)
To begin you have tried Xdelta GUI, execute the work 3 & 4 of the image posted by ChronoCross.

Thanks mate, and if I want to do it with a batch so I can include it in inno?

felice2011 14-06-2016 01:47

I think yes, I have never used, on the tube, there are several tutorials on how to use QuickBMS to extract and unzip the game file, and I think it's not a walk ... see here too http://zenhax.com/index.php

mikey26 14-06-2016 05:00

@felice2011 3 and 4 of the diagram is not how xdelta works exactly i could be off but everything before that is spot on bro.i have worked with xdelta a bit and this is how i worked it out and it does work maybe your method is right but lets give all options to the guys :-)

xdelta works by having the original game folder.if there is a update to a game we create a second folder of the original game folder/file we update the game,either folder can be used .
we then point xdelta to the original folder and then point xdelta to the second folder which is updated.then a vdiff patch is made with the difference of the 2 folders.

BAM you have a update :-) which is small compare to some of the patch sizes released.
This also works on Steam games if you have a slow connection and the game has a 5gb or 6gb and a friend can do this xdelta patch for you it could bring the update size down to 500mb and this will not cause account to be banned just as a example.

my problem with the above diagram is the original file/folder,if you going to do a xdelta between the original and repacked the is no base line between the the 2 file/folder one has all the files in its original state and the repacked file/folder has all the extracted files from using quick bms.you going to do a xdelta you basically going to have a patch the size of the original folder/files cause the in no link between any of the files when doing xdelta..

if anyone have some input feedback would be great to see what else xdelta can do.i am not a expert but i was just giving my input.

@Felice & ChronoCross i mean no disrespect to you and the input you have shared. just giving my 2c lol :P

this is the xdelta i am using its have a nice little built script to create the patch in a inno setup.

http://krinkels.org/resources/inno-s...ate?update=626

ChronoCross 14-06-2016 05:16

Quote:

Originally Posted by Amsal (Post 449522)
But could you give deep lesson for how to use xdelta for applying the patch, like which tool I have to use and how to use :) thanks for the help chronocross

check here

felice2011 14-06-2016 05:21

mikey26 ... more than anything else, in this part of threads I would be interested in understanding the concept, method, and the various applications used by "FitGirl" to compress overly well a game.;)

Amsal 14-06-2016 07:50

Quote:

Originally Posted by mikey26 (Post 449529)
@felice2011 3 and 4 of the diagram is not how xdelta works exactly i could be off but everything before that is spot on bro.i have worked with xdelta a bit and this is how i worked it out and it does work maybe your method is right but lets give all options to the guys :-)

xdelta works by having the original game folder.if there is a update to a game we create a second folder of the original game folder/file we update the game,either folder can be used .
we then point xdelta to the original folder and then point xdelta to the second folder which is updated.then a vdiff patch is made with the difference of the 2 folders.

BAM you have a update :-) which is small compare to some of the patch sizes released.
This also works on Steam games if you have a slow connection and the game has a 5gb or 6gb and a friend can do this xdelta patch for you it could bring the update size down to 500mb and this will not cause account to be banned just as a example.

my problem with the above diagram is the original file/folder,if you going to do a xdelta between the original and repacked the is no base line between the the 2 file/folder one has all the files in its original state and the repacked file/folder has all the extracted files from using quick bms.you going to do a xdelta you basically going to have a patch the size of the original folder/files cause the in no link between any of the files when doing xdelta..

if anyone have some input feedback would be great to see what else xdelta can do.i am not a expert but i was just giving my input.

@Felice & ChronoCross i mean no disrespect to you and the input you have shared. just giving my 2c lol :P

this is the xdelta i am using its have a nice little built script to create the patch in a inno setup.

http://krinkels.org/resources/inno-s...ate?update=626

Quote:

Originally Posted by ChronoCross (Post 449530)

Thanks Mikey and chronochross ;)

SAM2712 14-06-2016 08:02

Quote:

Originally Posted by felice2011 (Post 449531)
mikey26 ... more than anything else, in this part of threads I would be interested in understanding the concept, method, and the various applications used by "FitGirl" to compress overly well a game.;)

Yeah :confused: Mostly people wants to know about fitgirl work :D

felice2011 14-06-2016 09:07

Quote:

Originally Posted by SAM2712 (Post 449534)
Yeah :confused: Mostly people wants to know about fitgirl work :D

Unfortunately I think that here in the forum not there is no one who knows in detail the method of work of the fitgirl compression, so as you can explain through a tutorial the various steps and components used, conversely someone would already intervened in detail on the issue.

ChronoCross 14-06-2016 14:51

Thats right felice and let me add every game have a diferent method of compression lossy and lossless combined. Also look quantum game by fitgirl. Size 28gb. But you need 107gb !! I suspect they use reflate. And all the world watching us beause all the tools go out from here fileforums rules!!

felice2011 14-06-2016 15:16

Yes Chrono, you're right most of the tools and ideas come from here, mine was just a curiosity in deepening the study and the mechanics of compression used by FitGirl.
I examined and extracted the installer of their work, they use compressors and decompressors to part with FA support, installation works full in windows temp, temporary files are extracted by FA and then decompressed to the original files through bat commands.

mikey26 15-06-2016 01:09

alot of fitgirls repacks involves unpacking all large pack files.there are so many ways to unpack files but it also depends on the games encryption on those pack files.there are tools to check these encryptions as you have seen in quickbms but unpacking is the easy part it getting it back to the same as the original.

on most of her repacks as you see the files unpack and you get fooled by the normal temp files created of precomp and srep and the normal files created by inno setup files but in the middle of the unpacking of all these thousands of files a second set of tmp files are extracted and no they are not extracted into the install dir they are in the user account temp dir these are the files that are going to put the thousands of files the way they supposed to be just like the original files and correct md5's.yes there are a few bat files and few txt files and some of her own files she created to get the correct md5's and pack the into the correct type of pack files with the correct encryption so the game can work.

so there is no real shortcut into doing those repacks unless you a programmer that can make these custom files to repack with the correct md5's.there are a few tools out that will help with a few games but not every game is the same or uses the same encryption on pack files.

and good luck to your harddrives unpacking and repacking those type of repacks especially your ssd drives just to save a few gb's.i am sure some of you wonder how she got to repacks so small.unpacking repacking,duplicating merging sorting of files as seen in her repacks while the installer is going and the 5 hours to install a 15gb game to a mechanical drive.and the famous line it looks stuck just leave it alone it working.

so its not that easy to do and i doubt any converters here are willing to go through that tortune.

Razor12911 15-06-2016 06:50

Quote:

Originally Posted by ChronoCross (Post 449543)
Thats right felice and let me add every game have a diferent method of compression lossy and lossless combined. Also look quantum game by fitgirl. Size 28gb. But you need 107gb !! I suspect they use reflate. And all the world watching us beause all the tools go out from here fileforums rules!!

I don't think reflate is effective on that game, got 32GB anyways with reflate+srep+lzma

felice2011 15-06-2016 14:38

The method generally used is this (precomp+msc+srep), as he said Razor do not using reflation.

Examined the game RIDE compressed installation of 8.3GB, 25GB uncompressed.

The workbook is created ... "C:\Users\Name\AppData\Local\Temp" through installing InnoSetup.

Inside the Game installation folder during extraction, it creates a temporary folder (temp) with most of of the game files converted to *.DDS (The DDS files are in raster image format used by Microsoft DirectX to store textures and environments.
These files can be stored uncompressed and compressed pixel formats. They are sometimes used for storing backgrounds for the Windows desktop or backgrounds, as well as for texturing models of video game unit).

In mid-installation, the files *.dds, are reconverted in the original structure of the game files and copied/moved in their original path of game.

For those who are curious or interested i posted the temporary working folder with files and methods used for the complete installation.

Attachment 14568

Carldric Clement 15-06-2016 21:43

Quote:

Originally Posted by ChronoCross (Post 449520)
This take a lot of time.

I like this style compress. But it looks like carefully about this step's. :D


All times are GMT -7. The time now is 00:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com