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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old December 20th, 2001, 02:01 AM

KDC KDC is offline
Private
 
Join Date: Dec 2001
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
KDC is on a distinguished road
Default Automated games

Is there a way to run a totally automated game (no human players)? I envision AI competitions...

On a related note, is there a "trace" function to see the parsed file each turn, it would make tweaking of AI files much easier.
Reply With Quote
  #2  
Old December 20th, 2001, 02:25 AM
Dracus's Avatar

Dracus Dracus is offline
Captain
 
Join Date: Jan 2001
Location: Dallas, Texas
Posts: 817
Thanks: 0
Thanked 0 Times in 0 Posts
Dracus is on a distinguished road
Default Re: Automated games

The closest you can get is to turn on all the ministers and just hit end turn. Let them do everything.
Reply With Quote
  #3  
Old December 20th, 2001, 02:27 AM

KDC KDC is offline
Private
 
Join Date: Dec 2001
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
KDC is on a distinguished road
Default Re: Automated games

Yeah, but I cannot really ask my server to press "continue", plus it's much slower if it has to handle the UI.
Reply With Quote
  #4  
Old December 20th, 2001, 02:30 AM
Dracus's Avatar

Dracus Dracus is offline
Captain
 
Join Date: Jan 2001
Location: Dallas, Texas
Posts: 817
Thanks: 0
Thanked 0 Times in 0 Posts
Dracus is on a distinguished road
Default Re: Automated games

Sorry then, that is the only way I know of to run a game with somewhat no human players.
Reply With Quote
  #5  
Old December 20th, 2001, 02:32 AM
Puke's Avatar

Puke Puke is offline
Lieutenant General
 
Join Date: Dec 2000
Location: california
Posts: 2,961
Thanks: 0
Thanked 0 Times in 0 Posts
Puke is on a distinguished road
Default Re: Automated games

someone did an AI tourney a while back.

you can run an AI only game (if you cant create a game with all AI players, then you can turn a human player over to the computer after the game starts). You can disable all Messages in your options menu, so you can just sleep on the F12 key for a while and let the turns fly.

You can also run the game from the command line (which is basically how the PBW server works) so you can make a little batch file or script to process the turns.

finally, when you first create the game, you can configure it to create a backup save file after every 1 or 5 or 10 turns or something like that. that way, you can run 300 turns, and then end up with 60 files or so to evaluate how the AI was performing.
__________________
...the green, sticky spawn of the stars
(with apologies to H.P.L.)
Reply With Quote
  #6  
Old December 20th, 2001, 02:52 AM

KDC KDC is offline
Private
 
Join Date: Dec 2001
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
KDC is on a distinguished road
Default Re: Automated games

Where is the documentation about the command-line parameters?
Reply With Quote
  #7  
Old December 20th, 2001, 03:03 AM
Puke's Avatar

Puke Puke is offline
Lieutenant General
 
Join Date: Dec 2000
Location: california
Posts: 2,961
Thanks: 0
Thanked 0 Times in 0 Posts
Puke is on a distinguished road
Default Re: Automated games

beats the hell outa me, but it must be there somewhere. I found this in the HTML manual under 'simultanious games'

quote:
Command Line

As the Host, you can execute the game by running it, and then loading the savegame, and then pressing End Turn. You can also automate the process by using command line options for the game. If you run the program se4.exe you can supply 2 command line parameters. The first is the exact path to the savegame file, the second is the password for the game. If the parameters are valid, the game will execute silently, and when finished will generate a new game file.


you could probably guess based on that info, but some one more informed than me probably has info on specific syntax examples.
__________________
...the green, sticky spawn of the stars
(with apologies to H.P.L.)
Reply With Quote
  #8  
Old December 20th, 2001, 04:23 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: Automated games

You will find what you are looking for in the History.txt file in the Space Empires IV directory.
quote:
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"


You should check the whole history file though because there have been several tweaks in later Versions. Just search for the word "command"

Geoschmo
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
Reply

Bookmarks


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 01:56 PM.


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