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

pakrat2k2 23-10-2010 12:14

"shaderC3.cab content is not compressed" NOT the cab file BUT CookedPC\shadercache FOLDER ( It's NOT included in the MOH_arc.exe file ) !

peterf1999 23-10-2010 12:57

Quote:

Originally Posted by pakrat2k2 (Post 389386)
"shaderC3.cab content is not compressed" NOT the cab file BUT CookedPC\shadercache FOLDER ( It's NOT included in the MOH_arc.exe file ) !

CookedPC\shadercache contains ShaderC3.cab files,but after conversion ShaderC3.cab is like the original, no need to compress its content in MOH_arc.exe

pakrat2k2 23-10-2010 13:59

thanks, think i got it all straight now ;)

pakrat2k2 24-10-2010 12:51

peter' or anyone else

How do you create 1kb files? I know robocopy ( XP ) can copy source destination 0kb file, how are your files all 1kb ?

pleomax 24-10-2010 16:58

I think it is like this if you are using windows:
http://i54.tinypic.com/28woyvt.jpg
Open Comman Prompt and type in this command, you can use any file extension and file size as you like:
Quote:

fsutil file createnew F:\IamDummy.txt 1300594688
http://i52.tinypic.com/2q8zrxi.jpg
or you can use the NOD32 Dummy File Creator Utility 1.0

I hope it helps.

pakrat2k2 24-10-2010 21:59

plexomax, thanks either one of those helps out ;)

pakrat2k2 25-10-2010 12:53

Because HIS is ONLY English / French SP! There are more then just those 2 languages that people want to play SP in..

elbubi 25-10-2010 13:03

I know that, but peter's is ENG/FRA and those who are requesting that tutorial ask for ENG only conversion, which is already included in ENG/FRA conversion :confused:

Cheers :)

PS: Besides, itīs really easy to download separate audio/text files and you can still put in on 1 dvd5. Iīve done that with peter's conversion, I added spanish texts/voices (300mb), and burned it in 1 dvd. If you replace language files before converting, you can even convert it in the language you want, as long as you keep file names (I overwrote english files with spanish ones, but keeping english file names). Worked flawlessly ;)

pakrat2k2 25-10-2010 21:35

Quote:

Originally Posted by Warl0rd (Post 389433)
I get a error

make sure the drive you have it on is NTFS if its fat32 thats why it errors, the file will be bigger then 4GB ( fat32 limit )

Quote:

Originally Posted by Marcio J da Silva (Post 389435)
Here too:

Your error is becasue its not the CORRECT version!!! ( MSI file mismatch !! )

pakrat2k2 26-10-2010 14:20

Marcio J da Silva look in documents for game & see what languages your DVD supports.
If its NOT just English and French then the conversion will NOT work for you ever.

Marcio J da Silva 26-10-2010 14:41

1 Attachment(s)
This?

pakrat2k2 26-10-2010 15:01

yes you have MULTI3: EN/PL/RU

see this thread for a conversion that works for your version of the game.

http://fileforums.com/showthread.php?t=90543

peterf1999 01-11-2010 12:15

Quote:

Originally Posted by pakrat2k2 (Post 389669)
peter

I am working on converting your multi2 version into the multi8 version. But having a script issue.

Code:

Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action CA7zip script error -2147024703, :  Line 4, Column 1,
The conversion works fine until it starts to process the MOH_arc.exe file. I take it that the 3 files precomp038.exe, packjpg_dll.dll, zlib1.dll file are NOT in the InstalledGame/binaries folder, as they are not in MSI file & DONT seem to be copied over during install phase. Are they part of the custom EASetup ?

recomp038.exe, packjpg_dll.dll, zlib1.dll must be on dvd binaries folder
EASetup.exe is a key reader & custom msi launcher

peterf1999 01-11-2010 12:26

Quote:

Originally Posted by pakrat2k2 (Post 389671)
Ive tried it twice those files are in binaries folder on DVD but still getting that error ??

The last custom action returns an error:

Do you have enough free space on partition?

Moh_arc.exe (7zip sfx archive) is damaged or missing?

edit1:

No need to copy those files

pakrat2k2 01-11-2010 12:39

temp folder ( on seperate HD 10GB freespace )

