To create a big file and execute homeworld 2 with one single mouseclick:
You need to modify all dirs/driveletters for your use.
Place Archive.exe, doBigProj1.bat, f.f, foot.txt, head.txt, msvcp70.dll, msvcr70.dll, y.y in D:\HW2Proj\
msvcp70.dll and msvcr70.dll are needed for Archive.exe.
Place all your 'data' in d:\HW2Proj\
Proj1\.
The archive created by the following batch files is recognized as "data" by
Homeworld2.exe when placed in the
Homeworld2\Data\ folder because of the alias="data" parameter in "head.txt".
The batch file "doBigProj1.bat" compresses and puts the archive in the right folder which is called by
Proj1.bat.
Create the following batchfile in your "
Homeworld2"-folder and create a shortcut to it on your desktop.
This will be the file you will be executing with "one single mouse click".
(remove the yellow question marks, that's wickid, some kinde of feature of this page):
d:\progra~1\sierra\homewo~1\
Proj1.bat:
@echo off
cd D:\HW2Proj\
call doBigProj1.bat
cd d:\progra~1\sierra\homewo~1\Bin\Release\
Homeworld2.exe -mod Proj1.big -nomovies -luatrace -debug
REM -ssTGA
D:\HW2Proj\doBigProj1.bat:
@echo off
type head.txt>buildarchive.txt
dir /s /a-d /b .\Proj1\*.*>>buildarchive.txt
type foot.txt>>buildarchive.txt
Archive -a Proj1.big -c buildarchive.txt -r D:\HW2Proj\Proj1
echo.
echo.
IF EXIST d:\progra~1\sierra\homewo~1\data\Proj1.big xcopy Proj1.big d:\progra~1\sierra\homewo~1\data\Proj1.big<y.y
IF NOT EXIST d:\progra~1\sierra\homewo~1\data\Proj1.big xcopy Proj1.big d:\progra~1\sierra\homewo~1\data\Proj1.big<f.f
pause
D:\HW2Proj\head.txt:
Archive name="Proj1"
TOCStart name="TOCProj1" alias="data" relativeroot=""
FileSettingsStart defcompression="1"
Override wildcard="*.*" minsize="-1" maxsize="100" ct="0"
Override wildcard="*.mp3" minsize="-1" maxsize="-1" ct="0"
Override wildcard="*.wav" minsize="-1" maxsize="-1" ct="0"
Override wildcard="*.jpg" minsize="-1" maxsize="-1" ct="0"
Override wildcard="*.lua" minsize="-1" maxsize="-1" ct="2"
SkipFile wildcard="*_.*" minsize="-1" maxsize="-1"
FileSettingsEnd
D:\HW2Proj\foot.txt:
D:\HW2Proj\f.f:
D:\HW2Proj\y.y:
There are 2 comments on this page. [Display comments]