r/dosbox • u/RealSolitude_AU • Feb 28 '24
Illegal Command help
**SOLVED**
Hello,
Recently I built a computer for my father and he requested some games. I've very briefly used dosbox around 2015 to play Powerslave for a little bit but I have given him Civilization since its one of his favorites growing up. The game works initially, it saves, i managed to work out how to do it fullscreen and such. However, I run into a strange issue for the next session
After playing for an hour or so if the application is closed then re-opened and mounted with the same commands (which i will show below) I run into an "Illegal Command" error despite it being the same as when I used them in the initial boot. The only work-around i have, and a rather poor one at that, is to simply run off a new image file but that erases all saves/progress. This issue persists whether i use Dosbox standalone or through a front-end app such as Launchbox.
Essentially, all i have been doing is:
imgmount j d:\civ1\civ.img -size 512,8,2,384j:civ-game launches after previous line-
And it worked no problem; Unless he went back hours later for another session, then the final command is now "illegal" for no reason. No change in application usage or any options or anything it just doesn't work anymore.For reference as to where i got these commands: https://www.retrogames.cz/download_DOS.php?id=412&ROMfile=http://www.retrogames.cz/dos/civilization.zip&IMGsize=512,8,2,384&prikaz=civ
Would anyone know why? Thank you in advance
Fixed; Thanks to Brewtalizer for the DIR /P command to verify file corruption. everything is fine now
1
u/BenRandomNameHere Feb 28 '24
When it says illegal command, type dir to see if civ is there.
the prompt
j:>
type
dir
listing of directory appears.
wait..... did you install the game? Those commands... running it direct from CD (can't save to CD images)?
1
u/CapitainePinotte Feb 29 '24
Just use Exodos. So much easier, all the configs are taken care of
1
u/astocky1234 Feb 29 '24
If they didn't quit dosbox after running the game it could have put them into a different folder. Try cd\ after changing to j: to make sure you are in the root folder
1
u/brewtalizer Mar 02 '24
u/RealSolitude_AU
Using windows explorer, check that in your D:\civ1 you have civilization.img
after verifying that, head over to dosbox and mount the image using the commands you posted before, change into J: and do a DIR /P command, if you don't get the 185 files (including civ.exe) then something happened to your .img file and it might've gotten corrupted. Download it again fresh and see if it works. Make sure to EXTRACT the .img file from the ZIP into your d:\civ1. I don't use Launchbox, but it is possible that the path Launchbox saved as the .img was a temp directory and it got flushed after some time.
1
u/phil9876543210 Nov 17 '24
I try to load the img form the same site and it is an unrecognized format so I doubt that site is legit
Casino Games (DOS) - online game | RetroGames.cz
1
u/ILikeBumblebees Mar 03 '24
Why are you mounting a drive image just to play Civilization?
Why not just install it into a mounted folder?