|  | 
| 
 
 
 
 
 
 
 
 
    
    
 |  | 
 
 
	
		|  |  |  
	
	
		
	
	
	| 
			
			 
			
				June 7th, 2003, 02:23 PM
			
			
			
		 |  
	| 
		
			|  | 
 Lieutenant Colonel |  | 
					Join Date: Jan 2002 Location: Dundas, Ontario, Canada 
						Posts: 1,498
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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 |  
	
		
	
	
	| 
			
			 
			
				June 7th, 2003, 03:22 PM
			
			
			
		 |  
	| 
		
			
			| 
 Corporal |  | 
					Join Date: Apr 2003 Location: Arklahoma 
						Posts: 87
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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
 |  
	
		
	
	
	| 
			
			 
			
				June 8th, 2003, 09:53 AM
			
			
			
		 |  
	| 
		
			|  | 
 Corporal |  | 
					Join Date: Dec 2000 Location: Italy 
						Posts: 134
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: How to start your game from a batch file 
 
	Yes, but the command line would vary with your method of obtaining the savegames (D/L or email) and your zip program...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?
 |  |  
	
		
	
	
	| 
			
			 
			
				August 16th, 2003, 12:32 PM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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?
 |  
	
		
	
	
	| 
			
			 
			
				August 16th, 2003, 05:09 PM
			
			
			
		 |  
	| 
		
			|  | 
 Major |  | 
					Join Date: Oct 2000 Location: New York, NY 
						Posts: 1,066
					 Thanks: 1 
		
			Thanked 1 Time in 1 Post
		
	      |  |  
    
	| 
				 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? |  
	
		
	
	
	| 
			
			 
			
				August 16th, 2003, 05:24 PM
			
			
			
		 |  
	| 
		
			|  | Shrapnel Fanatic |  | 
					Join Date: Feb 2001 Location: Waterloo, Ontario, Canada 
						Posts: 11,451
					 Thanks: 1 
		
			
				Thanked 4 Times in 4 Posts
			
		
	      |  |  
    
	| 
				 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 ]
 
				__________________ 
				Things you want: |  
	
		
	
	
	| 
			
			 
			
				August 16th, 2003, 05:48 PM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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 ]
 |  
	
		
	
	
	| 
			
			 
			
				August 17th, 2003, 01:11 AM
			
			
			
		 |  
	| 
		
			|  | 
 Lieutenant Colonel |  | 
					Join Date: Jan 2002 Location: Dundas, Ontario, Canada 
						Posts: 1,498
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: How to start your game from a batch file 
 
	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.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?
 |  |  
	
		
	
	
	| 
			
			 
			
				August 17th, 2003, 01:25 AM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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 ] |  
	
		
	
	
	| 
			
			 
			
				August 17th, 2003, 01:54 AM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 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...
 |  
	
		
	
	
	
	
	
	
	| 
	|  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 
 |  |  |  |  |