Browse Source

Fix GoldSrc support

async
Gabriel Huber 5 years ago
parent
commit
7daa948fe3
  1. 2
      README.md
  2. 6
      a2s/info.py

2
README.md

@ -68,7 +68,7 @@ game_id=440, ping=0.253798684978392)
## Tested Games
Half-Life 2, Half-Life, Team Fortress 2, Counter-Strike: Global Offensive, ARK: Survival Evolved, Rust
Half-Life 2, Half-Life, Team Fortress 2, Counter-Strike: Global Offensive, Counter-Strike 1.6, ARK: Survival Evolved, Rust
## License

6
a2s/info.py

@ -151,7 +151,7 @@ class GoldSrcInfo(metaclass=DataclsMeta):
vac_enabled: bool
"""Number of bots on the server"""
bots_count: int
bot_count: int
# Optional:
"""URL to the mod website"""
@ -233,8 +233,8 @@ def parse_goldsrc(reader):
resp.mod_website = reader.read_cstring()
resp.mod_download = reader.read_cstring()
reader.read(1) # Skip a NULL byte
resp.mod_version = reader.read_uint()
resp.mod_size = reader.read_uint()
resp.mod_version = reader.read_uint32()
resp.mod_size = reader.read_uint32()
resp.multiplayer_only = reader.read_bool()
resp.uses_custom_dll = reader.read_bool()

Loading…
Cancel
Save