How to play against multiple AIs?

How to play against multiple AIs?

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
DrMushroom
Posts: 4
Joined: 21 Oct 2005, 20:25

How to play against multiple AIs?

Post by DrMushroom »

Hi!
Playing against one AI is damn easy at the moment, but I heard about playing against multiples.
Is this possible? Are there some command line arguments to do this?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You have to manually edit the script.txt then supply script.txt as the only command line arguement to spring.exe.

SJ posted examples earlier on howto setup an AIvs AI game but that was a while back.

In the players bit add aidll=insertaidllnamehere
User avatar
Kuroneko
Posts: 483
Joined: 03 Jan 2005, 05:32

Re: How to play against multiple AIs?

Post by Kuroneko »

DrMushroom wrote:Hi!
Playing against one AI is damn easy at the moment, but I heard about playing against multiples.
Is this possible? Are there some command line arguments to do this?
make a script for spring to launch, or use the lobby interface
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

the lobby and the offline server (and java) work great for testing purpouses.

its a bit tricky to set, .. not sure, but it seems you have to install other lenguages support when installing java...

and... you cant poll jcai vs ntai atm.
DrMushroom
Posts: 4
Joined: 21 Oct 2005, 20:25

RE

Post by DrMushroom »

You might laugh but I neither found a file called 'script.txt' nor the option in the lobby to add an AI player.

@Kuroneko
Did you mean the lobby packed with spring? Then I'm to stupid to find the right menu. Could you give me a hint?

UPDATE: I finally got it to work using the offline-server and the lobby. Thank you for your help
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

Get the lobby server at downloadspage.

read the readme there and get java (address in that readme).
(installing support for .. other lenguajes.. may help).

once you get the server running.
(hint, running lanserver.bat will leave a command window open if its running).

run the lobby client, go to options, point the "server" to localhost.

REGISTER an account.

then login.

thats it, then you can use the lobby interface offline... that generates the scripts auto...

the add bot button is there once you host, bottom right.

e: ahh.. yourrigth gnome, i got the "main" java.lang.NoClassDefFoundError: TASServer"
(so had to do that command line stuff, appart from adding the java dir to the path.. why oh why? and installing those aditional lenguajes...)
finally it worked dunno exactly why.
thats why it asked me to register i guess.
Last edited by mongus on 22 Oct 2005, 01:44, edited 3 times in total.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

You don't have to register with yourself if you run LanServer.bat.
Post Reply

Return to “Help & Bugs”