GiyoMoon / steam-server-query

Module which implements the Master Server Query Protocol and Game Server Queries.
https://npmjs.com/package/steam-server-query
MIT License
26 stars 2 forks source link

Enable Goldsrc Servers support #5

Open LAxBANDA opened 1 year ago

LAxBANDA commented 1 year ago

This package only supports response for Source servers, I have made changes to make it compatible with Goldsrc servers (Counter Strike 1.6, Half-Life, Team Fortress Classic, etc)

Steam documentation taught me how to validate this. For more information: https://developer.valvesoftware.com/wiki/Server_queries

It must be discriminated in the _parseInfoBuffer function in position [4] of the buffer and determine if it is "m" or "I"

I have changes ready to propose, I hope you can give me access to contribute to the project

GiyoMoon commented 1 year ago

Hey! Many thanks for you efforts :) Feel free to open a pull request with the changes and I'll have a look if it fits to the package.

LAxBANDA commented 1 year ago

I made a pr witht changes. Thanks

LAxBANDA commented 1 year ago

Hi, can review the pull request