frostschutz / SourceLib

Python implementation of Valve Source Dedicated Server Query/RCON/Log protocols.
39 stars 20 forks source link

server tags corrupt #3

Closed nspitko closed 14 years ago

nspitko commented 14 years ago

Example: FuG's tf2 server: 72.9.144.108:27015 tag: p ?@ctf,increased_maxplayers

or another: \xFD\xAC\x08@\x01

My own servers work fine, but a vast majority of tf2 servers query this way.

frostschutz commented 14 years ago

import SourceQuery

x=SourceQuery.SourceQuery('72.9.144.108',27015)

repr(x.info())

'{\'steamid\': 90081518852861958, \'map\': \'ctf_convoy\', \'dedicated\': \'d\', \'gamedir\': \'tf\', \'secure\': 1, \'numbots\': 0, \'gamedesc\': \'Team Fortress\', \'hostname\': "Fug\'s 24/7 Convoy - HLStatsX - Join us at Fugworld.com", \'numplayers\': 22, \'maxplayers\': 32, \'version\': \'1.1.0.0\', \'appid\': 440, \'edf\': 177, \'passworded\': 0, \'tag\': \'ctf,increased_maxplayers\', \'os\': \'w\', \'port\': 27015}'

looks correct to me - using master

are you using the alpha1 tag? I think I put a bugfix in master recently.

otherwise if you're using master, do you have another example IP that reproduces the issue?

nspitko commented 14 years ago

Looks like I was using alpha 1. Updating fixes the issue. Thanks.

frostschutz commented 14 years ago

tagged the current master alpha2 so people don't get the alpha1 via github downloads accidentally. alpha2 is basically alpha1 with minor bugfixes.

The previous master, which was partially based on Twisted, is now hidden in its own branch. I won't be getting back to Twisted, at least not for Source / UDP based protocols. It's a bloat and does not offer any comfort whatsoever.

I found a new toy though: http://www.gevent.org/ - if SourceLib ever goes from alpha to beta, that's what I'll likely use...