game install drive has 40GB freespace.

in gamefolder its 0 bytes. But thats where the script error came up & aborted install.

On DVD its 1.74GB & extracts pcf file perfectly, manually tho.

peterf1999 01-11-2010 12:45

Quote:

Originally Posted by pakrat2k2 (Post 389674)
temp folder ( on seperate HD 10GB freespace )

game install drive has 40GB freespace.

in gamefolder its 0 bytes. But thats where the script error came up & aborted install.

On DVD its 1.74GB & extracts pcf file perfectly, manually tho.

Post the snapshot of the game folder after the error

Custom action CA7zip script error -2147024703, : Line 4, Column 1,

Code:

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
run method cannot find MOH_arc.exe or its damaged

pakrat2k2 01-11-2010 13:16

and wont you know it... cleaning up temp folder, now it seems to be extracting properly.. I wont post until I try it a couple more times!!! dont want any errors
coming up. and after reading the scripts you posted on page 2 I see it says dontcopy !!
gotta read closer..

I had to extract those 2 custom tables, as orca wouldnt allow me to input them manually. The lines were longer then it would allow. I know im doing something wrong there, but cant figure it out.

thanks for your assistance.

pakrat2k2 01-11-2010 17:21

Quote:

Originally Posted by peterf1999 (Post 389675)
Post the snapshot of the game folder after the error

Custom action CA7zip script error -2147024703, : Line 4, Column 1,

Code:

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
run method cannot find MOH_arc.exe or its damaged

Well couple more questions, regarding the archive & how you got it entered into the 2 tables.

The MULTI8 version 'cookedmovies' folder is HUGE, almost 6GB itself.

Can you tell me, looking at the customaction table, How you managed to add such a long line into the table? Was it thru adjust schema ??

EDIT

Also I need to be able to add a second archive, much like the first for cookedpc, but for cookedmovies. Can another seuqence be added just like
it was added to extract from the moh_arc.exe, maybe just adding a # to the second archive for the second sequence.

IE:

cookedpc --> moh_arc.exe
cookedmovies ---> moh_arc1.exe

Then when it gets to sequence 38 in custom action table, it extracts the first archive.
Does it have to be numbered any different for the next archive????

thanks for your time & explanations :)

peterf1999 02-11-2010 00:58

1 Attachment(s)
no need to compress videos, try this way:

all vp6 video files of languages that you want to delete will replaced with fake vp6 videos in source folder

e.g. for german conversion:

MOH_AltFinale.vp6 -> fake
MOH_AltFinale_ITA.vp6 -> fake
MOH_AltFinale_SPA.vp6 -> fake
MOH_AltFinale_DEU.vp6 -> original
...
...

don't forget to replace the file CookedP3.cab (this file is present only in multi 8 version) with the fake one, because moh_arc.exe already contains the files

pakrat2k2 02-11-2010 09:09

OK thanks, i noticed that if you installed any version of the game (multi8), the cookedmovies folder contained also ENG, DEU, ITA, SPA versions of each of the movies. There is only 1 movie that is duplicated for 6 other languages ( other then eng ).

peterf1999 19-11-2010 03:33

Quote:

Originally Posted by emrahcey (Post 390421)
Last I get error

"WARNING : Can't apply the patch, MSI files version mismatch or already patched!"

Game install but MOH_arc.exe not open...

May be I need autorun.dat

Your game version is not multi 2, you can't use this conversion

MatiasOC-S 09-03-2011 07:06

Hi, after a hours of compression the iso get ready, but during installation i got this error, any idea why?

http://img687.imageshack.us/img687/1898/sinttulows.jpg

kephreN 11-04-2011 05:43

I got a problem here. Everything works as it should except I end up with an ISO that is 7.6GB in size?! What am I doing wrong?

pakrat2k2 11-04-2011 08:01

you have the multi2 EN/FR version ? you copied the dvd9 to the 'MOH_DVD5\MOH' folder

lidor55 16-04-2011 00:42

in the folder MOH there is already a folder named 'Binaries'
and theres one in the MOH files. so i need to replace the folder?
and which 1 of the folders should be to make the installtion run properly?

Thanks anyway.:D


All times are GMT -7. The time now is 23:16.

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