VOGONS

Common searches


Simple command to launch a game doesn't work !

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by Héraès

User metadata
Rank Newbie
Rank
Newbie

I have DOSBox installed here : REMOVED
I have a game installed here : REMOVED

That game is from REMOVED. When launching it from REMOVED, it works well. But I tried to launch it through an other software, called Playnite, and it doesn't work.
So I attempted to perform a simple test with a .BAT file :

@echo off

REMOVED

REMOVED

echo.
echo PAUSE
pause

And unfortunately, it failed (same result as as in Playnite) : DOSBox launches, but close itself suddently as if it was unable to find the game.

Here's the content of the dosbox.conf from the game's path. Keep in mind that I don't know how REMOVED launches DOSBox and if there is optional parameters used during the command.

# Config file for Dosbox-ECE r4230
[sdl]
fullscreen=false
fulldouble=false
fullresolution=0x0
windowresolution=1280x960
output=overlay
mapperfile=mapper.map
[dosbox]
machine=svga_s3
memsize=16
[render]
aspect=true
scaler=normal2x
[cpu]
core=auto
cputype=auto
cycles=auto
[pci]
[mixer]
rate=49716
[midi]
fluid.soundfont=.\mt32\SoundCanvas.sf2
mt32.romdir=.\mt32
[sblaster]
oplmode=opl3
oplemu=nuked
oplrate=49716
[gus]
[speaker]
[joystick]
[serial]
[dos]
[ipx]
[autoexec]
cd ..
cd ..
mount c .
c:
@cd HexenBey
@cls
@call run
exit

I give a screenshot of the CMD console launching DOSBox, in attachment.

Can someone help me to find why it isn't working ?

Last edited by DosFreak on 2022-09-18, 15:11. Edited 3 times in total.

Reply 2 of 3, by Héraès

User metadata
Rank Newbie
Rank
Newbie
Giuliano wrote on 2022-09-18, 14:50:

in line 42 above, you calling "run". Is "run" a batch file?

Ah yeah. I forgot that file. So yeah, it's calling a batch inside the game's folder :

:menu
@echo off
cls
echo.
echo Press 1 for Hexen: Beyond Heretic w/ SoundBlaster
echo Press 2 for Hexen: Beyond Heretic w/ Sound Canvas
echo Press 3 to Quit
echo.
choice /C:123 /N Please Choose:

if errorlevel = 3 goto quit
if errorlevel = 2 goto SC55
if errorlevel = 1 goto SB16

:SB16
CONFIG -set "mididevice=default"
del HEXEN.CFG
copy .\sb16\*.*
cls
@HEXEN
goto quit

:SC55
CONFIG -set "mididevice=fluidsynth"
del HEXEN.CFG
copy .\sc55\*.*
cls
@HEXEN
goto quit

:quit
exit

Note that this doesn't cause any problem when launching DOSBox through REMOVED. This displays a menu in the DOSBox window.
Although, there's might be a "working directory" problem for relative paths, due to how files are launching each others (withe the source being REMOVED, or at the opposite my .BAT file).
I mean that depending on what file is started first, and launching the cascade of other files, that might cause problems with paths.

Last edited by DosFreak on 2022-09-18, 15:10. Edited 1 time in total.