FileForums

FileForums (https://fileforums.com/index.php)
-   PC Games - CD/DVD Conversions (https://fileforums.com/forumdisplay.php?f=39)
-   -   Medal Of Honor (DVD9 to 1x DVD5) *Multi 2 (ENG,FRA)* *SP Only* (https://fileforums.com/showthread.php?t=90581)

peterf1999 20-10-2010 12:14

Medal Of Honor (DVD9 to 1x DVD5) *Multi 2 (ENG,FRA)* *SP Only*
 
3 Attachment(s)
Medal Of Honor (DVD9 to 1x DVD5) *Multi 2 (ENG,FRA)* *Single Player Only*

1) Install the game

2) Extract 'MOH_1xDVD5.7z' contents

3) Copy DVD9 contents to 'MOH_DVD5\MOH' folder

4) Launch Re-compress.exe & wait...

5) Burn or mount iso in 'MOH_DVD5' folder

DVD5 size 3.77 gb

If you want to skip annoying CDKEY insertion, edit localization.ini & add entry:

Code:

[CDKEY]
value=XXXX-XXXX-XXXX-XXXX-XXXX

where X=Number or uppercase character

and use custom msi launcher (EAsetup.7z)


Attachment 1902

lieeray 20-10-2010 20:36

Thanks Peter, but why don't u use "for in ()" to precomp files in CookedPC instead 7z it?
It might reduce much time
my steps:
del MP→precomp "CookedPC"→create bat(include decompress pcf,output localization reg,shortcut,etc..)→make 7zsfx&autorun image(folder)→burn

total size:3.47GB


Regards,

pakrat2k2 21-10-2010 11:24

Quote:

Originally Posted by lieeray (Post 389319)
Thanks Peter, but why don't u use "for in ()" to precomp files in CookedPC instead 7z it?
It might reduce much time
my steps:
del MP→precomp "CookedPC"→create bat(include decompress pcf,output localization reg,shortcut,etc..)→make 7zsfx&autorun image(folder)→burn

total size:3.47GB


Regards,

care to post how you did this.. detailed info needed ;)

peterf1999 21-10-2010 12:53

Quote:

Originally Posted by lieeray (Post 389319)
Thanks Peter, but why don't u use "for in ()" to precomp files in CookedPC instead 7z it?
It might reduce much time
my steps:
del MP→precomp "CookedPC"→create bat(include decompress pcf,output localization reg,shortcut,etc..)→make 7zsfx&autorun image(folder)→burn

total size:3.47GB


Regards,

In 7zip sfx archive the files are stored (no compression, so fast).

The true compression sequence is:

Precomp ("decompression" with detection of zlib) -> Freearc -mx -ld800m

lieeray 21-10-2010 13:20

Quote:

Originally Posted by pakrat2k2 (Post 389340)
NO Becasue its a STEAM game !!



care to post how you did this.. detailed info needed ;)

I'm a 19yrs old student in Taiwan.

Forgive my poor English and couldn't tell you the process in detail.

1.simply precomp the folder"CookedPC" file by file(slow mode)

