View Single Post
  #2   Spotlight this post!  
Unread 14-02-2009, 09:42
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Re: GetAlliance value

I'm not sure what it returns, but I know it won't let you do it. You get an error in the debug console. I just wrote code that used the GetAlliance(), commented it out, then wrote code that sets the alliance manually. For release, just switch back to the GetAlliance() code.

EDIT: I looked through the source code and it turns out that GetAlliance() returns 'kInvalid' when you aren't hooked up to FMS. So you're still going to need a set of release code and debug code.

Last edited by Sentient : 14-02-2009 at 09:47.
Reply With Quote