Hello.
I am trying to create a dos setup to configure games inside Dosbox Pure.
These are the steps I currently have inside Windows.
- Extracting multiple dos games into the 'dos' batocera directory.
- Using Bulk rename utility to add '.pc' to every directory.
- Copying dosbox.conf to every single game directory with a freeware program I found from Vovsoft.
This means to manually remove every subdirectory from the vovsoft list to only copy dosbox.conf to the game root directory.
Currently have not found a better program to do this. Looked into creating a bat file to only copy files to a root directories but looks to difficult for me.
What I like to create for DOSBox Pure is an install bat file when starting a game with the following steps.
- No more multi copy of dosbox.conf or dosbox.bat to every directory.
This means to work only from inside the DOSBox prompt. I tried to mount a separate directory to the Y drive and then copy the two files to the root directory of the game but this is not possible without manually setting up the Y drive. I have looked if it is possible to add files to the Dosbox Z drive. A google search revealed this is possible with Dosbox Staging by adding files to the 'drivez' directory inside the DOSBox Staging program directory.
- Setting up a bat file to create a dosbox.bat file.
When first starting a game I like to setup a custom dosbox.bat file for every game inside DOSBox. I have tried this with the Y drive method. Made a Setup.bat file inside the Y drive to start with the default dosbox.conf.
The root directory and the cd for a game are automounted with Dosbox pure under C and D. So that is not a problem.
This will output the following parameters inside the dosbox.bat file:
- If a game needs an install from disk or cdrom drive asking which drive the setup is on.
This means if a game is for example a cd install. Needs to be extracted first or is already playable as is.
- If a game installs to a different directory.
This means if a setup installs to an other directory like C:\HELI if it is needed to include a Change Directory in Dosbox.bat.
Some games for example with an install.com install to a default directory which cannot be changed. After this there is a comment in which directory to start the game.
- Which file is needed to setup a game like installing, audio, video etc. if this is not included in the installing.
This means if a setup is needed after installing or a configuration is needed with a game through setup.exe or install.com.
- Maybe creating a menu in dosbox.bat or using a separate bat file with a selection menu but this adds an extra step.
This means after setup adding a menu with the setup filename and game executable and adding a timeout.
Tried to find a dos menu program to do this automatic. A program that scans the root directory for .exe, .com or .bat files but could not find it.
- Setting up the cycles.
This means setting the needed cycles for a game if it runs to fast. This is possible with the SET cycles command already in Dosbox. Creating a menu with the default cycles I found in dosbox-staging.conf.
# 8088 (4.77 MHz) 300
# 286-8 700
# 286-12 1500
# 386SX-20 3000
# 386DX-33 6000
# 386DX-40 8000
# 486DX-33 12000
# 486DX/2-66 25000
# Pentium 90 50000
# Pentium MMX-166 100000
# Pentium II 300 200000
And when all the parameters are all set saving them to Dosbox.bat so they start next run.
- Menu example:
*** border ***
=== Game executable ===
=== Setup executable ===
=== Set Cycles ===
*** Timeout counter or press a key. ***
*** border ***
Tommorow I am starting to create multiple batch files to use. If I could use the Z drive I can add the dosbox.conf and Start.bat to this drive and make it easier because the Path=Z:\ is default within Dosbox. If not I have to manually mount a separate Y drive before starting with every game.
Maybe a new version can be compiled that mount the Y drive to a default location so that files can be manually added and a path Y:\ is set. Or that files can be automatically start from a custom directory set in the root directory of Dosbox.
If anyone have any suggestions or ideas they are welcome.
Thanks.
Olaf.