2.create a bat to setup the game(similiar to Peter's methods)

3.7zsfx all the folders(m:192mb dict+solid)

I can't tell what obvious diffrences between mine and Peter's.

Sorry for I couldn't give you more info you need, but the result actually smaller by 300mb.

pakrat2k2 22-10-2010 10:26

peter you have couple errors in your batch file..

line 8 precomp038 -slow -oMOH_arc MOH_arc.exe ( after completing it says to use -c56 -m78) for faster processing
then right after that completes you delete it ?

line 9 del MOH_arc.exe

but on line 36 you want to move it to MOH dir

line 36 move MOH_arc.exe .\MOH\ >nul

But it's not there to move as its deleted from line 9

end up with 1.87GB ISO file??

Have run it twice now & it ends up the same size both times.

One other question

How do you generate the patch.bin ( i know its with bsdiff/bspatch )
but whats changed in the autorun.dat file ? looking thru both ( original / patched ) they look identical.:confused::confused:

peterf1999 22-10-2010 11:54

1 Attachment(s)
Quote:

Originally Posted by pakrat2k2 (Post 389362)

line 8 precomp038 -slow -oMOH_arc MOH_arc.exe ( after completing it says to use -c56 -m78) for faster processing
then right after that completes you delete it ?
line 9 del MOH_arc.exe

Yep, MOH_arc.exe (7zip sfx archive) becomes MOH_arc.pcf

Quote:

Originally Posted by pakrat2k2 (Post 389362)
but on line 36 you want to move it to MOH dir

line 36 move MOH_arc.exe .\MOH\ >nul

But it's not there to move as its deleted from line 9

Its freearc SFX archive that contains MOH_arc.pcf
Quote:

Originally Posted by pakrat2k2 (Post 389362)
end up with 1.87GB ISO file??

did you do step 3?
1.87GB is the size of MOH_arc.exe

Quote:

Originally Posted by pakrat2k2 (Post 389362)

One other question

How do you generate the patch.bin ( i know its with bsdiff/bspatch )
but whats changed in the autorun.dat file ? looking thru both ( original / patched ) they look identical.:confused::confused:

take a look at the tables CustomAction & installUIsequence

Attachment 1911

pakrat2k2 22-10-2010 12:43

1 Attachment(s)
Quote:

Originally Posted by peterf1999 (Post 389364)
Yep, MOH_arc.exe (7zip sfx archive) becomes MOH_arc.pcf



Its freearc SFX archive that contains MOH_arc.pcf


did you do step 3?
1.87GB is the size of MOH_arc.exe

Yes i did step #3. In the ISO that was created, /MOHAGame/CookedMovies\*
is the bulk of the size of the ISO. There is no MOH_arc.* file anywhere in the created ISO.

Also you never answered how to create the patch.bin using bsdiff / bspatch. Care to explain how ?

Can you attach in a text file what the 4 lines you added from customaction table are supposed to say?
It has a bunch of garbled symbols in the line and very hard to know if those are supposed to be something specific or spaces ..
Thanks

Below is a screenshot of the created ISO

peterf1999 22-10-2010 12:52

Quote:

Originally Posted by pakrat2k2 (Post 389365)
Yes i did step #3. In the ISO that was created, /MOHAGame/CookedMovies\*
is the bulk of the size of the ISO. There is no MOH_arc.* file anywhere in the created ISO.

Also you never answered how to create the patch.bin using bsdiff / bspatch. Care to explain how ?

Below is a screenshot of the created ISO

WEIRD:confused:, it works for me, however try to repeat the conversion, at the 1st batch's pause, copy MOH_arc.exe to another location and then stop the batch (ctrl c). Rebuild the iso with MOH_arc.exe in the root

pakrat2k2 22-10-2010 13:01

thanks, will try

EDIT
Quote:

Originally Posted by peterf1999 (Post 389366)
WEIRD:confused:, it works for me, however try to repeat the conversion, at the 1st batch's pause

When it says Everthings fine ? break at that point ?? Because if I do it there and copy over the arc file the resulting ISO is 4.77GB!

EDIT: Had to let it run thru arc a -mx -sfxfreearc.sfx -ld800mb MOH_arc MOH_arc.pcf BUT still BIGGER then your archive ?? ( 2.8GB )

d00m3d 22-10-2010 14:12

When the install process is completed, before you press finish there's an option to read the readme file. This didn't work for me. However I can open the readme manually, from the installed path in Program Files..

elbubi 22-10-2010 15:03

Tested and working 100000% :D :D :D

Thanks once again Peter!!! :) :) :)

peterf1999 23-10-2010 00:33

1 Attachment(s)
@pakrat2k2

DVD5 size 3.77 gb

Attachment 1914

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

pakrat2k2 23-10-2010 10:36

1 Attachment(s)
Thanks for the extra detailed info

Just a couple more questions :eek:

I've run the re-compress a few times, starting over each time, but i cannot seem to get the archive MOH_arc.exe any smaller then 2.87GB!

Ive run it direct from your EXE also run it from the extracted bat file

changed the line precom038... from -slow oMOH_arc MOH_arc.exe
to precomp038 -c56 -m78 -oMOH_arc MOH_arc.exe

del MOH_arc.exe

arc a -mx -sfxfreearc.sfx -ld800mb MOH_arc MOH_arc.pcf

The resulting ISO is still 4.58GB ?

Also I dont see the subfolder from MOHAGame\CookedPC\shadercache included in the archive? Just the CookedPC folder.

Again thanks for taking the time to supply extra info :cool:

MOH ARCHIVE ( Just running precomp038 )

peterf1999 23-10-2010 11:21

Quote:

Originally Posted by pakrat2k2 (Post 389383)
Thanks for the extra detailed info

Just a couple more questions :eek:

I've run the re-compress a few times, starting over each time, but i cannot seem to get the archive MOH_arc.exe any smaller then 2.87GB!

Ive run it direct from your EXE also run it from the extracted bat file

changed the line precom038... from -slow oMOH_arc MOH_arc.exe
to precomp038 -c56 -m78 -oMOH_arc MOH_arc.exe

del MOH_arc.exe

arc a -mx -sfxfreearc.sfx -ld800mb MOH_arc MOH_arc.pcf

The resulting ISO is still 4.58GB ?

Also I dont see the subfolder from MOHAGame\CookedPC\shadercache included in the archive? Just the CookedPC folder.

Again thanks for taking the time to supply extra info :cool:

MOH ARCHIVE ( Just running precomp038 )

precomp038 -slow -c56 -m78 -oMOH_arc MOH_arc.exe

for zlib detection and you will get a proper size of archive ;)

MOH_arc.pcf ~ 6.3 gb

shaderC3.cab content is not compressed


All times are GMT -7. The time now is 18:43.

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