Posts: 175 Joined: Sun Dec 12 2010, 09:16AM Registered Member #6457
so is this all the extra info for cs1.6 as compared to cs zero? any way I am not much of a coder when it comes to protocols and such and no I don't have error reporting turned on. Any how it is closer than it was so I stand with you ans wait for the guru to solve it completely. Thank you for the code fix wussie. cheers
This seems to allow online AND offline servers to be displayed correctly. I hope I got it right this time, thanks Myma for the bug report. The extra info seems a bit short and I'm not sure it's complete, but I guess it's better than nothing.
Posts: 160 Joined: Sun Mar 22 2009, 06:53AM Registered Member #4938
I think I have a more permanent solution now for the given issue. This time it allows some servers to display full extra info together with player list. Other servers will only display a few extra info with the player list. I came to the conclusion that the difference between full info and less info is due to some server setting and LGSL can't do anything to change the amount of info retrieved from the server, it's up to the server admin. There are no more issues with live servers displayed as offline as far as I know, please let me know if you find any more bugs.
This is how you can implement the bugfix, starting from the original, unmodified lgsl_protocol.php: under "function lgsl_query_05(...." find
Basically, my modification will request the extra info BEFORE the player list, because servers seem not to like it the other way around. This fix affects all the HL/HL2/Source based games, including all versions of CS, MW3, NS2 and has been tested by me with all of them. Feel free to do your own testing.