Giter Club home page Giter Club logo

Comments (5)

Austinb avatar Austinb commented on August 31, 2024

They all work because they are all based off of source. The idea being source is used as the primary class to make all the calls with but in some rare cases even source based games do not have the same behavior. For example cscz behaves differently for rules. But overall this is expected behavior for different games that use the same engine and/or query protocols. The main reason for the different classes (and thus names) is to allow different defaults such as game name, port, etc... This also makes the server add calls uniform when doing different engines in the same request (i.e. quake based and steam based together).

$data['gamename'] would be done by using type and using an array of keys with your own values or you can use the long name from the class. This should be $data['gq_type'] but this is defined in the actual protocol class file.

According to https://developer.valvesoftware.com/wiki/Server_queries#A2S_PLAYER this is the only information available from the player query. I am sure there are addons for specific games that allow you to get the steamid.

from gameq.

Austinb avatar Austinb commented on August 31, 2024

Just one final note, I believe the only way to get the steamid is to use the RCON protocol which you have to have the rcon password to the server. GameQ does not do any kind of RCON for any server type.

https://developer.valvesoftware.com/wiki/Source_RCON_Protocol

from gameq.

alissonlinneker avatar alissonlinneker commented on August 31, 2024

You're confusing what I'm talking about.
rsrs

How to get "Game Description" and "AppID"?

Adding:

$result->add('Game Description', $buf->readString()); // A friendly string name for the game type, eg: "Counter Strike: Source"
$result->add('AppID',$buf->readInt8()); // Steam Application ID. Example for Counter-Strike 1.6: 10

in gameq/source.php does not work.

from gameq.

Austinb avatar Austinb commented on August 31, 2024

App ID is steamappid so $data['steamappid']. This is assuming it has an id.

game_descr is the game description returned by the info response.

There are some extra fields that are missing from the code that can be added in when I have time: https://developer.valvesoftware.com/wiki/Server_Queries#Source_servers_2

from gameq.

Austinb avatar Austinb commented on August 31, 2024

I would recommend doing one server you want and print_r the results so you can see all the of the keys available in the response. The documentation is lacking in this aspect mainly of the vast differences between different query protocols.

from gameq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.