Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
404 stars 137 forks source link

Add Stationeers Protocol #659

Open Acer90 opened 2 years ago

Acer90 commented 2 years ago

Hello Devs,

Can you please include stationeers as a protocol. Data from the server can be obtained via the portal server: Output is already as JSON.

Link to Portal http://[40.82.200.175:8081/list](http://40.82.200.175:8081/list)

Acer

Erani0 commented 2 years ago

So currently I see no way to query the server unless you install a restfulapi on the server yourself. The data of the portal server helps you because this is a listing of the servers and not the own server.

I searched the web for api documentation but couldn't find anything. there seems to be only an api integration through a bepinex installation https://github.com/RoboPhred/stationeers-webapi

Since I can not create my own server because the pterodactyl egg does not work. I can also not create a server for the restful API.

Austinb commented 2 years ago

Since you are able to get to the server's information via a simple HTTP request (click on this link http://40.82.200.175:8081/list) there should be no issue adding this protocol. See https://github.com/Austinb/GameQ/blob/v3/src/GameQ/Protocols/Tshock.php for one example using the Http protocol class. There are a couple other protocols that use straight Http to make query requests.

Erani0 commented 2 years ago

That this works I know but this is apparently a kind of server list and not a direct query from the server