VOGONS


Gunmetal - DOS/4GW fatal error

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by exofreeze

User metadata
Rank Member
Rank
Member

Just got a copy of Gunmetal in today, and used MagicISO to create a bin/cue of it.

Mounted into 0.74 w/ the following:
mount c .\games\Gunmetal
imgmount d .\games\Gunmetal\cd\gunmetal.cue -t cdrom

starting up dosbox, switching to the d:, and running "install" returns:
DOS/4GW Protected Mode Run-time Version 1.97
Copyright (c) Rational Systems, Inc. 1990-1994
DOS/4GW fatal error (1004): syntax is DOS4GW <executable.xxx>

I searched that error on here, and no thread every resolved it. Almost every case was blamed on the OP not mounting correctly, or trying to run DOS4GW straight, and not the actual game file.

Using the debugger, this is the logfile export:

MIDI:Opened device:win32
0: SBLASTER:DSP:Reset
0: IO:Read from port 0278
0: IO:Read from port 0279
0: IO:Read from port 03BC
0: IO:Read from port 03BE
0: INT10:Set Video Mode 3
0: VGA:Blinking 8
0: FILES:file open command 2 file CON
0: FILES:file open command 2 file CON
0: FILES:file open command 2 file CON
0: FILES:file open command 2 file CON
0: EXEC:Parsing command line: AUTOEXEC.BAT
0: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
0: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
0: EXEC:Parsing command line: SET BLASTER=A220 I7 D1 H5 T6
0: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
0: EXEC:Parsing command line: cd ..
0: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
0: EXEC:Parsing command line: cd ..
0: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
0: EXEC:Parsing command line: mount c .\games\Gunmetal
3: EXEC:Execute mount.COM 0
3: FILES:file open command 0 file mount.COM
12: DOSMISC:DIRCACHE: Set volume label to C_DRIVE
18: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
18: EXEC:Parsing command line: imgmount d .\games\Gunmetal\cd\gunmetal.cue -t cdrom
21: EXEC:Execute imgmount.COM 0
21: FILES:file open command 0 file imgmount.COM
30: MISC:MSCDEX: Mounting iso file as cdrom: .\games\Gunmetal\cd\gunmetal.cue
36: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
36: EXEC:Parsing command line: c:
36: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
36: EXEC:Parsing command line: @cd Gunmetal
36: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
36: EXEC:Parsing command line: @cls
38: INT10:Set Video Mode 3
38: MOUSE:New video is the same as the old
40: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
40: EXEC:Parsing command line: @
40: FILES:Special file open command 80 file Z:\AUTOEXEC.BAT
246077: VGA:h total 100 end 80 blank (80/98) retrace (85/97)
246077: VGA:v total 449 end 400 blank (407/442) retrace (412/414)
246077: VGA:h total 0.03178 (31.47kHz) blank(0.02542/0.03114) retrace(0.02701/0.03082)
246077: VGA:v total 14.26806 (70.09Hz) blank(12.93341/14.04562) retrace(13.09230/13.15585)
246077: VGA:Width 640, Height 400, fps 70.086592
246077: VGA:normal width, normal height aspect 1.000000
61148289: EXEC:Parsing command line: d:
135282294: EXEC:Parsing command line: INSTALL.EXE
135282297: EXEC:Execute INSTALL.EXE 0
135282297: FILES:file open command 0 file INSTALL.EXE
135286425: FILES:file open command 0 file D:\dos4gw.exe
135288404: DOSMISC:Call is made for list of lists - let's hope for the best
135288601: DOSMISC:Call is made for list of lists - let's hope for the best
135288834: DOSMISC:Call is made for list of lists - let's hope for the best
135289105: DOSMISC:Call is made for list of lists - let's hope for the best
135289447: FCB:DOS:29:FCB Parse Filename, result:al=0
135289458: FCB:DOS:29:FCB Parse Filename, result:al=0
135289530: EXEC:Execute D:\dos4gw.exe 3
135289530: FILES:file open command 0 file D:\dos4gw.exe
Show last 10 lines
 135290745: FILES:file open command 0 file D:\DOS4GW.EXE
135290958: FILES:file open command 0 file D:\DOS4GW.ETX
135291851: BIOS:INT15:Unknown call BFDE
135291906: DOSMISC:DOS:Multiplex Unhandled call 1687
135291929: BIOS:INT15:Unknown call BFDE
135296564: BIOS:INT15:Unknown call BF01
135296565: BIOS:INT15:Function 0x88 Remaining 0000 kb
234281132: EXEC:Parsing command line: exit
234281132: SBLASTER:DSP:Reset

Interestingly, the game seems to run fine if I just run "gun.exe" straight from the cd drive, however it is impossible to save your game at that point.

Reply 1 of 4, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The installer is also b0rked in real DOS and the NTVDM. You can get it to come up if you run it like "DOS4GW INSTALL", but then you're up against its buggy disk space calculation that doesn't seem to realize it's using 32-bit registers to do math with 16-bit disk parameters from INT 21/36. If you look inside the installer executable, there isn't a single file or directory name reference except the default install target of C:\GUNMETAL, so at best it could only copy everything to the target. My theory is that the DOS install program is an unfinished mess, and few complained because the Win9X installer (presumably) works. DOS had been marginalized by 1998, so the theory seems plausible.

In any case, you will have to manually install the game. The simple approach is to XCOPY the entire cdrom file and folder structure to C:\GUNMETAL and then create a SAVEGAME subdirectory. You can delete the files related to the Windows version of the game if you choose. It seems the game does not care at this point if the cdrom is available. You can probably leave certain elements on the disc if you edit the PATH.SNI file from "." to "D:\" (or whatever cdrom drive you're using), but it will likely require some trial and error to see what can safely be left there.

BTW, the game seems to work OK with the default memsize of 16, but I noticed that music plays in the first area if you increase memsize to 24, so you might want to go with more memory.