VOGONS

Common searches


First post, by lwc

User metadata
Rank Member
Rank
Member

Hi!

Let's say I want the default conf file...except one value.

The thing is, if I copy the entire file and then change the one value, it will surely cause problems by next release (since you change the conf file somewhat with each new version).

The question is if I can just have a little file with, say:

[cpu]
core=dynamic

(I know the titles are a must).
This way the chance of you changing this value of all things is much lower and I probably won't have to mess with this file in future versions.
Plus, it makes it easier for me to remember what exactly differs this game's settings from the default conf file.

So is it legit?
Will DOSBox just take the default values for everything else?
I know it does for sound, memory, frame skip, cycles, etc. but it's harder to know about other values.

If so, I think I'll start having local conf files and stop relying on "-conf c:\program files\dosbox\dosbox.conf".

Reply 1 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

a configfile is infact an overlay to the default values.
so you can only use the changes. (well sections are needed for the parser)

my configfile looks like this:

[cpu]
cycles=8000

[sdl]
output=overlay

[render]
frameskip=1

[autoexec]
@echo off
@mount d /tmp > nul
@mount e /mnt/cdrom -usecd 0 -ioctl >nul
@echo on

(so i can do dosbox ./ to start it)

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

Reply 4 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I live under the impression that harekiet coded
some intelligence into the scaling routines...

I recall being told that hwscale and regular scale work together to achieve the goal. Would have to look it up to be sure though

(so incase there is hardware scaling avaible it would scale 2x when normal 2 is selected)

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

Reply 5 of 6, by Markus

User metadata
Rank Newbie
Rank
Newbie

That's what I'm using for quite some time now.
I put my settings in files like *.dosbox with individual settings like cycles and autoexec and associated *.dosbox with dosbox.exe -conf "%1".
Together with a custom iconhandler this is pretty nice;-)

Reply 6 of 6, by lwc

User metadata
Rank Member
Rank
Member

If you just call them "dosbox.conf", you won't have to use autoexec or associate anything to anything.

DOSBox looks by default for a local dosbox.conf (same goes for mapper.txt, etc.).
So you can just create a shortcut that starts in the game's directory and the only command line parameter you will need is the game's file.
Remember that DOSBox needs the full path name of the game's file, though.
Then again, you can easily "bypass" it by just using ".\" before the name.

I guess a picture is worth a thousand words, so just check out the attachment.
If I click that shortcut, DOSBox will use "c:\games\archon\dosbox.conf".

However, I myself prefer right clicking so I also showed you what that would look like (done with a simple registry hack for EXE, BAT & COM files).
That way, the "start in" folder is automatically the current one.

Attachments

  • Filename
    bla.JPG
    File size
    43.18 KiB
    Downloads
    146 downloads
    File comment
    Right click option vs. a shortcut (both load up DOSBox in the game's folder and only then launch the game)
    File license
    Fair use/fair dealing exception