Spring 0.76b1+ can no longer host and spectate

Spring 0.76b1+ can no longer host and spectate

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
zenzike
Posts: 77
Joined: 12 Apr 2008, 13:19

Spring 0.76b1+ can no longer host and spectate

Post by zenzike »

I've made a startscript that allows me to spectate the game when 2 bots are fighting one another, and it worked fine in Spring 0.76b. However, it doesn't work in the svn version.

If I launch this in 0.76b+, both AI teams get created and start playing. However, I am down as an Ally, rather than a Spectator, and I can control Team 1 units (at the same time as the AI -- it's actually quite entertaining, but really not what I want). The line of sight is also restricted -- ie, I really am considered a player, and not a spectator.

Does anybody have any idea what I'm doing wrong?

Code: Select all

[GAME]
{
	Mapname=SmallDivide.smf;
	GameType=BA621.sd7;
	ModHash=0;
	diminishingmms=0;
	ghostedbuildings=1;
	limitdgun=0;
	gamemode=0;
	maxunits=500;
	startenergy=1000;
	startmetal=1000;
	startpostype=0;
	HostIP=localhost;
	HostPort=8452;

	MyPlayerNum=0;
	NumPlayers=1;
	NumTeams=2;
	NumAllyTeams=2;

	[PLAYER0]
	{
		name=zenzike;
		countryCode=gb;
		Spectator=1;
	}

	[TEAM0]
	{
		TeamLeader=0;
		AllyTeam=0;
		RGBColor=1.000000 0.000000 0.000000;
		Side=ARM;
		Handicap=0;
		AIDLL=/spring/game/AI/Bot-libs/ZAI.so;
	}
	[TEAM1]
	{
		TeamLeader=0;
		AllyTeam=1;
		RGBColor=0.000000 0.000000 1.000000;
		Side=ARM;
		Handicap=0;
		AIDLL=/spring/game/AI/Bot-libs/KAIK-0.13.so;
	}
	[ALLYTEAM0]
	{
		NumAllies=0;
	}
	[ALLYTEAM1]
	{
		NumAllies=0;
	}
	NumRestrictions=0;
	[RESTRICT]
	{
	}
	[mapoptions]
	{
	}
	[modoptions]
	{
	}
}
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Spring 0.76b1+ can no longer host and spectate

Post by LordMatt »

Could you remake that script with svn and a lobby (i.e., make a battleroom with two bots and yourself as spectator, start game, save script)?
Post Reply

Return to “Help & Bugs”