.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old June 7th, 2003, 02:23 PM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default 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 )

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
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
  #2  
Old June 7th, 2003, 03:22 PM

Mathias_Ice Mathias_Ice is offline
Corporal
 
Join Date: Apr 2003
Location: Arklahoma
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Mathias_Ice is on a distinguished road
Default 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?
__________________
No poor bastard ever won a war by dying for his country. He won it by making other bastards die for their country.
George S. Patton
Reply With Quote
  #3  
Old June 8th, 2003, 09:53 AM
Lisif Deoral's Avatar

Lisif Deoral Lisif Deoral is offline
Corporal
 
Join Date: Dec 2000
Location: Italy
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Lisif Deoral is on a distinguished road
Default 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?
Yes, but the command line would vary with your method of obtaining the savegames (D/L or email) and your zip program...
Reply With Quote
  #4  
Old August 16th, 2003, 12:32 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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?
Reply With Quote
  #5  
Old August 16th, 2003, 05:09 PM
Urendi Maleldil's Avatar

Urendi Maleldil Urendi Maleldil is offline
Major
 
Join Date: Oct 2000
Location: New York, NY
Posts: 1,066
Thanks: 1
Thanked 1 Time in 1 Post
Urendi Maleldil is on a distinguished road
Default 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?
__________________
Ken vs. The City

-Km :�
Reply With Quote
  #6  
Old August 16th, 2003, 05:24 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default 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 ]
Reply With Quote
  #7  
Old August 16th, 2003, 05:48 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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 ]
Reply With Quote
  #8  
Old August 17th, 2003, 01:11 AM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default 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?
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.
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
  #9  
Old August 17th, 2003, 01:25 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default Re: How to start your game from a batch file

yeah, yeah
But is there something else then: " 21, P/w , ????"

Guess I can check....

[ August 16, 2003, 12:25: Message edited by: Ruatha ]
Reply With Quote
  #10  
Old August 17th, 2003, 01:54 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:58 PM.


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