andrew help possible server bug

Snakes
06-15-2004, 01:50 AM
EDIT:::definitely IS a last hope issue (client side) because i went back to my old exe and this does NOT happen...

Today i noticed that anywhere i play, stathud wasnt showing observers and i also notices my teamhud displaying incorrect observer #'s (showing 0 when there are actually observers). I hadnt touched any of my teamhud code that couldve caused this? I tracked it down to how tribes stores variables i guess. When you access something like $team::count[-1] = 0; it actually stores that like $team::count-1.000000 = 0; but if you do $team::count["-1"] = 0; it actually stores it "correctly" as $team::count-1 = 0;

I was always aware of the fact that tribes did that to arrays, i think andrew had actually pointed that out to me a long time ago. What i noticed though was the fact that an eventTeamChange would pass the floating point -1.000000 for obs but a call to client::getteam(%id) for that same player would return just -1 causing two $team::count variables to be created and confusing the script generating all these little bugs.

My question is, i dont know if this is new or related to the latest zadmin mods or something? I noticed in your pack that you dont display obs counts so you might not have noticed it...

Can anyone confirm that they cannot see players in obs in stathud?

JohnMcClane
06-15-2004, 03:34 AM
owned

Plasmatic
06-15-2004, 05:19 AM
floor(%var);

Snakes
06-15-2004, 10:12 AM
thats fine plasmatic, but something has changed...

[meph]DooM!
06-15-2004, 12:58 PM
oops, i was messing around with number formatting and forgot to remove it >:|

http://www.lasthope.us/114c_fix.zip

Snakes
06-15-2004, 01:03 PM
yay thanks

[meph]DooM!
06-15-2004, 01:05 PM
oh wait.. i hope the servers dont do this too
id better check that

[meph]DooM!
06-15-2004, 01:09 PM
hmmm if they do i guess it doesnt seem to reflect on anything
im a retard

Flipster
06-15-2004, 02:01 PM
andrew y doesnt the old last hope servers recognize the new last hope users cause i get kicked from old last hope servers ;/ and i dont wanna make 2 tribes hehe

Granite Gargoyle
06-15-2004, 08:26 PM
Put in the new last hope and the fix, now happy ski doesn't work. I run in circles to the left.