First post, by exofreeze
- Rank
- Member
Seems all the games I am setting up today dislike me.
Madden runs off a batch file. The game will laod up the intor screens and the menu, however trying to play the game was causing the game to dump the the prompt and state "illegal command: mode". So I went and got a copy of mode from freedos, and this fixed that error, but now it just dropped straight to the prompt.
So looking at the bat file, it seems it doesn't call mode until it is exiting anyways:
echo off
if exist madden.cfg goto frontend
setup
:frontend
echo John Madden Football ver 1.00
rem call checkcd.bat
:newscreens
cd screens
screens > sc.out
cd ..
if errorlevel 9 if not errorlevel 10 goto madden_load
if errorlevel 8 if not errorlevel 9 goto madden
goto end
:contscreens
cd screens
screens helloagain > sc.out
cd ..
if errorlevel 9 if not errorlevel 10 goto madden_load
if errorlevel 8 if not errorlevel 9 goto madden
goto end
:madden
cd action
moe %1
cd ..
if errorlevel 8 if not errorlevel 9 goto contscreens
goto end
:madden_load
cd action
moe load %1
cd ..
if errorlevel 8 if not errorlevel 9 goto contscreens
goto end
:end
mode co80
I did not rem the checkcd.bat line out - that was already done fresh from the install (I am using a bin/cue I created from my own disc. It is the cd classic release, so I am guessing they removed this in that release).
So, it appears the when the game should start playing, it should change to the "action" folder and call MOE with some sort of variable.
So from the prompt I went to that folder and typed MOA, and sure enough, the game started just fine. I tried both iterations - MOE and MOE LOAD.
I don't, however, know what the variable should be - although I expect it tells the game what teams are playing, and maybe some other info.
What I haven't figured out, is why the batch file isn't working properly to call this?
Playing around with the bat file, I have found that the "screens" section calls the opening logos and crap. contscreens calls the main menu.
So it appears that at no point are the error levels being passed properly, so instead it is just going straight to the end (I confirmed this by adding PAUSE and echo commands to the bat file to show me where it is flowing - at no point does the "madden" or "madden_load" section ever get called).
Any ideas?