never mind, KDR_11k says
Spring.GetLocalTeamID()
because it's a widget.
but unitTeam is defined anyway because it's in a call-in.
Search found 1207 matches
- 07 Sep 2008, 13:59
- Forum: Lua Scripts
- Topic: Bad team Id / your team id
- Replies: 1
- Views: 527
- 07 Sep 2008, 13:54
- Forum: Lua Scripts
- Topic: Bad team Id / your team id
- Replies: 1
- Views: 527
Bad team Id / your team id
why does this give the error "bad team id"?
local unitsOfSameType = Spring.GetTeamUnitsByDefs(Spring.MY_UNITS, unitDefID)
the wiki says Spring.MY_UNITS means your team
how do i get my team id?
local unitsOfSameType = Spring.GetTeamUnitsByDefs(Spring.MY_UNITS, unitDefID)
the wiki says Spring.MY_UNITS means your team
how do i get my team id?
- 30 Jul 2008, 11:23
- Forum: Help & Bugs
- Topic: [FIXED] 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
- Replies: 3
- Views: 747
Re: 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
I've just discovered this is fixed in SVN.
Code: Select all
int iy = (int) (streflop::asin(vec.y) * (SHORTINT_MAXVALUE / PI));
- 30 Jul 2008, 10:22
- Forum: Help & Bugs
- Topic: [FIXED] 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
- Replies: 3
- Views: 747
Re: 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
I believe GCC 4.2/4.3 is enforcing the rules of C99 or it's a namespace thing (rather than a bug in the compiler). It is even more complicated because asin is also being overloaded by the streflop library. I thought it would be simple enough to fix. I changed rts/System/myMath:89 int iy = (int) (asi...
- 28 Jul 2008, 19:15
- Forum: AI
- Topic: Global AI Interface
- Replies: 213
- Views: 50257
Re: Global AI Interface
Thanks. I wish to finish my SupCom projects before getting too deep into the Spring internals. Once I have time though I am happy to get involved in engine development. For now though I simply propose the list of functions above as requested in the topic title and hope others can make headway in the...
- 28 Jul 2008, 18:53
- Forum: AI
- Topic: Global AI Interface
- Replies: 213
- Views: 50257
Re: Global AI Interface
I know I'm coming to this discussion late, and that it's already been taken over by a 5 page rant on the merits of disclosure but since I intend to begin work on a Spring AI later this year I would like to see a useable API in place so I can work mostly in Lua. I am currently working on an AI framew...
- 28 Jul 2008, 07:04
- Forum: Help & Bugs
- Topic: [FIXED] 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
- Replies: 3
- Views: 747
[FIXED] 0.76_p1-r2 compile error on Gentoo (ambiguous asin)
g++ -o build/rts/Lua/LuaSyncedCtrl.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=387 -pthread -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=...