Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2020, 05:16
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 648
Thanks: 772
Thanked 927 Times in 308 Posts
78372 is on a distinguished road
Directory Patcher

Directory Patcher is a tool that makes a patch file for a whole directory.
Imagine you have repacked a game that has been updated by the developer and now you need to repack the whole game again for the update.
For cutting off your time you can make a patch using this program. You will need the old game files and the newer ones. This program will generate a patch for you and can easily apply it with the command line tool provided with this.

Usage for dpzapply.exe:
dpzapply.exe patchfile dir

The xdelta mode is faster than normal mode and takes less memory. But it requires xdelta3.exe to be present.
The normal mode uses bdiff by Peter Johnson. is slow and memory sucker. But it doesn't require any other files.

Bugs:
The program doesn't handle errors at this moment. If you do something wrong, the program may mess up stuff. Made this in one day so do some tests to know how it's actually doing stuff.

Source:
Will be uploaded soon.
Attached Images
File Type: png dirpatcher.png (237.7 KB, 483 views)
Attached Files
File Type: 7z Dirpatch.7z (3.97 MB, 164 views)
File Type: 7z DirPatcher_bugfix1.7z (3.59 MB, 170 views)
__________________
NOT AVAILABLE

Last edited by 78372; 04-08-2020 at 08:20.
Reply With Quote
The Following 20 Users Say Thank You to 78372 For This Useful Post:
Abbat (17-03-2021), ARTEMiS14 (04-08-2020), BLACKFIRE69 (03-08-2020), devil777 (03-08-2020), Entai44 (06-09-2020), ffmla (03-08-2020), Harsh ojha (03-08-2020), kenzo34 (03-08-2020), kj911 (24-04-2021), L0v3craft (18-08-2020), lolaya (03-08-2020), Masquerade (03-08-2020), Mortal Lord (03-08-2020), oltjon (03-08-2020), PsYcHo_RaGE (04-08-2020), rambohazard (06-08-2020), Razor12911 (03-08-2020), ScOOt3r (24-04-2021), shazzla (03-08-2020), ZAZA4EVER (05-08-2020)
Sponsored Links
  #2  
Old 03-08-2020, 06:51
lolaya's Avatar
lolaya lolaya is offline
Registered User
 
Join Date: Jul 2011
Location: still life
Posts: 127
Thanks: 142
Thanked 34 Times in 25 Posts
lolaya is on a distinguished road
awesome
Reply With Quote
  #3  
Old 04-08-2020, 03:52
amin fear amin fear is offline
Registered User
 
Join Date: Feb 2012
Location: Inferno
Posts: 96
Thanks: 73
Thanked 54 Times in 29 Posts
amin fear is on a distinguished road
Thanks , Nice tool !
__________________
Paint me white so i can invisibly fight in the light...paint me black so i can hide my tears in the shadow of your heart.
Reply With Quote
  #4  
Old 04-08-2020, 06:30
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 524
Thanks: 114
Thanked 384 Times in 235 Posts
Masquerade is on a distinguished road
Hi, I appear to be having some minor issues with your tool:



This pops up when MT is selected and XDelta disabled, is there some incompatibility here?

If this helps: testing on a small Unreal Engine games with very few changed files (a few dlls).

Testing XDelta mode now.
Reply With Quote
  #5  
Old 04-08-2020, 08:20
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 648
Thanks: 772
Thanked 927 Times in 308 Posts
78372 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
Hi, I appear to be having some minor issues with your tool:



This pops up when MT is selected and XDelta disabled, is there some incompatibility here?

If this helps: testing on a small Unreal Engine games with very few changed files (a few dlls).

Testing XDelta mode now.
Thanks, at least someone tested the program.
Bugfix uploaded.
__________________
NOT AVAILABLE
Reply With Quote
The Following User Says Thank You to 78372 For This Useful Post:
devil777 (05-08-2020)
  #6  
Old 16-08-2020, 09:25
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 524
Thanks: 114
Thanked 384 Times in 235 Posts
Masquerade is on a distinguished road
New issue, when trying to apply a patch, I get this error:

Code:
Exception: Patch not in BINARY format
This is with Xdelta turned OFF, Multithreading turned ON in the dp window.

Using command:

dpzapply patch.x ..\

Running through batch file.

Xdelta option has this error:

Code:
EDirectoryNotFoundException: The specified path was not found
When I tried the xdelta patch through, I did place the xdelta3 binary with the dpzapply and patch file, inside the temp folder (which I why I set the patch dir to be ..\)

