VOGONS


First post, by galiman

User metadata
Rank Newbie
Rank
Newbie

I've read quite a bit on the WIKI and the Forums, but have seen slightly conflicting information on exactly how configuration files work. I understand that you can create specific .conf files for different games, etc. Buy what I don't understand is how exactly this works. For example, one passage I read said that DOSBox processes both the default .conf file and any .conf file specified in a command line argument. This doesn't sound right, but is this the way it works?
Also, for user created .conf files, into what directory should they be placed? I'm assuming the DOSBox directory, but am not sure.

Thanks for any help.

Reply 1 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

0.72:
it parses (if present) the configuration file in $HOME
next it parses(if present) dosbox.conf in the localdirectory
lastly it parses all configuration files that you pass to it using -conf switches
finally it parses the environment for DOSBOX_SECTION_PARAMETER=value settings.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 8, by galiman

User metadata
Rank Newbie
Rank
Newbie

Thank you for that very quick response.

So let me see if I have this right: If you have the default dosbox.conf and a gamespecific.conf in the install directory for dosbox, then dosbox will first process doxbox.conf, then it will process gamespecific.conf. Any settings in gamespecific.conf will effectively overwright the settings in dosbox.conf.

Am I way off base here?

Reply 4 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

the name is important.
automaticly parsing of configfiles only happends ($home and localdirectory) if it is called dosbox.conf
if you want to have a gamespecific.conf then you need to use -conf switches

Water flows down the stream
How to ask questions the smart way!

Reply 5 of 8, by galiman

User metadata
Rank Newbie
Rank
Newbie

Thank you Qbix and DosFreak. That was the information I need. I have only recently discovered DOSBox and find it an excellent program.

Let me tell you what I need to do so I know if I am going about it in the correct way. I want to use a cordless Logitech Rumblepad 2 to play these games. It seems easiest to set up by using the keymapper and mapping button presses from the Rumblepad to relevant control keys for the game. However, different games use different keys for the same functions, so each game needs to be mapped differently. I'm assuming that mapping these keys in separate configuration files and saving each configuration file in the install directory will do the trick.

Does this sound correct, or is there a better way to do it?

Reply 6 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I would create a folder for each game. Inside each game-folder, I would keep a file called dosbox.conf (or maybe game-name.conf) and a mapper.txt (or you could call it game-name.mappings, or whatever).

In the dosbox.conf file, you set mapper=X:\full\path\to\name-of-mapper-file.

You can then start DOSBox with

dosbox.exe -conf "X:\full\path\to\dosbox.conf"

(and watch the console window for messages about which files gets loaded)

Once you get this to work, you can try to experiment with getting rid of the full paths, and only using simple, relative names for the files.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 7 of 8, by galiman

User metadata
Rank Newbie
Rank
Newbie

Thank you all for your help.

@MiniMax: I think your suggestion of putting each config and mapper file in a separate game folder is cleaner than putting them in the install directory, and since I have game folders anyway, this is what I will do. But just for my education, is there any other reason why you advocate separate folders?

I find it quite enjoyable to play Duke Nukem again after all these years.

Reply 8 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

It is just the way I do it (see Re: D-Fend Reloaded (new frontend)). I install each game in a folder called C-drive beneath the game-folder. Makes it very easy to completely wipe a game without risking the configuration files.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32