.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   More Command Line options (http://forum.shrapnelgames.com/showthread.php?t=3363)

Will June 12th, 2001 04:55 AM

More Command Line options
 
10. Added - Added command line option for specifying the mod path.

Command Line Options:

Se4.exe "[Savegame path]" "[Password]" "[Player Number]" "[Mod path]" -nd

[Savegame Path] = Exact path to the savegame file.
[Game Password] = Either the game password if this is the host processing the turn, or
the players password if you want to launch directly into a player’s turn.
[Player Number] = The specific player number you wish to launch into, or 0 if this is
the host processing the turn.
[Mod path] = Override to the directory specified in the Path.txt file (this should
just be the directory name of the mod, exactly what’s in Path.txt).
You can leave this blank to just use the setting found in the Path.txt
file.
-nd = Optional flag which indicates if any error dialogs should be displayed
during the turn processing if an error occurs.

Note: To leave an option blank, just put two parenthesis with a space between them.

Examples:
Host processing the turn, with no dialogs.
Se4.exe "c:\program files\shrapnel games\malfador machination\space empires
iv\savegame\BigMulti.gam" "Master" "0" " " -nd

Player wants to launch directly into their game.
Se4.exe "c:\se4\savegame\mygame.gam" "mypass" "1" " "

Host wants to process a turn with an alternate mod path, and have dialogs be displayed.
Se4.exe "c:\se4\savegame\supergame.gam" "master" "0" "c:\se4\mydata"


From the 1.39 patch. Should make PBW a lot nicer http://www.shrapnelgames.com/ubb/images/icons/icon7.gif

Droplede June 12th, 2001 08:33 AM

Re: More Command Line options
 
Good news, indeed. Thanks, Will. Looking forward to joining you all on PBW soon.

BeeDee10 June 12th, 2001 10:06 AM

Re: More Command Line options
 
This should make non-PBW games more convenient, too. Now instead of editing path.txt every time you want to play a different modded Version of SEIV, you can just have different shortcuts for each mod that launches the game with the appropriate mod enabled. path.txt could be virtually obsolete. http://www.shrapnelgames.com/ubb/images/icons/icon7.gif

Edit- Oh, fooey, just noticed how every example command line has the savegame and player specified as well. Does the command line modpath thing work if you're not launching directly into a saved game?

[This message has been edited by BeeDee10 (edited 12 June 2001).]

geoschmo June 12th, 2001 02:36 PM

Re: More Command Line options
 
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Oh, fooey, just noticed how every example command line has the savegame and player specified as well. Does the command line modpath thing work if you're not launching directly into a saved game?<HR></BLOCKQUOTE>
That's a good question. It should be easy enough to test for Will or one of the others with the patch beta. Otherwise we will have to wait for the release. If it doesn't we should definetly suggest it to Aaron. That would be very convenient.

Somebody wrote a program to do that once. It worked by rewriting the path.txt file. I think it was in the mod section at one time.

Geo

Will June 12th, 2001 06:21 PM

Re: More Command Line options
 
Well, I tried what I think you meant (launching se4.exe from the command line with three empty quote pairs and a mod directory). And it worked, and it didn't work... SE4 launched, I got my little "This is a BETA Version" dialogue, SE4 showed up on the taskbar. I hit "OK" on the dialogue, and it all went away.

Still, it would be useful for PBW games.

--edit, in reference to above:

Ok, I didn't put the -nd tag on the first time, and I tried just the mod path as an arguement this time. Same thing happened.

[This message has been edited by Will (edited 12 June 2001).]

geoschmo June 12th, 2001 06:56 PM

Re: More Command Line options
 
Will,

Just an idea, try it without the three empty quote pairs. It's probably trying to load a " .gam" which doesn't exsist.

If it is intelligent enough to decipher that the mod path is a mod path, despite being the only item on the line, it may work. If not it will think the "path" is a game name and it won't work.


And leave off the -nd. Since we wan't the gam eto come up on the screen we don't want the "no dialouge boxes" option.
Geo

[This message has been edited by geoschmo (edited 12 June 2001).]

Dravis June 13th, 2001 01:47 AM

Re: More Command Line options
 
No, I don't think so, to bad.

DavidG September 24th, 2002 11:51 PM

Re: More Command Line options
 
Has anyone tried these lately? I want to create a shortcut so I can process a multi turn quickly but I can't get it to work.

geoschmo September 25th, 2002 12:28 AM

Re: More Command Line options
 
They work fine. It's what PBW is built around. Can you paste in the text you are using so maybe I can see what the problem is?

Geoschmo

DavidG September 25th, 2002 01:51 AM

Re: More Command Line options
 
I tried both of these. (I was just trying to get into my turn first to see if it worked)

C:\Progra~1\SpaceE~1\Se4.exe "C:\Program Files\Space Empires IV Gold\Pirates&NomadsV3.1\Savegame\DDAM.gam" "mypass" "1" " "

C:\Progra~1\SpaceE~1\Se4.exe "C:\Progra~1\SpaceE~1\Pirate~1\Savegame\DDAM.g am" "mypass" "1" " "

[ September 25, 2002, 00:53: Message edited by: DavidG ]


All times are GMT -4. The time now is 03:20 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.