View Full Version : How to start your game from a batch file
DavidG
June 7th, 2003, 02:23 PM
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
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
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
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
Is there a way do do something like the SE4BATCH program using only the command line?
Suicide Junkie
August 16th, 2003, 05:24 PM
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
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
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
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
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...
Ruatha
August 17th, 2003, 07:23 AM
Anyone knows how to make the turn execute from commandline, i e host run game execution?
Suicide Junkie
August 17th, 2003, 06:01 PM
You have no player 12 in that game.
Try zero.
Ruatha
August 18th, 2003, 09:49 AM
Thanx, I assumed host= Last player+1 as it's furthest down on the list, never thought of Zero
http://forum.shrapnelgames.com/images/smilies/rolleyes.gif
Can't test it until friday now that I'm far from home (Glad PBW is down http://forum.shrapnelgames.com/images/icons/icon10.gif )
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.