Paul, Make sure you have added a member variable for your new hud element to CHud and call Init() in CHud::Init() and VidInit() in CHud:VidInit();
If that is done, make sure that it is not your drawing code. Comment out anything that might turn it off (or whatever you have that turns it on and then turn it on in VidInit(). Does it display now? Then it is your communication code that is broken. Put a breakpoint in Init() and VidInit(). Are they getting called? Walk through VidInit() and make sure the sprite is getting loaded (just because it works elsewhere, doesn't mean you don't have an invisible typo here ;) ) If it is getting loaded, put a breakpoint in the Draw and walk through it. Are the x and y coords right? (might be drawn off screen) Are you getting to the actual drawing code? Is the size of your rectangle that you pass into the draw valid? Is the sprite NULL? A quick bout of debugging should cure your ills. Good luck. Rob 'Commando' Prouse http://www.tourofdutymod.com At 02:24 AM 22/10/2002 -0700, you wrote:
Hey how's it going again :) it's annoying me. Anyways, I've recently tried to establish a new hud element, In fact, I copy and pasted the health hud and took out everything I didn't need. I kept m_iFlags and all virtual members, and inherited from basehud *like I said i just copy and pasted health's class and functions and renamed and removed* Now, For Some insane reason, The hud won't draw what I tell it to display(If it's even calling my draw funciton at all), I addhudelem and flag m_iFlags active(on init, not when a message is recieved like the healthhud) and my draw init and vidinit functions are intact (I also called init and vidinit in chud::init) My reset function is blank because I have nothing to reset atm. I look through the code and all the hud does is cycle through a linked list untill it hit's a null pointer and call's the draw function untill it does. I recently went on an inovation, and had the server check if the server had updated the hud piece and if it didn't send an update with dummy values, and then had m_iFlags flag active whenever it recieved a message, This did not work as well....I'm very ....concerned, I've checked everywhere And I just can't find hte problem I know it's not the sprite, because I had my health sprite load it instead of the normal hud health sprite instead just to make sure..... Anyways, any help would be greatly appreciated as is its 2:30 am and I'm plum stuck. THanks for reading my message ahead of time. Paul Lead Coder of Sr(http://www.sr.flagrun.net)
Rob Prouse (Commando) Tour of Duty Mod http://www.tourofdutymod.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

