>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();
Yup done that.
>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.
Nope still doesn't display, and it can't be the communication code because
none of that
is involved with activating/displaying the hud anymore because i moved it to
vidinit
>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?
I can't seem to get it to run in the debugger
I set my debugging executable as hl.exe in my sierra/halflife folder
but It has no debugging symbols and when i try to go into mod viewer and
load
up my mod, it only finds 3 mods that I have to click refresh list to find
and wont even
let me activate those. I even tried specifying my program arguments to load
my mod directly
and It loads up the splash and all, but when you try to create a game, It
simply tries to create
a halflife game instead. I dunno I really believe theirs something buggy
with this sucker because,
I even through in a real quick failing assert in my new hud's init that
would guarantee to fail,
and it Didn't ..... I mean, It's not even calling the function.
And I dunno about anyone else but,
--hud.cpp--
..
m_flTime = 1.0;
m_Ammo.Init();
m_Health.Init();
m_Scouter.Init(); //<---My new hud piece
..
--End of hud.cpp--
It should at least call my init function, (it does call init, vidinit, and
display for my health hud just not my scouter)
Now, I'm using the new sdk 2.3, and I already heard their was one bug in it,
would this be another possible one ?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders