I first encountered this bug a long time ago in Forsaken, and I fixed it.
Forsaken compiles fine in VS2003 and VS2005 without this problem.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick
Sent: Saturday, June 30, 2007 3:05 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Team colors are screwey

I've asked about this bug also. Search hlcoders for "Scoreboard bug?".
I do not remember having this bug with vs2003. It is a pretty strange
bug, I came to the conclusion this was either a valve bug, or vs2005
bug. I hope someone can investigate this bug, but I doubt anyone will.

Good luck in solving the bug. If you find a fix please email it to me,
I would be interested in fixing this bug as well.

On 6/29/07, Ben Everett <[EMAIL PROTECTED]> wrote:
> Sounds like GetTeam is returning a bad value, or your order for the teams
is
> wrong. In shareddefs.h, what does the TEAM_ declaration order look like?
> Should look something like:
>
> #define TEAM_INVALID                    -1
> #define TEAM_UNASSIGNED                 0
> #define TEAM_GOVERNORS                  1
> #define TEAM_CIVILIANS                  2
> #define TEAM_RELIGIOUS                  3
> #define TEAM_SPECTATOR                  4
>
> Also, how are you disabling teams? My suggestion would be to set a
> breakpoint at that specific line when you notice it is messing up, and see
> what could be going wrong. My money is still on GetTeam.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Baer
> Sent: Friday, June 29, 2007 5:18 AM
> To: hlcoders@list.valvesoftware.com
> Subject: RE: [hlcoders] Team colors are screwey
>
> --
> [ Picked text/plain from multipart/alternative ]
> I am using:
>
>   m_pPlayerList->SetSectionFgColor(sectionID, g_PR->GetTeamColor(i));
>   at the bottom of UpdateTeamInfo.
>   This is what I am using in UpdatePlayerInfo:
>
>   // set the row color based on the players team
>   m_pPlayerList->SetItemFgColor( itemID, g_PR->GetTeamColor(
g_PR->GetTeam(
> i ) ) );
>   In c_playerresource.cpp I am using:
>
>   #ifndef HL2MP
>   m_Colors[TEAM_BRITAIN] = COLOR_BLUE;
>   m_Colors[TEAM_FRANCE] = COLOR_RED;
>   m_Colors[TEAM_GERMANY] = COLOR_YELLOW;
>   m_Colors[TEAM_SPECTATOR] = COLOR_WHITE;
>   #endif
>
>   and the colors are defined in shareddefs.h
>
>   Baer
>
>   From: "Ben Everett" <[EMAIL PROTECTED]>
> To: <hlcoders@list.valvesoftware.com>
> Subject: RE: [hlcoders] Team colors are screwey
> Date: Thu, 28 Jun 2007 20:25:46 -0500
> Reply-To: hlcoders@list.valvesoftware.com
>
> What are you using to obtain team colors?
>
>
>
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> __________ NOD32 2364 (20070629) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


__________ NOD32 2365 (20070630) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to