Comments (5)
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.
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.
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.
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.
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)
- Response from Rust server HOT 2
- Empyrion Galactic Survival doesnt show playernames HOT 2
- Nova-Life support missing HOT 3
- New Rust query port HOT 2
- Counter-Strike 2 support HOT 6
- Cfx/Gta5m does not work if players are on HOT 1
- The problem of the Rust game HOT 2
- Yet another Discord request.
- CFX/FiveM Issue
- Wreckfest
- A2S_INFO with Source Protocol HOT 1
- Terraria: Undefined propery when server does not return player list
- Unknown format specifier "?"
- $protected normalize in Protocol Quake3 for Call of Duty
- Running into a socket creation problem HOT 1
- Cs2 HOT 3
- Intermittent false negatives
- Cryofall support
- Ark Survival Ascended support missing
- Problem coming up with a hostname HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gameq.