[SOLVED] DOSBox - custom config file
-
I have DEMONS.sh file which contains following code:
#!/bin/bash
/opt/retropie/emulators/dosbox/bin/dosbox -conf "/home/pi/RetroPie/configs/pc/dosbox-DEMONS.conf"
I have several lines of code in [autoexec] section, but nothing shows up in DOSBox console, so obviously the config file is not used when I run DEMONS.sh. What am I missing here? The path to conf file is correct.
-
@spiky DOSBox is able to launch directly from
.conf
files so, in most cases, there shouldn't be a need for a shell script.Could you try placing the
dosbox-DEMONS.conf
file in the pc roms folder and launching the file directly from EmulationStation?If the
.conf
file does not appear in ES or the.conf
file doesn't appear to be launching, then please re-install DOSBox to ensure you have the most up to date configuration. -
@dudleydes thank you. I did not know it was possible to launch from conf file. I will give it a try when I come home and let you know the result.
-
Another problem... I deleted the sh file and moved everything to new conf file
my code in [autoexec] is following
imgmount d "/home/pi/RetroPie/roms/pcdata/DEMONS/cd/SPEED DEMONS.CUE" -t iso
mount c "/home/pi/RetroPie/roms/pcdata/DEMONS/DEMONS"
c:
DEMONS.EXE
exit
I moved the conf file to roms/pc folder so I can use it to run the game, so I also edited [sdl] setting of mapper:
mapperfile=/home/pi/RetroPie/configs/pc/mapper-SVN.map
(wasmapperfile=mapper-SVN.map
before - as both map and conf files were in the same folder)When I run DEMON.conf now, it starts DOSBox for a moment and it crashes before any line of code is executed.
Any ideas?
-
I checked runcommand.info and found following issue:
Exit to error: Can't init SDL Unable to open a console terminal
Other DOSBox games that I run using .sh files run fine, so it's probably problem with path somewhere... have to dig into it a bitEDIT: it obviously had something to do with permission of files. it's a bit strange, since .sh files did not need it.. anyway, solved
-
I'm having the exact same problem. How did you solve the permissions issue? I tried changing the permissions of the conf file and the folder that I'm trying to mount as the c: drive, but no success.
-
@Nodfyr best to open a new topic since this one is marked solved. Please supply the details of your setup. Are you trying to run the same game? Etc.
Edit: I see you already did, it's best to keep everything in one thread instead of asking in multiple. So let's use the new topic.
-
Reposting this here in case google takes someone to this post (as happened to me):
Through trial and error, I figured out how to solve the problem.
I copied the default dosbox configuration file from ~/.dosbox/dosbox-SVN.conf and edited that with my custom setup.
Now everything works fine, though I never did figure out which permissions were broken.
-
@Nodfyr I didn't want to spend more time analyzing the problem, so I just called following:
chmod 777 /path/to/file
-
@dudleydes Thank you for this Information!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.