PDA

View Full Version : XDELTA Batch Game Patcher (For Repacks)


pratikpatel8982
21-05-2021, 07:25
The Original script was posted on run.ru
All credit goes to paul44.
I have just modified it to suit repack installers. (automatic patching when opened)

This tool will create patches for games (created by the repacker) and then when game patcher.bat is executed, it will automatically detect game and apply the patch without user interference.

How To Use:

YOU MUST EDIT THE FOLLOWING LINES ACCORDING TO THE GAME BEFORE USE:
I do not recommend editing any other lines then the mentioned ones to avoid code breaking.


IN XdeltaPatchCreator_v2.0a.bat:
line 37
line 123

IN XdeltaGamePatcher_v2.8e.bat:
line 39
line 48,49,50
line 109


How to Create Patch: After editing, open XdeltaPatchCreator_v2.0a.bat and create patch.

How to Apply Patch: After editing, copy XdeltaGamePatcher_v2.8e.bat, _TempPatch and xdelta3-3.0.8.x86-64.exe to the base game folder.
If you are using setup file, You must create an archive with these three files so that they extract inside the base game folder. And edit the script to run XdeltaPatchCreator_v2.0a.bat

It will delete all junk files after execution including the .bat file itself.

Script Code example:[Run]
Filename: "{app}\XdeltaGamePatcher_v2.8e.bat"; StatusMsg: "Installing Latest Update"

If you want to run it hidden:
[Run]
Filename: "{app}\XdeltaGamePatcher_v2.8e.bat"; StatusMsg: "Installing Latest Update"; Flags: runhidden


You can also add other flags to it.

You can press the Thanks button to appreciate my work

GaMEr_2077
21-05-2021, 07:35
ASM!!!!!
N
Working
Bhai laga hi di aag :p

pratikpatel8982
21-05-2021, 08:52
ASM!!!!!
N
Working
Bhai laga hi di aag :p

Thanks, also added command to run it hidden (user will not see the window). Also made WPI script for mc (https://fileforums.com/showpost.php?p=492268&postcount=186)

Bhai meko bhi chahiye tha aisa feature. Ab baar bar compress ni karna padega.

KaktoR
21-05-2021, 11:31
You should delete the link of rin forums (it is not allowed).

However, you can just name the site like "rin.ru" or something (I guess everyone knows about it anyway).

pratikpatel8982
21-05-2021, 18:57
You should delete the link of rin forums (it is not allowed).

However, you can just name the site like "rin.ru" or something (I guess everyone knows about it anyway).

Done.

pratikpatel8982
21-05-2021, 21:03
Updated OP with correct info + updated batch script

pratikpatel8982
22-05-2021, 10:08
Don't use runhidden flag with this script!! It freezes the Installer.
Future Version Goals: Completely re-writing the patcher.bat script from scratch and try to solve the above bugs.