Page 1 of 1

Define Team Names via script.txt

Posted: 23 Jul 2006, 17:59
by hollowsoul
Not sure if its possible already (if it is plz give an example)

But anyways would be nice to define team names via script.txt
Atm the teams are named after the teamleader(player) name.

But when u are playing 1 player against AI.

And when u defeat a team it says i.e

Code: Select all

Team2(Hollowsoul) has been defeated.
i.e all the teams are named after the human player

Would be nice to be able to override the default naming scheme for teams by assigning a name for the team in [TEAMX} section of script.

Example of script.txt using atm is
(script.txt generated is using pygtk app (indents added to make more user readable)

Code: Select all

[GAME]
{
	Mapname=SplinteredTropicsV2.smf;
	StartMetal=2000;
	StartEnergy=2000;
	GameType=AASS211.sdz;
	GameMode=0;
	MyPlayerNum=0;
	NumPlayers=1;
	NumTeams=6;
	NumAllyTeams=6;
	[PLAYER0]
	{
		name=Hollowsoul;
		Spectator=0/1;
		team=0;
	}
	[TEAM0]
	{
		TeamLeader=0;
		Color=0;
		Handicap=0;
		AllyTeam=0;
		Side=CORE;
	}
	[TEAM1]
	{
		TeamLeader=0;
		Color=1;
		Handicap=0;
		AllyTeam=1;
		Side=ARM;
		AiDLL=aidll/globalai/aai.so;
	}
	[TEAM2]
	{
		TeamLeader=0;
		Color=2;
		Handicap=0;
		AllyTeam=2;
		Side=CORE;
		AiDLL=aidll/globalai/aai.so;
	}
	[TEAM3]
	{
		TeamLeader=0;
		Color=3;
		Handicap=0;
		AllyTeam=3;
		Side=ARM;
		AiDLL=aidll/globalai/aai.so;
	}
	[TEAM4]
	{
		TeamLeader=0;
		Color=4;
		Handicap=0;
		AllyTeam=4;
		Side=CORE;
		AiDLL=aidll/globalai/aai.so;
	}
	[TEAM5]
	{
		TeamLeader=0;
		Color=5;
		Handicap=0;
		AllyTeam=5;	
		Side=ARM;
		AiDLL=aidll/globalai/aai.so;
	}
[ALLYTEAM0]
{
NumAllies=0;
}
[ALLYTEAM1]
{
NumAllies=0;
}
[ALLYTEAM2]
{
NumAllies=0;
}
[ALLYTEAM3]
{
NumAllies=0;
}
[ALLYTEAM4]
{
NumAllies=0;
}
[ALLYTEAM5]
{
NumAllies=0;
}
}
edited:-
Asking for this since, playin agiainst multiple AI & and seeing Team(insert your player name is dead). Just seems wrong.
Shouldnt take much to add ability to override the default naming scheme if the option to define name for a team in [TEAMX] is present.
Basicly abit of polish to game, that shouldnt take much coding.

Posted: 04 Aug 2006, 18:59
by hollowsoul
First and last of shameless bump

Anyone else think it would be nice for other clients to be able to define team names ?

Atm bot owners is whoever the TeamLeader is.
Teams are named after TeamLeader

If u are just playing against bots & thus u are the bot owner for all of them.
The bots are all named after u.

Someone plz look into it & see about adding option to script.txt. To override the default naming of teams. If its missing then it uses current behavour & thus should break any apps

Posted: 04 Aug 2006, 21:11
by SwiftSpear
I don't think this is that good an idea. Team is a fancy spring name for "player", we use the team names to list the .info information. I think it would just cause confusion allowing player to change them.