Forums

Forums (http://www.abandonia.com/vbullet/index.php)
-   Troubleshooting (http://www.abandonia.com/vbullet/forumdisplay.php?f=11)
-   -   dosbox .74 shortcuts - what am I doing wrong (http://www.abandonia.com/vbullet/showthread.php?t=26500)

CorruptMylar 22-01-2011 04:27 AM

dosbox .74 shortcuts - what am I doing wrong
 
I can't seem to make game shortcuts any more in Dosbox .74 I'm using it on win 7 x64.

The default .conf seems to be hidden now. To get to it you have to go to Start > Dosbox > Options > dosbox options. But I copied the text out of the file anyway and tried to set up my game conf.

# This is the configurationfile for Magic Candle 2
[sdl]

fullscreen=true

[dosbox]
captures=d:\dosconf\mc2

[cpu]
core=auto
cputype=auto
cycles=auto
cycleup=10
cycledown=20

[autoexec]
cd mc2
mc2
exit

I have the mount c d:\dosgames\ and change to c: in the default options already.
Then I created a short cut with the following lines:

Target: "C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -conf "D:\DOSConf\mc2\mc2.conf"

What am I doing wrong?

zirkoni 22-01-2011 07:21 AM

Add "mount c d:\dosgames" in mc2.conf under the autoexec.

Ohne Mitleid 22-01-2011 07:29 AM

Quote:

Originally Posted by CorruptMylar (Post 421263)
I can't seem to make game shortcuts any more in Dosbox .74 I'm using it on win 7 x64.

The default .conf seems to be hidden now. To get to it you have to go to Start > Dosbox > Options > dosbox options. But I copied the text out of the file anyway and tried to set up my game conf.

The conf file for Win 7 x64 is now located at:

{system drive}:\Users\{username}\AppData\Local\DOSBox\dosbox-{version}.conf

The 'AppData' folder is hidden, so if you don't have show hidden files set up, you wouldn't see it.

Quote:

Originally Posted by CorruptMylar (Post 421263)
[autoexec]
cd mc2
mc2
exit

I have the mount c d:\dosgames\ and change to c: in the default options already.
Then I created a short cut with the following lines:

Target: "C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -conf "D:\DOSConf\mc2\mc2.conf"

What am I doing wrong?

I don't know about setting the default options, but the DOSBox default config file shows:

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.


So it would seem that might be a place to try to put your mount lines. Did you verify the program would start without the shortcut first? I've had trouble with shortcuts before and it was usually something with my config file, not the shortcut. In order to solve this, I usually take the "long way"; run DOSBox without any autoexec lines, type in the mount, change to c:...do everything manually to verify it works.

Also, the Target setup looks okay.
Is the Start in: field for the shortcut set to:
"C:\Program Files (x86)\DOSBox-0.74"

Just some thoughts. I am not an expert by any means.
Ohne

The Fifth Horseman 22-01-2011 01:46 PM

By using only that single config file, you are forcing DOSBox to fall back to its' backup config, which doesn't include your mount command.
Target: "C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -conf <0.74 config file> -conf "D:\DOSConf\mc2\mc2.conf"
Will work.

CorruptMylar 22-01-2011 04:56 PM

Oh jeez, I'm an idiot. I finally got it. Thanks everyone.

Of course it's in Appdata. I thought I had indexed everything and when the default config didn't show up when I searched for it I thought it was somehow hidden in the program.

And I didn't put the default .conf and then the mc2 conf to use the game settings in the shortcut.

"C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -conf "C:\Users\<user>\AppData\Local\DOSBox\dosbox-0.74.conf" -conf "D:\DOSConf\mc2\mc2.conf"

Japo 22-01-2011 08:36 PM

In the newer versions, you can substitute
Code:

-conf "C:\Users\\AppData\Local\DOSBox\dosbox-0.74.conf"
for
Code:

-userconf
and be sure that it will be the same configuration file that you can edit from the start menu, and you won't have to update the shortcuts every time you update DOSBox to change "dosbox-0.74.conf" to "dosbox-0.75.conf", etc.

CorruptMylar 23-01-2011 10:11 PM

I wondered about that -userconf. I saw it in the default shortcut. Thanks for the tip!

Japo 24-01-2011 12:21 AM

NP. A little margin note:

Quote:

Originally Posted by Japo (Post 330300)
We can mount always the same virtual hard drive by default--where all our games will be accessible in individual folders--in our default file, and leave the rest of the commands for the configuration files particular to each game or profile; that way if we start DOSBox with the default configuration only, we still don't have to type in the mount command every time. Be warned however, that if we include the mount command for a C: drive in the default configuration, we won't be able to start games by dragging them onto the DOSBox shortcut, as the basic tutorial describes. (Because this auto-mounts the concerned folder as the C: virtual drive, but if that letter is already taken, an error happens. So we can include the mount command in every custom file to leave it outside the default one--specially if it's not the case that we have all our DOS games hanging from the same parent folder--or include there a mount command for a drive with a different letter than C:--although this may cause problems with some games). It's a matter of personal preference; I'll describe the first approach, but by now you'll know how to adapt it. An ideal solution, if you want to continue being able to drag'n drop, may be copying the default configuration file to your custom files folder along with the others, and replace in the shortcut parameters "-userconf" with "-conf dosbox.conf" (if this custom default file is named "dosbox.conf"). That way you can edit your custom dosbox.conf, and leave the other file unchanged as out of the box; so drag'n dropping can still work alongside your shortcuts.


someone new 07-07-2011 06:07 AM

hmm
 
hey there,

-I use win7 64bit edition-

DOSBOx 074 gets .conf information from user folder in appdata folder. Is it possible to
a) change that folder or
b) delete these behaviour so, that dosbox dont grab standard .conf file?

extra-information:

i tried -userconf but doesnt work
i use a .batch file to get .conf of my own but it doesnt work if the conf isnt in standard dosbox folder from dosbox 074. With svn build no prob Wink


:(

zirkoni 07-07-2011 07:33 AM

Quote:

Originally Posted by someone new (Post 430195)
i tried -userconf but doesnt work

Because the -userconf parameter loads the default configuration file. You should use the -conf parameter instead.

Quote:

Originally Posted by DOSBox Manual
DOSBox will load configuration files that are specified with -conf. If none were
specified, it will try to load "dosbox.conf" from the local directory.
If there is none, DOSBox will load the user configuration file.
This file will be created if it doesn't exist.

Important!: In Windows Vista/7 the configuration file won't work correctly
if it is located in "Windows" or "Program Files" folder or their subfolders,
or directly on c:\, so the best place for storing extra configuration files is
for example: C:\oldgames

You can edit the shortcut in the Windows start menu or make a new shortcut. Works with a batch file also.
Change this:
"C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -userconf
to this:
"C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -conf "x:\path\DOSBox-0.74.conf"

Where "x:\path\" is the path to the conf file you want to use.


The current time is 11:34 AM (GMT)

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.