VOGONS


First post, by ddold

User metadata
Rank Newbie
Rank
Newbie

Hello,

I'm trying to set up DOSBox to allow me to do a few things:

1) Automount and start the specific app I want via a customized configuration file (done)
2) Start via a terminal command alias (done)
3) Load a specific configuration file stored in the same directory as DOSBox (fail)

I'm trying to get this set up so that I can share a single folder containing the game (the original Romance of the Three Kingdoms) via Dropbox have an actual multiplayer game with a bunch of friends that no longer live anywhere near each other.

Here is my terminal command:
~/Dropbox/Romance/DOSBox.app/Contents/MacOS/dosbox -conf DOSBox.conf

But it's not using that conf file:

CONFIG: Generating default configuration.
Writing it to /Users/ddold/Library/Preferences//DOSBox 0.74 Preferences
CONFIG:Loading primary settings from config file /Users/ddold/Library/Preferences//DOSBox 0.74 Preferences
MIDI:Opened device:coreaudio
logout

I've tried it with the -conf in there, and without it, with the conf file at the same folder level as the DOSBox package, and at the same level as the actual app in the contents folder.

Any help is appreciated. Thanks.

Reply 1 of 4, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

App bundles are a sort of directory under OS X, right?
I'm not sure if DosBox can get inside them, if so, perhaps use a fully qualified path name?

~/Dropbox/Romance/DOSBox.app/Contents/MacOS/dosbox -conf ~/Dropbox/Romance/DOSBox.app/Contents/MacOS/myconf.conf

If DosBox can't get inside them...perhaps run it from a shell script in your bundle? (If such a thing can be done...) something like:

#cp might need command line switches, I'm not sure, 
#it requires them to put copy
#files TO the bundle, AFAIK (-r)

cp ~/Dropbox/Romance/DOSBox.app/Contents/MacOS/myconf.conf ~/myconf.conf
~/Dropbox/Romance/DOSBox.app/Contents/MacOS/dosbox -conf ~/myconf.conf

This would be tied to your pathnames, but I'm sure you can figure out a way to avoid that...or force your friends to use your paths 😀
I'm too sleepy, but hope it helps.

Last edited by bloodbat on 2012-07-19, 06:24. Edited 1 time in total.

Reply 2 of 4, by ddold

User metadata
Rank Newbie
Rank
Newbie

Damn it ... I had it set that way at first, but I must have had the path wrong ... changed it back now and it worked.

Thanks!

Reply 3 of 4, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Also see the two os x topics in the wiki http://www.dosbox.com/wiki/Main_Page
The first one revealed to me how to pass commandline stuff to the app (open -a dosbox --args --conf ....) and the advanced topic is mainly my config choser apple script 😉

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 4, by ddold

User metadata
Rank Newbie
Rank
Newbie

Yeah, I got most of the way to where I was thanks to those two pages. I didn't want to do the AppleScript because in the end it was easier to use the terminal command via the shared folder.

It's gold now and I have a game going already.

Thanks guys!