ServerInformation Uptime fails.

Topics: Admin Tool, Developers
Aug 5, 2012 at 12:52 PM

Hi Timiz0r :)

Line 360 in ServerInformation.cs (int sec = GetServerInfo2(5).ToInt32();) ... fails since GetServerInfo2(5) returns "true".

Any idea why it fails? Maybe Dice made some changes to the serverinfo command (result).



Aug 5, 2012 at 2:07 PM

I commented out the "no team scores bug, return modified packet" section and everything seams to work fine. Maybe dice fixed it, so you should remove the section?


Aug 5, 2012 at 4:04 PM

It turns out that p.Words[8].Length > 0 should have been p.Words[8].Length == 0, so I'm not quite sure how it ever worked in the first place. I'd have to guess that the bug was happening consistently back then so it was never noticed I coded the fix incorrectly. It's all fixed now, though.

Aug 5, 2012 at 7:49 PM

Cool thanks :) Well I never had a crash on this error before - but your fix fixed it ... thanks :)