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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23-10-2010, 00:33
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
@pakrat2k2

DVD5 size 3.77 gb

content.png

Create the patch

bsdiff oldfile newfile patchfile (e.g. bsdiff autorun.dat autorun_edited.dat patch.bin)

Apply the patch

bspatch oldfile newfile patchfile (e.g. bspatch autorun.dat autorun_patched.dat patch.bin)

RemoveTBS (Remove trailing backslash from targetdir "INSTALLLOCATION")

Code:
dim tempInstalldir
tempInstalldir=Session.Property("INSTALLLOCATION")
if Right(tempInstalldir,1)="\" then
    tempInstalldir=Left(tempInstalldir,Len(tempInstalldir)-1)
    Session.Property("INSTALLLOCATION")= tempInstalldir
end if
CAFreeArc (Extract FreeArc SFX archive MOH_arc.exe (the archive contains MOH_arc.pcf) to targetdir "INSTALLLOCATION")

Code:
Set wshShell = CreateObject ("WSCript.shell")
wshShell.Popup Chr(13) & Chr(10)& "Extracting FreeArc archive contents... ",1,"Setup",0
wshshell.run Session.Property("SourceDir") & "MOH_arc.exe" & " -x -d" & chr(34) & Session.Property("INSTALLLOCATION") & chr(34) & " -y -s2" , 0, True
CAPrecomp ("Re-compressing" Precomp file to targetdir "INSTALLLOCATION" & then delete MOH_arc.pcf)

Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject ("WSCript.shell")
wshShell.Popup Chr(13) & Chr(10)& "Re-compressing Precomp PCF file... ",1,"Setup",0
wshshell.run Session.Property("SourceDir") & "binaries\precomp038.exe" & " -r -o" & chr(34) & Session.Property("INSTALLLOCATION") & "\MOH_arc.exe" & chr(34) & " " & chr(34) & Session.Property("INSTALLLOCATION") & "\MOH_arc.pcf" & chr(34), 0, True
fso.DeleteFile Session.Property("INSTALLLOCATION") & "\MOH_arc.pcf"
CA7zip (and finally extract 7-zip SFX archive to "INSTALLLOCATION"MOHAGame\CookedPC & then delete MOH_arc.exe)

Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject ("WSCript.shell")
wshShell.Popup Chr(13) & Chr(10)& "Extracting 7zip archive contents... ",1,"Setup",0
wshshell.run chr(34) & Session.Property("INSTALLLOCATION") & "\MOH_arc.exe" & chr(34) & " x -aoa -y -o" & chr(34) & Session.Property("INSTALLLOCATION") & "\MOHAGame\CookedPC" & chr(34), 5, True
fso.DeleteFile Session.Property("INSTALLLOCATION") & "\MOH_arc.exe"
&= VB operator of string concatenation
chr(charcode)= Returns the character associated with the specified ANSI character code

Last edited by peterf1999; 23-10-2010 at 02:48.
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
INDEX - CD2DVD Conversion Index **UPDATED: 17-07-2024** Grumpy PC Games - CD/DVD Conversions 252 16-07-2024 20:35
Medal of Honor: Airborne (UK) (DVD9 to 2x DVD5) BarryB PC Games - CD/DVD Conversions 7 09-06-2010 21:07
Phantasy Star Universe (DVD9 to 2 DVD5 OR DVD9 to 1 DVD5) Heretic666 PC Games - CD/DVD Conversions 6 26-12-2006 06:28



All times are GMT -7. The time now is 21:06.


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