VOGONS


First post, by Don Jonz

User metadata
Rank Newbie
Rank
Newbie

Hi,

I had a problem with the installation of "Nascar Racing 2", but I think this is a general bug in DOSBox.

The install routine of that game creates a new batch file named n2.bat.
If I run install in pure DOS I get the following (correct) n2.bat:

smackply F:\intro.smk /U1       
nascar2 %1 %2 %3 %4 %5 %6 %7 %8 %9

If I run install in DOSBox I get this n2.bat (the game doesn't start with this file):

smackply F:\intro.smk /U1
nascar2 %F: %C: %install % % % % % %

This is the install batch-file that creates the files above.
Note: That install.exe only returns three variables (see example-line).

@echo off
if %3 == install goto install
echo If you wish to install NASCAR Racing 2 on your system,
echo please run the INSTALL.EXE program.
goto exit

rem usage: inst from_drive to_drive install
rem example: inst d: c: install

:install

%2

copy %1\nascar2\hmidet.386

[cut - copies all files]

echo smackply %1\intro.smk /U1 > %2n2.bat
echo nascar2 %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >> %2n2.bat

:exit

Looks like DOSBox doesn't handle that "%%" properly.

Reply 2 of 4, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Yup - looks like a parsing bug to me.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32