RE: [hlcoders] Team colors are screwey
What are you using to obtain team colors? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baer Sent: Thursday, June 28, 2007 5:42 PM To: hlcoders@list.valvesoftware.com Subject: [hlcoders] Team colors are screwey -- [ Picked text/plain from multipart/alternative ] Let me run down the problem I am having. I have three regular teams plus spectator and unassigned, so that would make 5 teams in our mod. On our maps we have some with 3 teams and some with 2 teams. I have everything working fine to show the various menus and such. The problem I am having is when I run a test map with three teams all the team colors are fine in the scoreboard. When I start a map with 2 teams, team2 and team4 team 2 color is fine, team4 color is the default orange in the scoreboard. When I start another map with team3 and team4 team 3 is default orange and team4 is team 3 color in the scoreboard. Then when I test team2 and team3 team2 is fine and team3 is white, the color for spectators. Something is changing my team colors and I need to figure out how to keep the colors consistent throughout. To top all this off, the players name is the right color for their corresponding team. I was hoping someone had some kind of idea as to what I can do to figure a solution to this. Thanks Baer ( Lead Coder for Flanders Fields) - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders __ NOD32 2362 (20070628) 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
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: 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
RE: [hlcoders] Team colors are screwey
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: 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
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: 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
RE: [hlcoders] Team colors are screwey
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: > 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