Page 2 of 3

Re: Mercenaries on DOSBox

Posted: Fri Feb 13, 2009 6:41 am
by Skyfaller
RL_Nice wrote:You can mount a .bat file? How?
You can put mount commands in .BAT files, like this:

mount ...
C:
cd \mw2
mech2

I meant that mounting several CDs in the autoexec section of dosbox.conf could confuse MW2. Hint: Store your .BAT files in a place like C:\bat, then set a path to that directory for convenience in the autoexec section of dosbox.conf:

path = %path%;c:\bat

Re: Mercenaries on DOSBox

Posted: Sun Feb 15, 2009 3:48 pm
by RL_Nice
That changes a bit. So what, am I supposed to tell the .bat to mount mercs.exe and then run the .bat file from DOSBox, or am I supposed to mount the image in the .bat file and then run that, or am I supposed to do both?

Because I tried, and it still didn't work. I also removed all the auto-execute lines from the config file.

Re: Mercenaries on DOSBox

Posted: Sun Feb 15, 2009 4:05 pm
by Skyfaller
Don't remove all lines in the autoexec section of dosbox.conf, you need some of them. Here's the autoexec section in my dosbox.conf:
# Lines in this section will be run at startup.
@echo off
rem Mount C drive - absolute necessary, otherwise, nothing can be found
mount c d:\dosbox\c
rem Set paths - these are basically shortcuts
path c:\bat;z:\;c:\support
c:
This is the file I use to launch Mercs (c:\bat\mercs.bat):
@echo off
z:\imgmount d "d:\VCDs\mw2-mercs-eng\image.cue" -t iso
c:
cd \mercs
mercs.exe
cd \
So the bat file mounts the image and launches Mercs. If you set path as above, and store mercs.bat in c:\bat, all should have to do is type mercs. Do you still get the "CD not mounted" error when launching into the sim? Have you made sure you created the .CUE file as a copy protected image?

Re: Mercenaries on DOSBox

Posted: Wed Feb 18, 2009 6:53 pm
by RL_Nice
When I try to set a path DOSBox tells me that it's undefined. If I manually navigate to the .bat file and run it, I get an "illegal command: mercs.exe" message, presumably because it can't find the executable, even though I edited the .bat's contents to point to that file. I've tried putting the .bat file back into the same folder as the Mercenaries installation, but that just results in the same old "CD-ROM not mounted" issue.

Perhaps I'm not setting paths correctly? I'm well familiar with mounting, but not with path setting.

Re: Mercenaries on DOSBox

Posted: Thu Feb 19, 2009 1:56 am
by Sir MMPD Radick
Could you in

Code: Select all

 tags please post what you have?

Re: Mercenaries on DOSBox

Posted: Sat Feb 21, 2009 7:30 am
by RL_Nice
In the DOSBox config file-

Code: Select all

@echo off
mount c c:\mercs
set path c c:\mech2\mercs
c:
In the .bat file-

Code: Select all

@echo off
imgmount d c:\mech2\MECH2_MERCS.cue -t iso
c:
mercs.bat

Re: Mercenaries on DOSBox

Posted: Sat Feb 21, 2009 11:40 am
by Sir MMPD Radick
First off you are mounting the mercs directory and making it the C: drive.. that is your first problem..
Second your batch file is trying to access a path which is not mounted... You cannot mount c:\mech2\MECH2_MERCS.cue -t iso while you are in dosbox as it does not exist.
Third while the batch file method works I really believe you would have an easier time running it by hand...

Try it this way using the FAQ's method.

First Make C:\DOSBOX\ like the FAQ says.
Second: Move C:\Mercs into C:\DOSBOX making C:\DOSBOX\mercs\ like the FAQ says.
Third: Use this conf file.
Fourth: After setting the conf file to that in dosbox run Mercs by hand in dosbox, you will already be inside of the mercs dir on startup.

DOSBOX.conf autoexec section

Code: Select all

imgmount D "C:\mech2\MECH2_MERCS.cue" -t iso
mount C C:\DOSBOX\
C:
cd mercs

Re: Mercenaries on DOSBox

Posted: Sat Feb 21, 2009 3:04 pm
by RL_Nice
All right. Should I put the .bat file with the rest of the files, and what should I put in it?

And when you say "by hand", do you mean directly running the MERCS.EXE?

Re: Mercenaries on DOSBox

Posted: Sat Feb 21, 2009 3:32 pm
by Sir MMPD Radick
Correct, forget the bat file for now.
Just get the game running.
You will need a bat file for the mouse to be fixed, but lets just get the game working first.

When you have confirmed that mercs works then use this batch file. (In the mercs dir)

Code: Select all

MOUSE2KV.EXE 1024 1200 8 8 mercs.exe
Next download Mouse2kv and put it in the mercs dir.

After which in dosbox open the bat file and your mouse should be normal.

Re: Mercenaries on DOSBox

Posted: Sun Feb 22, 2009 7:42 am
by RL_Nice
Well the menu's still work, but the missions still won't launch. I don't know if that's what you mean by "works".