VOGONS


config -set command

Topic actions

First post, by smtremel

User metadata
Rank Newbie
Rank
Newbie

Hello, first time posting here, been using dosbox for a while though... 😁 LOVE IT!

Ok, let me start by saying I have a few games that needs some variables changed from what i have set in the dosbox.conf file. So what I have done is made a batch file for the game and used the config -set command before the exe and again to set it back after the exe. This works really well, except there are a few options that i can not get to change this way.

Is this normal?
cycles works ok before and after the exe.

core will only change before the exe it seems to ignor the command to set it back afterwards.

and i can not change the scalers at all using the config -set command.

Any ideas? Thanks!

Reply 1 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

core should work allright as well.
which command did you exactly type ?

Scalers might not work. Not all options have been adepted yet.
(memsize doesn't work either)

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

Reply 2 of 12, by smtremel

User metadata
Rank Newbie
Rank
Newbie

Ok, I will use daggerfall as an example since it is the one I have the most changes with. Is is the contents of the batch file:

Config -set "sdl fullscreen=true"
Config -set "cpu core=normal"
Config -set "cpu cycles=50000"
Config -set "render scaler=normal2x"
set dos4gvm=@dagger.vmc
fall.exe z.cfg
Config -set "cpu cycles=25000"
Config -set "sdl fullscreen=false"
Config -set "cpu core=dynamic"
Config -set "render scaler=hq2x"

Ok, so the command must support the options? I guess it is just ignoring a syntax if it doesn't understand it?

Reply 3 of 12, by QuietGuy

User metadata
Rank Newbie
Rank
Newbie

For setting the core and cycles you can better use other commands.
I should do this:

cycles 50000
core normal
set dos4gvm=@dagger.vmc
fall.exe z.cfg
cycles 25000
core dynamic

That should work.

Reply 4 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

well it looks allright.
the config -set "cpu core=dynamic" works at my place although I don't have daggerfall
you might want to query the setting of cpu after this batch file
with
config -get "cpu core"

config will only report syntax errors. it will ignore things it can't change and ignore illegal options. (there is no feedback if it succeeded except when make a typo in the syntax)

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

Reply 5 of 12, by smtremel

User metadata
Rank Newbie
Rank
Newbie

adding config -get "cpu core" to the end of the batch file crashes dos box

Reply 6 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

smstremel: That is really odd. does work adding it earlier work okay ?
(and which version of DOSBox are you using ? (plain 0.65 ?))

Quietguy:
Well config -set "cpu core=normal" is the official (and only supported syntax)

I added those shortcuts like core normal in dosbox for faster acces and for fun. You shouldn't depend on them 😉 although they work fine, but it's not better.

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

Reply 7 of 12, by smtremel

User metadata
Rank Newbie
Rank
Newbie

opening dosbox and trying before doing anything else still crashes it (it dumps me right back to the desktop)
i am using a cvs version, though i am not sure the exact version I think it is based off of .65 How can I tell for sure?

i am using direct3d for output and timesync

Not sure if any of that helps 😐

Reply 8 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm could you try 0.65 ? (as you are a windows users you can download the installer)

It might be that one of the patches has created a bug.

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

Reply 9 of 12, by QuietGuy

User metadata
Rank Newbie
Rank
Newbie

Quietguy:
Well config -set "cpu core=normal" is the official (and only supported syntax)

Ah good to know.

I thought the difference was changing the ini file or temporarily changing a value. But offcause without "config -writeconf" nothing has been written at all, and only changed temporarily.

Reply 10 of 12, by smtremel

User metadata
Rank Newbie
Rank
Newbie

yeah, i give it a try and let you know...

Edit: Yeah, that was it. .65 clean install into another Dir works.
config -get reports back ok, as well as i can change the scalers with the config set command...

So it must be something in the cvs version huhh?

Reply 11 of 12, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It's probably one of the changes/patches by ykhwong.
CVS is fine.

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

Reply 12 of 12, by smtremel

User metadata
Rank Newbie
Rank
Newbie

well, the cvs version was suggested to get daggerfall running better, but going back to the .65 seems faster now... that hq2x scaler is nice, but a big slowdown no doubt... =]