Page 1 of 1

'arm' and 'core' ... Spring.GetTeamInfo

Posted: 23 Apr 2008, 01:11
by Argh
Um... Spring.GetTeamInfo reports the name of my "side" as 'arm'. I.E.:

Code: Select all

		for TeamNum = 0,32,1 do
   			_, _, _, _, TeamSide, _ = Spring.GetTeamInfo(TeamNum)
   			if TeamSide ~= nil then
   				Spring.Echo(TeamNum,TeamSide)
			end
		end
...returned

0, arm
1, arm
2, arm...

Moreover, it seems to report both Resistance and Overmind as "arm"... is this a bug in Spring, or am I just doin' it wrong?

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 23 Apr 2008, 01:12
by Peet
Were you running spring from the commanders script in spring.exe perchance?

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 23 Apr 2008, 01:28
by LordMatt
ARM RULZ ALL!!!

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 23 Apr 2008, 01:45
by Argh
Were you running spring from the commanders script in spring.exe perchance?
Yeah, I was... so that's what's up?

<tests running from script.txt>

Ok... so Gaia always gets reported as "arm", and otherwise it works. K, I can just tell my script that if the value of side ~= "Resistance" or "Overmind" then to use the default for Resistance... should work. Thanks!

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 25 Apr 2008, 02:27
by Tribulexrenamed
LordMatt wrote:ARM RULZ ALL!!!
My recent tests (at least with my play style) seemed to prove this right. However, levelers are the ultimate kbot killers. Sorry for the off topic.

Is there not a tdf tag for this? I was looking at documentation and I think I saw that somewhere.

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 25 Apr 2008, 03:06
by Gnomre
There is, but it's only read when a script.txt is generated (in multiplayer or using springsp I think for example). The start scripts in the spring.exe menu don't read the tdf faction name tags for some dumb reason.

Re: 'arm' and 'core' ... Spring.GetTeamInfo

Posted: 25 Apr 2008, 03:18
by Argh
Yeah, I just wrote some simple code that sorts stuff out. I was just puzzled when it returned "arm", when I don't have any "arm" anywhere in my Sidedata.tdf, etc.