|
|
|
 |

January 15th, 2007, 12:46 AM
|
First Lieutenant
|
|
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Command Line Switches - revisited
I can't say about Mac OSX, but on Windows standard descriptors work the same way as on Linux/UNIX if the application is built as "console" application. If application is built as "Windows" application, standard output isn't going anywhere. The programmer need to reopen descriptors into some file. That's what Dom3 must be doing.
|

January 15th, 2007, 03:57 AM
|
 |
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
Re: Command Line Switches - revisited
Windows
On my W2kSP4 box, running dom3.exe -h at the command prompt does provide me with a stdout.txt containing the info about the command line options ... :
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
|

January 15th, 2007, 04:34 AM
|
 |
Captain
|
|
Join Date: Jun 2004
Location: Rhode Island
Posts: 822
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Command Line Switches - revisited
Psientist, you don't want to use the "open" command. Just type /Applications/Games/Dominions 3/Dominions3.app/Contents/MacOS/Dominions3 -h
and you'll get your list.
Note that if you want to run the game this way, say if you like using a nonstandard resolution, you have to run it from a slightly different location (search the forum for other posts by me and others to see how) - but if you just want to run the command-line version (to get help, verify turns, host a turn, etc.) this works fine.
I don't know if open has support for command-line switches to the program you're opening (open is really designed for opening files, not running applications) but even if it doesn you'd probably have to put it in quotes. Anyway, you don't want or need it in this case. Hope this gets you what you need.
|

January 15th, 2007, 11:49 AM
|
 |
Sergeant
|
|
Join Date: Apr 2004
Location: Tampa Bay, Florida, USA
Posts: 327
Thanks: 5
Thanked 33 Times in 11 Posts
|
|
Re: Command Line Switches - revisited
Ygori:
Thanks for the assist. I figured it out, finally. Although I had tried a few times to run the Dominions3 app inside the bundle by *navigating* to that directory (e.g., "cd /Applications/Dominions 3/Dominions3.app/Contents/MacOS/") before running it, it never worked.
But just establishing the current working directory outside of the application bundle, and then running the core app with the entire path specified, did the trick.
So, to repeat for every OSX user's benefit:
1. open terminal.
2. run the following command, adjusting the path to specify the location of your Dominions 3 game folder:
Quote:
/Applications/Games/'Dominions 3'/Dominions3.app/Contents/MacOS/Dominions3 -h
|
Thanks, Ygori. I'll probably make a script file to execute that without having to go to terminal first, or for setting command-line switches I wish to load every time.
|

January 15th, 2007, 04:51 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Command Line Switches - revisited
I was thinking that from what I read when I tried to google an answer, but I couldnt test it so I kept my mouth shut (for once). The "open" said it opened a gui console. That would seem to be oppossing the result desired for -h and -T. I found examples using open and some that didnt use open but nothing clearly saying why use one and not the other.
Does using the "open" make ALL switches ignored? Do switches such as nofade or nomusic work?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

January 16th, 2007, 12:37 PM
|
 |
Sergeant
|
|
Join Date: Apr 2004
Location: Tampa Bay, Florida, USA
Posts: 327
Thanks: 5
Thanked 33 Times in 11 Posts
|
|
Re: Command Line Switches - revisited
all switches seem to be treated as another filename argument, perhaps to the "open" command.
|

January 16th, 2007, 01:25 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Command Line Switches - revisited
I saw an example online of using the open and then putting the filename in single quotes so that
open Dominions3.app -h
would have been
open 'Dominions3.app -h '
or something like that. I couldnt tell what quotes were used whether it as " ' ` or whatever.
Im just curious because this is one of the subjects Im debating wiki/blog/faq or something on Dom3Minions. Some how-to on screenshots, sprites, command switches, backups, saves, restores, alarms, hosting, map making, etc etc
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|