VOGONS


First post, by Linie

User metadata
Rank Newbie
Rank
Newbie

Hej Hej...

I have the CD-Version of AOD...no probs, but i can't install the AddOn/Patch...
I'm using DosBox 0,72...while trying to install (from c or the directory mounted in Dosbox as Floppy) an error occurs alltime...

just the install.bat:

null point assignment
enviroment variable not defined: IDrive C
GOTO...not found: chkdef

(almost 😉 it's not english....)

with direction (install c:\aod)

an installed version of AOD was not found in the specific direction....blabla

Can anybody help me with that or got another idea how to install the AddON/Patch...

i'd really like to play it...(complete)

THX, LInie

Greetings from Sweden!

Reply 1 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

can you post the contents of install.bat ?

(and post how you mounted your drives (exact lines))

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

what do u mean with "content of the install.bat"? the other files in the folder?
----

mount c c:\OG
mount a c:\og\aodex -t floppy (AoD Expansion)

but the same error occurs also if i don't mount at as a floppy and start it straight from it's folder....

Reply 4 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

@echo off
mode co80

:langSel
cls
echo.
echo.
echo AOD Expansion install
echo internet suply peoples
echo
echo
echo If you want to run the program in English, press 'E'.
echo
echo Pour utiliser le programme en fran‡ais, appuyez sur 'F'.
echo
echo Um das Spiel in Deutsch zu spielen, 'D' eingeben.
echo
echo
echo
echo.
echo.

CHUNK\GK.COM

:checkKey
IF ERRORLEVEL 113 IF NOT ERRORLEVEL 114 GOTO end
IF ERRORLEVEL 102 IF NOT ERRORLEVEL 103 GOTO French
IF ERRORLEVEL 101 IF NOT ERRORLEVEL 102 GOTO English
IF ERRORLEVEL 100 IF NOT ERRORLEVEL 101 GOTO German
IF ERRORLEVEL 81 IF NOT ERRORLEVEL 82 GOTO end
IF ERRORLEVEL 70 IF NOT ERRORLEVEL 71 GOTO French
IF ERRORLEVEL 69 IF NOT ERRORLEVEL 70 GOTO English
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 GOTO German
goto end

:English
cls
call eng.bat %1
goto end

:German
cls
call ger.bat %1
goto end

:French
cls
call frn.bat %1
goto end

:end

THIS IS THE CONENT OF THE ENG.BAT:

@echo off

rem ------ first find out what drive we're installing from ---------
call CHUNK\DRIVE.EXE
IF ERRORLEVEL 25 IF NOT ERRORLEVEL 26 SET IDRIVE=Z
IF ERRORLEVEL 24 IF NOT ERRORLEVEL 25 SET IDRIVE=Y
IF ERRORLEVEL 23 IF NOT ERRORLEVEL 24 SET IDRIVE=X
IF ERRORLEVEL 22 IF NOT ERRORLEVEL 23 SET IDRIVE=W
IF ERRORLEVEL 21 IF NOT ERRORLEVEL 22 SET IDRIVE=V
IF ERRORLEVEL 20 IF NOT ERRORLEVEL 21 SET IDRIVE=U
IF ERRORLEVEL 19 IF NOT ERRORLEVEL 20 SET IDRIVE=T
IF ERRORLEVEL 18 IF NOT ERRORLEVEL 19 SET IDRIVE=S
IF ERRORLEVEL 17 IF NOT ERRORLEVEL 18 SET IDRIVE=R
IF ERRORLEVEL 16 IF NOT ERRORLEVEL 17 SET IDRIVE=Q
IF ERRORLEVEL 15 IF NOT ERRORLEVEL 16 SET IDRIVE=P
IF ERRORLEVEL 14 IF NOT ERRORLEVEL 15 SET IDRIVE=O
IF ERRORLEVEL 13 IF NOT ERRORLEVEL 14 SET IDRIVE=N
IF ERRORLEVEL 12 IF NOT ERRORLEVEL 13 SET IDRIVE=M
IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 SET IDRIVE=L
IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 SET IDRIVE=K
IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 SET IDRIVE=J
IF ERRORLEVEL 8 IF NOT ERRORLEVEL 9 SET IDRIVE=I
IF ERRORLEVEL 7 IF NOT ERRORLEVEL 8 SET IDRIVE=H
IF ERRORLEVEL 6 IF NOT ERRORLEVEL 7 SET IDRIVE=G
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 SET IDRIVE=F
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 SET IDRIVE=E
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 SET IDRIVE=D
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET IDRIVE=C
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 SET IDRIVE=B
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 SET IDRIVE=A

:skipit
if '%1' == '' goto chkdef

rem ---- extract the destination drive letter and path from command line

IF NOT '%2'=='' GOTO ChangeD
IF NOT EXIST %1\NUL GOTO BadDir
FOR %%f IN (/%1) DO %0 %%f %1

:========= ChangeD ===========
%1:
CD %2 > NUL

rem --------- make sure they've saved careers properly -----------
goto warning

:startcopy
:next
IF NOT EXIST resource.cfg goto nosim
IF NOT EXIST SIM\NUL goto nosim
IF NOT EXIST SHELL\NUL goto nosim
IF NOT EXIST SOUND\NUL goto nosim

rem ============ Unpack the files =============
cls
echo.
echo ************* Unpacking Files... *************
echo.
copy %IDRIVE%:resource.000 >nul
copy %IDRIVE%:chunk\unchunk.exe >nul
unchunk resource.000 . > nul
if ERRORLEVEL 1 goto BadChunk

rem ===== copy language specific files =========
IF EXIST ENGLISH\NUL goto copystuff
mkdir english > nul
:======= copystuff =========
copy %IDRIVE%:chunk\readme.eng english\readme. >nul
IF EXIST readme.old goto skip1
IF EXIST readme. copy readme. readme.old
IF EXIST read.me copy read.me readme.old

:skip1
IF NOT EXIST readme. goto chngname
@copy english\readme. >nul
goto skip2
:chngname
@copy english\readme. read.me >nul

:skip2
cls
goto playNow

IF EXIST SAVE\NUL goto CDVERSION
IF NOT EXIST SIM\SAVE\NUL goto nosim
goto playNow

:CDVERSION

:playNow
echo.
echo.
echo *********** AOD Mission Disk Installed ! ************
echo * *
echo * *
echo ÿ * To play NOW: *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo ÿ * To play LATER: *
echo ÿ * CD to the game directory. *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo * If you should ever need to change your sound card *
echo * selection or settings, CD to the game directory *
echo * and run SOUNDSET again. *
echo *********************************************************
goto done

:usage
echo To install AOD expansion disk to a specific directory name:
echo.
echo Type "install" followed by the drive letter and path
echo where ACES OF THE DEEP is installed.
echo.
echo For example: "install C:\DYNAMIX\AOD" will attempt to install the
echo mission disk to the DYNAMIX\AOD directory on the C drive.
echo.
echo.
%IDRIVE%:
goto end

:BadDir
:nosim
:noshell
cls
echo.
echo.
echo An installed version of AOD was not found in the specified
echo directory. Please check the drive and directory path and
echo try install again.
echo.
echo.
echo.
echo.
goto usage

:========= chkdef ============
rem
rem check for aod installation in default directories

IF EXIST C:\DYNAMIX\AOD\SIM\SUBSIM.EXE goto def1
IF EXIST C:\DYNAMIX\AODCD\SIM\SUBSIM.EXE goto def2
IF EXIST C:\GAMES\AOD\SIM\SUBSIM.EXE goto def3
IF EXIST C:\GAMES\AODCD\SIM\SUBSIM.EXE goto def4
goto usage

:def1
c:
cd c:\dynamix\aod
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AOD
goto confirm

:def2
c:
cd c:\dynamix\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AODCD
goto confirm

:def3
c:
cd c:\games\aod
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AOD
goto confirm

:def4
c:
cd c:\games\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AODCD
goto confirm

:confirm
echo.
echo Do you wish to install the AOD expansion disk to this directory? (Y/N)
echo.
echo.

%IDRIVE%:\CHUNK\GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO warning
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO usage
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO warning
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO usage
goto usage

:=========== warning ==============
echo ****** Saved Games ******
echo.
echo Career games saved under AoD or AoD CD will not load properly into your
echo simulation once you have installed the Expansion Disk, unless you saved
echo the game while in port. To preserve a career saved while at sea you
echo must first bring your skipper into port and save the game before you
echo install the expansion disk.
echo.
echo Continue with install? (Y/N)
echo.
echo.

%IDRIVE%:\CHUNK\GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO startcopy
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO earlyexit
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO startcopy
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO earlyexit

:======= earlyexit ============
%IDRIVE%:
goto end

rem *********** error handling and clean up *********

:BadChunk
echo unable to extract resource file.
goto done

:Delchunk
del unchunk.exe
goto done

:DelRes
del resource.000
goto done

:done
IF EXIST unchunk.exe goto Delchunk
IF EXIST resource.000 goto DelRes
SET IDRIVE=
SET DEFD=
SET DEFP=
:end

Reply 5 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

interresting bat file system.

Without those exes (drive.exe) I can't determine what goes wrong
however try this
SET IDRIVE=A
before starting the install.bat from a:\

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

our bat file parser for some reason doesn't like this:


rem ------ first find out what drive we're installing from ---------
call CHUNK\DRIVE.EXE
IF ERRORLEVEL 25 IF NOT ERRORLEVEL 26 SET IDRIVE=Z
IF ERRORLEVEL 24 IF NOT ERRORLEVEL 25 SET IDRIVE=Y
IF ERRORLEVEL 23 IF NOT ERRORLEVEL 24 SET IDRIVE=X
IF ERRORLEVEL 22 IF NOT ERRORLEVEL 23 SET IDRIVE=W
IF ERRORLEVEL 21 IF NOT ERRORLEVEL 22 SET IDRIVE=V
IF ERRORLEVEL 20 IF NOT ERRORLEVEL 21 SET IDRIVE=U
IF ERRORLEVEL 19 IF NOT ERRORLEVEL 20 SET IDRIVE=T
IF ERRORLEVEL 18 IF NOT ERRORLEVEL 19 SET IDRIVE=S
IF ERRORLEVEL 17 IF NOT ERRORLEVEL 18 SET IDRIVE=R
IF ERRORLEVEL 16 IF NOT ERRORLEVEL 17 SET IDRIVE=Q
IF ERRORLEVEL 15 IF NOT ERRORLEVEL 16 SET IDRIVE=P
IF ERRORLEVEL 14 IF NOT ERRORLEVEL 15 SET IDRIVE=O
IF ERRORLEVEL 13 IF NOT ERRORLEVEL 14 SET IDRIVE=N
IF ERRORLEVEL 12 IF NOT ERRORLEVEL 13 SET IDRIVE=M
IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 SET IDRIVE=L
IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 SET IDRIVE=K
IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 SET IDRIVE=J
IF ERRORLEVEL 8 IF NOT ERRORLEVEL 9 SET IDRIVE=I
IF ERRORLEVEL 7 IF NOT ERRORLEVEL 8 SET IDRIVE=H
IF ERRORLEVEL 6 IF NOT ERRORLEVEL 7 SET IDRIVE=G
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 SET IDRIVE=F
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 SET IDRIVE=E
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 SET IDRIVE=D
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET IDRIVE=C
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 SET IDRIVE=B
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 SET IDRIVE=A

replace that with the correct SET IDRIVE=A

(make a copy of install.bat first)

the reason is that we replace the = with a space when dealing with an errorlevel. (as you can have if errorlevel 0, if errorlevel = 0 and if errorlevel == 0)

as this command doesn't have any = at all the first = found is the one of the set IDRIVE=....

Water flows down the stream
How to ask questions the smart way!

Reply 7 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

i replaced it like this:

rem ------ first find out what drive we're installing from --------- (also without that)
SET IDRIVE=A

no idrive error, but the second error: GOTO: label chkdef not found. ---- is still there....

Reply 9 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm yes.
You can fix that yourself easely

:========= chkdef ============ 

We don't like all those ===== 😀
Anyway try starting the installer like install.bat C:\DYNAMIX\AOD

(so the path to the AOD directory(

Water flows down the stream
How to ask questions the smart way!

Reply 10 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

OK ---- VERY NICE....on the way...but i can't go further...i replaced the ===== (in the ENG.bat) and now i come to the question and the Savegame Advice (but only by using "install.bat" and the select language)...but the nothing "A installed version of AOD was not found in the spec. directory"...
if start the installer with the spec. direction: install c:\aodcd (or dynamix...create this also): the error occurs immeditely....

here is my changed ENG.BAT:

@echo off

rem ------ first find out what drive we're installing from ---------
call CHUNK\DRIVE.EXE
IF ERRORLEVEL 25 IF NOT ERRORLEVEL 26 SET IDRIVE=Z
IF ERRORLEVEL 24 IF NOT ERRORLEVEL 25 SET IDRIVE=Y
IF ERRORLEVEL 23 IF NOT ERRORLEVEL 24 SET IDRIVE=X
IF ERRORLEVEL 22 IF NOT ERRORLEVEL 23 SET IDRIVE=W
IF ERRORLEVEL 21 IF NOT ERRORLEVEL 22 SET IDRIVE=V
IF ERRORLEVEL 20 IF NOT ERRORLEVEL 21 SET IDRIVE=U
IF ERRORLEVEL 19 IF NOT ERRORLEVEL 20 SET IDRIVE=T
IF ERRORLEVEL 18 IF NOT ERRORLEVEL 19 SET IDRIVE=S
IF ERRORLEVEL 17 IF NOT ERRORLEVEL 18 SET IDRIVE=R
IF ERRORLEVEL 16 IF NOT ERRORLEVEL 17 SET IDRIVE=Q
IF ERRORLEVEL 15 IF NOT ERRORLEVEL 16 SET IDRIVE=P
IF ERRORLEVEL 14 IF NOT ERRORLEVEL 15 SET IDRIVE=O
IF ERRORLEVEL 13 IF NOT ERRORLEVEL 14 SET IDRIVE=N
IF ERRORLEVEL 12 IF NOT ERRORLEVEL 13 SET IDRIVE=M
IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 SET IDRIVE=L
IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 SET IDRIVE=K
IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 SET IDRIVE=J
IF ERRORLEVEL 8 IF NOT ERRORLEVEL 9 SET IDRIVE=I
IF ERRORLEVEL 7 IF NOT ERRORLEVEL 8 SET IDRIVE=H
IF ERRORLEVEL 6 IF NOT ERRORLEVEL 7 SET IDRIVE=G
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 SET IDRIVE=F
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 SET IDRIVE=E
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 SET IDRIVE=D
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET IDRIVE=C
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 SET IDRIVE=B
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 SET IDRIVE=A

:skipit
if '%1' '' goto chkdef

rem ---- extract the destination drive letter and path from command line

IF NOT '%2'=='' GOTO ChangeD
IF NOT EXIST %1\NUL GOTO BadDir
FOR %%f IN (/%1) DO %0 %%f %1

:ChangeD
%1:
CD %2 > NUL

rem --------- make sure they've saved careers properly -----------
goto warning

:startcopy
:next
IF NOT EXIST resource.cfg goto nosim
IF NOT EXIST SIM\NUL goto nosim
IF NOT EXIST SHELL\NUL goto nosim
IF NOT EXIST SOUND\NUL goto nosim

rem Unpack the files
cls
echo.
echo ************* Unpacking Files... *************
echo.
copy %IDRIVE%:resource.000 >nul
copy %IDRIVE%:chunk\unchunk.exe >nul
unchunk resource.000 . > nul
if ERRORLEVEL 1 goto BadChunk

rem copy language specific files
IF EXIST ENGLISH\NUL goto copystuff
mkdir english > nul
:copystuff
copy %IDRIVE%:chunk\readme.eng english\readme. >nul
IF EXIST readme.old goto skip1
IF EXIST readme. copy readme. readme.old
IF EXIST read.me copy read.me readme.old

:skip1
IF NOT EXIST readme. goto chngname
@copy english\readme. >nul
goto skip2
:chngname
@copy english\readme. read.me >nul

:skip2
cls
goto playNow

IF EXIST SAVE\NUL goto CDVERSION
IF NOT EXIST SIM\SAVE\NUL goto nosim
goto playNow

:CDVERSION

:playNow
echo.
echo.
echo *********** AOD Mission Disk Installed ! ************
echo * *
echo * *
echo ÿ * To play NOW: *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo ÿ * To play LATER: *
echo ÿ * CD to the game directory. *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo * If you should ever need to change your sound card *
echo * selection or settings, CD to the game directory *
echo * and run SOUNDSET again. *
echo *********************************************************
goto done

:usage
echo To install AOD expansion disk to a specific directory name:
echo.
echo Type "install" followed by the drive letter and path
echo where ACES OF THE DEEP is installed.
echo.
echo For example: "install C:\DYNAMIX\AOD" will attempt to install the
echo mission disk to the DYNAMIX\AOD directory on the C drive.
echo.
echo.
%IDRIVE%:
goto end

:BadDir
:nosim
:noshell
cls
echo.
echo.
echo An installed version of AOD was not found in the specified
echo directory. Please check the drive and directory path and
echo try install again.
echo.
echo.
echo.
echo.
goto usage

:chkdef
rem
rem check for aod installation in default directories

IF EXIST C:\DYNAMIX\AOD\SIM\SUBSIM.EXE goto def1
IF EXIST C:\DYNAMIX\AODCD\SIM\SUBSIM.EXE goto def2
IF EXIST C:\GAMES\AOD\SIM\SUBSIM.EXE goto def3
IF EXIST C:\GAMES\AODCD\SIM\SUBSIM.EXE goto def4
goto usage

:def1
c:
cd c:\dynamix\aod
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AOD
goto confirm

:def2
c:
cd c:\dynamix\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AODCD
goto confirm

:def3
c:
cd c:\games\aod
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AOD
goto confirm

:def4
c:
cd c:\games\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AODCD
goto confirm

:confirm
echo.
echo Do you wish to install the AOD expansion disk to this directory? (Y/N)
echo.
echo.

%IDRIVE%:\CHUNK\GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO warning
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO usage
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO warning
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO usage
goto usage

:warning
echo ****** Saved Games ******
echo.
echo Career games saved under AoD or AoD CD will not load properly into your
echo simulation once you have installed the Expansion Disk, unless you saved
echo the game while in port. To preserve a career saved while at sea you
echo must first bring your skipper into port and save the game before you
echo install the expansion disk.
echo.
echo Continue with install? (Y/N)
echo.
echo.

%IDRIVE%:\CHUNK\GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO startcopy
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO earlyexit
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO startcopy
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO earlyexit

:earlyexit
%IDRIVE%:
goto end

rem *********** error handling and clean up *********

:BadChunk
echo unable to extract resource file.
goto done

:Delchunk
del unchunk.exe
goto done

:DelRes
del resource.000
goto done

:done
IF EXIST unchunk.exe goto Delchunk
IF EXIST resource.000 goto DelRes
SET IDRIVE=
SET DEFD=
SET DEFP=
:end

Reply 11 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm they use a lot of tricks we don't support yet.
I didn't know that dos 5.0 supported "FOR" for example

Anyway it seems that the total install routine is actually this:
Go to your installed dir on C:\

copy A:resource.000 >nul
copy A:chunk\unchunk.exe >nul
unchunk resource.000 . > nul

Water flows down the stream
How to ask questions the smart way!

Reply 12 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

WOW....that worked...thank you very much! not complete sure (e.g. with the language etc....), but it shows me "oldfile" in the savegame slots...i try it with the patch (almost the same problems) now alone... Again: Thanks for the time and hopefuly i don't have to ask again 😉

Reply 13 of 16, by Linie

User metadata
Rank Newbie
Rank
Newbie

seems really like a simple zip/unzip or should i say chunk/unchunk....the patch is including 2 resource files... i did copy the to a test folder + the unchunk.exe.....and it works...unzip and voila u can copy the files to the game directory and replace the original files....
Great job, guys! Never made it without u! i'm in periscope depth now, so excuse me 😉

Reply 14 of 16, by chan

User metadata
Rank Newbie
Rank
Newbie

I to have the same problem except that i am not using a cd but 3.5 flops and am trying to install w/ dosbox 0.73. The game works fine but i am trying to install the expansion files and patch.

Could someone explain in more detail what to do as i do not understand the explanation that appears to have resolved the difficulty. i am complete newbie to this. 😕

Last edited by chan on 2009-09-07, 01:31. Edited 1 time in total.

Reply 15 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
copy A:resource.000 >nul
copy A:chunk\unchunk.exe >nul
unchunk resource.000 . > nul

Water flows down the stream
How to ask questions the smart way!

Reply 16 of 16, by chan

User metadata
Rank Newbie
Rank
Newbie

Thanks for your reply Qbix.

If i understand correctly i would type your code within the AOD expansion disk files directory in dosbox and this will allow the AOD original game files to use the expansion files? correct?

Assuming my previous thoughts are correct i still have the patch to deal with and need a code to install those files as i am not quite as astute as linix.

Here are the eng.bat files in the patch files:

@echo off

rem ------ first find out what drive we're installing from ---------
call DRIVE.EXE
IF ERRORLEVEL 25 IF NOT ERRORLEVEL 26 SET IDRIVE=Z
IF ERRORLEVEL 24 IF NOT ERRORLEVEL 25 SET IDRIVE=Y
IF ERRORLEVEL 23 IF NOT ERRORLEVEL 24 SET IDRIVE=X
IF ERRORLEVEL 22 IF NOT ERRORLEVEL 23 SET IDRIVE=W
IF ERRORLEVEL 21 IF NOT ERRORLEVEL 22 SET IDRIVE=V
IF ERRORLEVEL 20 IF NOT ERRORLEVEL 21 SET IDRIVE=U
IF ERRORLEVEL 19 IF NOT ERRORLEVEL 20 SET IDRIVE=T
IF ERRORLEVEL 18 IF NOT ERRORLEVEL 19 SET IDRIVE=S
IF ERRORLEVEL 17 IF NOT ERRORLEVEL 18 SET IDRIVE=R
IF ERRORLEVEL 16 IF NOT ERRORLEVEL 17 SET IDRIVE=Q
IF ERRORLEVEL 15 IF NOT ERRORLEVEL 16 SET IDRIVE=P
IF ERRORLEVEL 14 IF NOT ERRORLEVEL 15 SET IDRIVE=O
IF ERRORLEVEL 13 IF NOT ERRORLEVEL 14 SET IDRIVE=N
IF ERRORLEVEL 12 IF NOT ERRORLEVEL 13 SET IDRIVE=M
IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 SET IDRIVE=L
IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 SET IDRIVE=K
IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 SET IDRIVE=J
IF ERRORLEVEL 8 IF NOT ERRORLEVEL 9 SET IDRIVE=I
IF ERRORLEVEL 7 IF NOT ERRORLEVEL 8 SET IDRIVE=H
IF ERRORLEVEL 6 IF NOT ERRORLEVEL 7 SET IDRIVE=G
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 SET IDRIVE=F
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 SET IDRIVE=E
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 SET IDRIVE=D
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET IDRIVE=C
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 SET IDRIVE=B
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 SET IDRIVE=A

if '%1'" goto usage

:skipit
if '%2'" goto chkdef

rem ---- extract the destination drive letter and path from command line
IF NOT '%3'=='' GOTO ChangeD
IF NOT EXIST %2\NUL GOTO BadDir
FOR %%f IN (/%2) DO %0 %1 %%f %2

:========= ChangeD ===========
%2:
CD %3 > NUL

:=========== warning ==============
echo ****** Saved Games ******
echo.
echo Career games saved under AoD or AoD CD will not load properly into your
echo simulation once you have installed this patch, unless you saved
echo the game while in port. To preserve a career saved while at sea you
echo must first bring your skipper into port and save the game before you
echo install the patch.
echo.
echo Continue with install? (Y/N)
echo.
echo.

%dirtemp%GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO startcopy
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO earlyexit
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO startcopy
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO earlyexit

:startcopy
:next
IF NOT EXIST resource.cfg goto nosim
IF NOT EXIST SIM\NUL goto nosim
IF NOT EXIST SHELL\NUL goto nosim
IF NOT EXIST SOUND\NUL goto nosim

rem ---- make sure resource file isn't already in this directory ----
IF EXIST resource.000 goto sameDir
rem -----------------------------------------------------------------

rem ------------ Unpack the files -----------------
cls
echo.
echo ************* Unpacking Files... *************
echo.
copy %dirtemp%resource.000 >nul
copy %dirtemp%unchunk.exe >nul
copy %dirtemp%resource.001 >nul
:============== sameDir ================
IF EXIST SIM\RADAR.SCR goto skip000
unchunk resource.001 . > nul
unchunk resource.000 . > nul
if ERRORLEVEL 1 goto BadChunk

rem ------- copy language specific files ------------
IF EXIST ENGLISH\NUL goto copystuff
mkdir english > nul
:======= copystuff =========
copy shell\sw\vehicle.eng shell\sw\vehicle.lst >nul

:======= readmecheck =======
copy %dirtemp%readme.eng english\readme. >nul
IF EXIST readme.old goto skip1
IF EXIST readme. copy readme. readme.old
IF EXIST read.me copy read.me readme.old

:==== skip1 ====
IF NOT EXIST readme. goto chngname
copy english\readme. >nul
goto skip2
:==== chngname ====
copy english\readme. read.me >nul
:==== skip2 ====
cls
goto playNow
rem --------------------------------------------------

:==== skip000 ====
unchunk resource.001 . > nul
copy english\vehicle.lst shell\sw\vehicle.lst >nul
if ERRORLEVEL 1 goto BadChunk
goto readmecheck

:playNow
echo.
echo.
echo *********** AOD Patch Installed ************
echo * *
echo * *
echo ÿ * To play NOW: *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo ÿ * To play LATER: *
echo ÿ * CD to the game directory. *
echo ÿ * Type AOD and press [ENTER]. *
echo * *
echo *********************************************************
goto done

:usage
echo To install the AOD patch to a specific directory name:
echo.
echo Type "aodpatch" followed by the drive letter and path
echo where ACES OF THE DEEP is installed.
echo.
echo For example: "aodpatch C:\DYNAMIX\AOD" will attempt to install the
echo patch to the DYNAMIX\AOD directory on the C drive.
echo.
echo.
%IDRIVE%:
IF EXIST aodpatch.bat goto end
cd..
goto end

:BadDir
:nosim
:noshell
cls
echo.
echo.
echo An installed version of AOD was not found in the specified
echo directory. Please check the drive and directory path and
echo try aodpatch again.
echo.
echo.
echo.
echo.
goto usage

:========= chkdef ============
rem
rem check for aod installation in default directories

IF EXIST C:\DYNAMIX\AOD\SIM\SUBSIM.EXE goto def1
IF EXIST C:\DYNAMIX\AODCD\SIM\SUBSIM.EXE goto def2
IF EXIST C:\GAMES\AOD\SIM\SUBSIM.EXE goto def3
IF EXIST C:\GAMES\AODCD\SIM\SUBSIM.EXE goto def4
goto usage

:def1
c:
cd c:\dynamix\aod
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AOD
goto confirm

:def2
c:
cd c:\dynamix\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\DYNAMIX\AODCD
goto confirm

:def3
c:
cd c:\games\aod
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AOD
goto confirm

:def4
c:
cd c:\games\aodcd
cls
echo.
echo.
echo.
echo AOD found at C:\GAMES\AODCD
goto confirm

:confirm
echo.
echo Do you wish to install the AOD patch to this directory? (Y/N)
echo.
echo.

%dirtemp%GK.COM
IF ERRORLEVEL 121 IF NOT ERRORLEVEL 122 GOTO warning
IF ERRORLEVEL 110 IF NOT ERRORLEVEL 111 GOTO usage
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO warning
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO usage
goto usage

:======= earlyexit ============
%IDRIVE%:
IF EXIST aodpatch.bat goto end
cd..
goto end
rem----------------------------

:======= dontdoall =============
echo.
echo ************* Unpacking Files... *************
echo.
copy %dirtemp%unchunk.exe > nul
copy %dirtemp%resource.001 > nul
unchunk resource.001 . >nul
goto playNow
rem echo.
rem echo.
rem echo.
rem echo ***** WARNING *****
rem echo.
rem echo The AOD expansion disk has already been installed in this
rem echo directory. It is not necessary to install this patch.
rem echo.
rem echo.
goto end

rem *********** error handling and clean up *********

:BadChunk
echo unable to extract resource file.
goto done

:Delchunk
del unchunk.exe
goto done

:DelRes
del resource.000
goto done

:DelRes1
del resource.001
goto done

:done
IF EXIST unchunk.exe goto Delchunk
IF EXIST resource.000 goto DelRes
IF EXIST resource.001 goto DelRes1
SET IDRIVE=
SET DEFD=
SET DEFP=
:end