Page 1 of 1

spectating AI vs AI

Posted: 07 Nov 2005, 20:44
by submarine
It may be very stupid to ask, but i want my ai to fight vs another ai; so if i add 2 ais in the spring client and select spectator for myself, the start button becomes deactivated...

Posted: 07 Nov 2005, 20:50
by AF
Well play a 1v1v1 with 2 AI's then edit the script.txt afterwards and feed ti into spring directly.

And post the script here too.

Posted: 07 Nov 2005, 21:04
by submarine
hmm i got another solution: you select the same team as on of the ai players, and then use cheat function to become spectator...

it works...

Posted: 08 Nov 2005, 11:39
by Triaxx2
Didn't they disable the ability to spectate AI's from the battle room?

Silly. Some one should add in a Debug mode with that kind of functionality, so if you're testing an AI, you can do that.

Posted: 08 Nov 2005, 16:44
by Michilus_nimbus
This script worked for me:

In AIvAI.txt:

Code: Select all

[GAME]
{
	Mapname=yourmaphere.smf;
	StartMetal=1000;
	StartEnergy=1000;
	MaxUnits=500;
	StartPosType=0;
	GameMode=0;
	GameType=xta_se_v065.sdz;

	hostip=localhost;
	hostport=8452;

	MyPlayerNum=0;

	NumPlayers=1;
	NumTeams=2;
	NumAllyTeams=2;

	[PLAYER0]
	{
		name=yourname;
		Spectator=1;
		team=0;
	}

	[TEAM0]
	{
		TeamLeader=0;
		AllyTeam=0;
		Color=9;
		Side=Core;
		Handicap=0;
		AIDLL=aidll\globalai\NTAI.dll;
	}
	[TEAM1]
	{
		TeamLeader=0;
		AllyTeam=1;
		Color=0;
		Side=Core;
		Handicap=0;
		AIDLL=aidll\globalai\JCAI.dll;
	}
	[ALLYTEAM0]
	{
		NumAllies=0;
	}
	[ALLYTEAM1]
	{
		NumAllies=0;
	}
	NumRestrictions=0;
	[RESTRICT]
	{
	}
in AIvAI.bat:

Code: Select all

spring AIvAI.txt
Just execute AIvAI.bat et voila.

Posted: 08 Nov 2005, 20:59
by AF
yay! cookie for michilus_nimbus

Posted: 08 Nov 2005, 22:01
by Veylon
I seem to remember this coming up before. This info should probably be in the FAQ or readme or whatever that comes with Spring so people won't have to ask about it.