VOGONS


DosBox + M.A.X - Illegal Command OS X?

Topic actions

First post, by Gus

User metadata
Rank Newbie
Rank
Newbie

Hi There,

Ive installed, mounted and ran M.A.X successfully on my dell mini 9 running OS X Leopard 10.5.6...I'm at work and have ran through the exact same process but when i run MAX.BAT i get an illegal command error 😒

The work mac is an Intel Core 2 duo running OS X 10.4.11

Any help would be great cheers

Reply 1 of 35, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

And that MAX.BAT contains?

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

Reply 2 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

MAX.BAT is the executable file for the game. Running that file on my Mini9 and my Vista PC boots up the game.

Reply 3 of 35, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Nope. MAX.BAT is NOT an executable.

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

Reply 4 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

I know its not an EXE file...I'm just saying the the .BAT file executes the game on my other machines but not on this one.

Reply 5 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Please post full information about how you installed the game (BOTH pcs),
the exact mounting lines used during installation and when running the game,
and the contents of that batch file.

Reply 6 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

Downloaded & installed DosBox OS X
Downloaded M.A.X Full Iso

Extracted ISO to folder named INSTALL in my root user folder

Command : mount c ~/INSTALL -size 4025,127,16513,1700
Command : c:
Command : install.exe

I install the game to my user root in a folder called INTRPLAY/MAX

Command : mount c ~/INTRPLAY/MAX
Command : c:
Command : max.bat

At this point the game runs but not on the work MAC.

.BAT file contents :

@echo off
if exist *.swp del *.swp
eregcard.exe
maxrun.bat

This process was identical for the PC obv replacing ~/ with c:\
File structures were identical and the game runs fine.

Reply 7 of 35, by oolie

User metadata
Rank Newbie
Rank
Newbie

And the MAXRUN.BAT file contains...? 😀

Reply 8 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Besides what oolie mentioned, you're using a different mounting when
running the game compared to when you installed it:

Command : mount c ~/INTRPLAY/MAX
Command : c:
Command : max.bat

No idea why you're doing that, but please stick to the EXACT same mountings
that you used during installation, that's what the game expects. I don't know
why it'd work that way on your pc, but i guess you didn't tell the full truth.

Reply 9 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

Maxrun.exe -fC:\MAX

I have tried to run the .EXE directly also

Reply 10 of 35, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Why did you change the mount?

1+1=10

Reply 11 of 35, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Edit MAX.BAT and remove the @echo off.
Then run it again.

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

Reply 12 of 35, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Btw:

> Downloaded M.A.X Full Iso

1+1=10

Reply 13 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

It seems perfectly reasonable to me.

Extract ISO to INSTALL folder. Mount install folder and install to INTRPLAY/MAX folder.

Mount INTRPLAY/MAX folder, run .BAT

I changed the mount because i need the DosBox to point to installed location.

altering the MAX.BAT file did not work, see attached image.

Reply 14 of 35, by oolie

User metadata
Rank Newbie
Rank
Newbie

OK, another-side-approach - in C:\ in DOSbox - what files/folders does 'dir' command show?

Reply 15 of 35, by Gus

User metadata
Rank Newbie
Rank
Newbie

C:/dir shows 536 files from the INTRPLAY/MAX directory

Reply 16 of 35, by oolie

User metadata
Rank Newbie
Rank
Newbie

OK, so where does this fit?

Gus wrote:

Maxrun.exe -fC:\MAX
I have tried to run the .EXE directly also

Is there a MAX folder in DOSbox's C:\ that contains an maxrun.exe file?

Last edited by oolie on 2009-05-26, 14:55. Edited 1 time in total.

Reply 17 of 35, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
Gus wrote:

altering the MAX.BAT file did not work, see attached image.

Of course it worked! It now allows you to see exactly what is wrong. And once you know what it wrong, it is often fairly easy to fix it.

The MAX.BAT tries to run eregcard.exe (probably a small application that prompts you to print out and mail the publisher a registration card for the game) and that program EREGCARD.EXE is not in the directory => Epic fail.

So, where is it?
And why isn't it where it is supposed to be?

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

Reply 18 of 35, by oolie

User metadata
Rank Newbie
Rank
Newbie

But Gus also said that he had tried running the game exe directly...

Reply 19 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Well he said pretty much and i'm sure only half of it was correct, but he
didn't answer my questions, didn't post exact mountings etc. so hard to tell.