commandline on mac os x
Hello, I am trying to start doom.wad using the following command in an applescript:
do shell script "/Applications/Games/Doomsday/Doomsday\\ Engine.app/Contents/MacOS/Doomsday\\ Engine -game jdoom -iwad /Applications/Games/Doomsday/wads/doom.wad"
All it does is open SnowBerry. What am I doing wrong?
1.9.0-beta5.1-universal-macosx on 10.5.8
BTW, the game runs beautifully! And SnowBerry is really nice, just want to run the game directly. Thanks in advance!
do shell script "/Applications/Games/Doomsday/Doomsday\\ Engine.app/Contents/MacOS/Doomsday\\ Engine -game jdoom -iwad /Applications/Games/Doomsday/wads/doom.wad"
All it does is open SnowBerry. What am I doing wrong?
1.9.0-beta5.1-universal-macosx on 10.5.8
BTW, the game runs beautifully! And SnowBerry is really nice, just want to run the game directly. Thanks in advance!
Comments
Do you refer to Doomsday.app? I have tried this:
do shell script "/Applications/Games/Doomsday/Doomsday\\ Engine.app/Contents/Doomsday.app/Contents/MacOS/Doomsday -game jdoom -iwad /Applications/Games/Doomsday/wads/doom.wad"
And I get this error:
DD_InitDGL: Loading of drOpenGL.bundle failed.
(null).
Any ideas? Thanks.
Here's an example command line that should work (when executed in /Applications/Doomsday Engine.app/Contents):
(Naturally substitute the IWAD path with one that suits your setup.)
set sdir to "$HOME/Library/Application Support/Doomsday Engine/runtime/savegame/doom1-ultimate"
... -basedir Doomsday.app/Contents/Resources/ -savedir \"" & sdir & "\" -sfxchan 16 ...
That just creates an Application directory at the same level as my ~/Library/Application Support directory, which tells me it's the spaces. But when I try
set sdir to "$HOME/Library/Application\\ Support/Doomsday\\ Engine/runtime/savegame/doom1-ultimate"
it does the same thing. Adding quoted forms, posix paths, etc. only make it save the game in Contents again, or not at all. Please advise.
I hate to keep asking questions on this board, but there is a complete dearth of Mac commandline instructions for the Doomsday engine. Thanks for your time.
You should use the -userdir option to define where the engine will save your config files, savegames, etc. For example:
Here's a shell script that can be run from anywhere. This is equivalent to what Snowberry does when it launches the game (modify to suit your system):
Any plans to build more commandline support into future versions? A simple switch method like "doomsday -plutonia" (like scummvm uses, for example) that could go into an applescript (instead of a shell script) would be awesome. Is there a way to sponsor a feature like this? I would be happy to donate, especially after your excellent help for this free app.
Thanks again!