Same error occurs if I place files in root dir and use .\

Last edited by Masquerade; 16-08-2020 at 09:32.
Reply With Quote
  #7  
Old 17-08-2020, 09:04
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 648
Thanks: 772
Thanked 927 Times in 308 Posts
78372 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
New issue, when trying to apply a patch, I get this error:

Code:
Exception: Patch not in BINARY format
This is with Xdelta turned OFF, Multithreading turned ON in the dp window.

Using command:

dpzapply patch.x ..\

Running through batch file.

Xdelta option has this error:

Code:
EDirectoryNotFoundException: The specified path was not found
When I tried the xdelta patch through, I did place the xdelta3 binary with the dpzapply and patch file, inside the temp folder (which I why I set the patch dir to be ..\)

Same error occurs if I place files in root dir and use .\
. is not expanded somehow so you need to write the full dir. The dpzapply and xdelta exe should be in the same dir.
__________________
NOT AVAILABLE
Reply With Quote
  #8  
Old 17-08-2020, 12:26
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 524
Thanks: 114
Thanked 384 Times in 235 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by 78372 View Post
. is not expanded somehow so you need to write the full dir. The dpzapply and xdelta exe should be in the same dir.
And how would this work if I am deploying an update to a game?

Say I share game A, then it updates so the game is now A.2.

I would like to share just the update to people, so how will I write the full dir when there are multiple different paths everyone can have?

I also tried %cd%, but %cd% doesn't work.

Do you have any other answer? I really like this tool, it's a shame I just can't get it to work.
Reply With Quote
  #9  
Old 31-08-2020, 00:09
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 648
Thanks: 772
Thanked 927 Times in 308 Posts
78372 is on a distinguished road
Try this. Works fine here, but I am not sure if it will work for all cases
Attached Files
File Type: rar dpzapply.rar (280.3 KB, 19 views)
__________________
NOT AVAILABLE
Reply With Quote
  #10  
Old 31-08-2020, 03:50
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 524
Thanks: 114
Thanked 384 Times in 235 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by 78372 View Post
Try this. Works fine here, but I am not sure if it will work for all cases
XDelta quits straight away, bdiff quits just after some patch data is extracted.

I have messaged you the game I'm testing on, with the old folder and the new folder. Patch.bat is in old folder.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
78372 (31-08-2020)
  #11  
Old 21-09-2020, 08:08
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 524
Thanks: 114
Thanked 384 Times in 235 Posts
Masquerade is on a distinguished road
Ok I did some further looking today,

I still cannot apply a patch, but I have found that the patcher will quit if the directory the patch is being applied to has a space in:

E.g.
Code:
E:\Games\Among Us
causes instant quit.

Using "%cd%" variable, translating to "E:\Games\Among Us" leads to
Code:
Exception: Patch not in BINARY format
Renaming to E:\Games\Among_Us leads to
Code:
EInOutError: The system cannot find the file specified
All using non Xdelta patch method.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
78372 (09-10-2020)
  #12  
Old 13-03-2021, 01:45
Epic Titan 69 Epic Titan 69 is offline
Banned
 
Join Date: Dec 2020
Location: In The Hell
Posts: 89
Thanks: 147
Thanked 39 Times in 27 Posts
Epic Titan 69 is on a distinguished road
I used this tool to make patch update for a small game
Now the output file is
Code:
FILENAME.dpz
can anyone tell me full procedure of how to apply it to older game version
I am Little bit confused about it....

Thanks In Advance
Reply With Quote
  #13  
Old 23-04-2021, 09:48
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 648
Thanks: 772
Thanked 927 Times in 308 Posts
78372 is on a distinguished road
BDiff takes too much time for me to test and running xdelta is not stable yet somehow. I can't find a xdelta dll with examples that works with streams/handles, and at this current condition, this project takes a lot of time and patience to test. I don't have much time right now so this project is dead now.
__________________
NOT AVAILABLE
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Medal of Honor-Allied of Assault + Spearhead + Breakthrough on the one DVD Grumpy PC Games - CD/DVD Conversions 18 08-12-2017 07:33
Call of Duty and United Offensive on One DVD Grumpy PC Games - CD/DVD Conversions 6 23-05-2009 14:46
DPM and new Directory on CD/DVD? (example: SilentHunter3) skite2001 PC Games 8 03-05-2005 15:05
Where to find latest version of PAL Patcher? Bursk DC Games 5 24-09-2002 08:20
Napalm Patcher boba fett PSX Games 0 12-03-2001 22:52



All times are GMT -7. The time now is 13:51.


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