spectating AI vs AI

spectating AI vs AI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

spectating AI vs AI

Post 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...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post 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...
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post 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.
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

yay! cookie for michilus_nimbus
User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post 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.
Post Reply

Return to “AI”