.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   How to start your game from a batch file (http://forum.shrapnelgames.com/showthread.php?t=9618)

DavidG June 7th, 2003 02:23 PM

How to start your game from a batch file
 
Since I haven't seen this mentioned in a while I thought I would provide a little tip to some of the newer player how you can create a shortcut to jump right into your multiplayer games.

(the mod launcher is nice but too many clicks for me http://forum.shrapnelgames.com/images/icons/tongue.gif )

Create a batch file (text file with .bat extension) and put the following in it:

C:\Progra~1\SpaceE~3\Se4.exe "gamefile" "p/w" "1" "modname"

The first bit is the path to your se4.exe file

and gamefile = the .gam file included the full path
p/w = your password
1 = your player number
modname = the name of the mod or empty quotes for standard se4

Mathias_Ice June 7th, 2003 03:22 PM

Re: How to start your game from a batch file
 
Good info, but let me ask you this... is there any way to include an unzip function (for PBW games) to this batch file? Unzipping seems to have just as many mouse clicks as loading up the Mod picker. Man, are we a lazy bunch or what?

Lisif Deoral June 8th, 2003 09:53 AM

Re: How to start your game from a batch file
 
Quote:

Originally posted by Mathias_Ice:
Good info, but let me ask you this... is there any way to include an unzip function (for PBW games) to this batch file?
<font size="2" face="Verdana, Helvetica, sans-serif">Yes, but the command line would vary with your method of obtaining the savegames (D/L or email) and your zip program...

Ruatha August 16th, 2003 12:32 PM

Re: How to start your game from a batch file
 
How to make it execute a multiplayer turn (hostrun) from command line?

20 players, do I choose 21 then and password and what else?

Urendi Maleldil August 16th, 2003 05:09 PM

Re: How to start your game from a batch file
 
Is there a way do do something like the SE4BATCH program using only the command line?

Suicide Junkie August 16th, 2003 05:24 PM

Re: How to start your game from a batch file
 
You need quotes around each parameter, and the password cannot be null... use a single space instead.

"c:\program files\shrapnel games\malfador machination\space empires\SE4.exe" "D:\SE4\SE4Gold\Savegame\PnNonPBWtake2.gam" "arrmatey" " 1" "Pirates&Nomadsmodv3.2r7"

[ August 16, 2003, 16:25: Message edited by: Suicide Junkie ]

Ruatha August 16th, 2003 05:48 PM

Re: How to start your game from a batch file
 
Success, now, how to make it process (hostrun) the turn.

se4.exe "savegame\test.gam" "pass" "1"

opens the turn for player1
but; (12 being host)
se4.exe "savegame\test.gam" "pass" "12"
produces "exception access violation"....

[ August 16, 2003, 16:52: Message edited by: Ruatha ]

DavidG August 17th, 2003 01:11 AM

Re: How to start your game from a batch file
 
Quote:

Originally posted by Ruatha:
How to make it execute a multiplayer turn (hostrun) from command line?

20 players, do I choose 21 then and password and what else?

<font size="2" face="Verdana, Helvetica, sans-serif">I think this is right however I would not suggest doing this. I tried it once and the problem is it does not give you any error warnings. like if one of thr .plr files is missing or the wrong turn.

Ruatha August 17th, 2003 01:25 AM

Re: How to start your game from a batch file
 
yeah, yeah http://forum.shrapnelgames.com/images/icons/icon10.gif
But is there something else then: " 21, P/w , ????"

Guess I can check....

[ August 16, 2003, 12:25: Message edited by: Ruatha ]

Ruatha August 17th, 2003 01:54 AM

Re: How to start your game from a batch file
 
I can't get it to work.
When I write se4.exe it works but not when I type
se4.exe test pass 1
or
se4.exe test.gam pass 1
or
se4.exe savegame\test pass 1
or
se4.exe savegame\test.gam pass 1
or all above with "" around the parameters or , between or whatever...


All times are GMT -4. The time now is 10:36 AM.

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