GameQ icon indicating copy to clipboard operation
GameQ copied to clipboard

Initial class for Stationeers protocol for #659 with tests.

Open Austinb opened this issue 3 years ago • 9 comments

Initial stab at the protocol class for Stationeers with simple tests. Please provide feedback.

Austinb avatar Aug 30 '22 22:08 Austinb

For issue #659

Austinb avatar Aug 30 '22 22:08 Austinb

Coverage Status

Coverage decreased (-0.5%) to 88.015% when pulling f22c42e901bbbb88ca52d9d7a564a8579aac5cfb on features/Stationeers into 44e7906661ae90c68d77005f42cbbf151caea478 on v3.

coveralls avatar Aug 30 '22 22:08 coveralls

The inspection completed: 3 updated code elements

scrutinizer-notifier avatar Aug 30 '22 22:08 scrutinizer-notifier

Currently you query the list to find the servers but if someone doesn't show his server in the list he will be shown as offline so it's really more advisable to wait for an official support or to enable this via the linked api.

Erani0 avatar Aug 31 '22 00:08 Erani0

Well without any information from the game developer it is either this method or no method. It doesn't matter to me but this PR should either be merged or closed to keep things tidy.

Austinb avatar Feb 25 '23 23:02 Austinb

Please Check its not working! {"35.134.96.237:27016":{"gq_address":"40.82.200.175","gq_dedicated":null,"gq_hostname":null,"gq_joinlink":"","gq_mapname":null,"gq_maxplayers":null,"gq_name":"Stationeers","gq_numplayers":null,"gq_online":false,"gq_password":null,"gq_port_client":27016,"gq_port_query":8081,"gq_protocol":"stationeers","gq_transport":"tcp","gq_type":"stationeers","players":[],"teams":[]}}

Erani0 avatar Mar 19 '23 15:03 Erani0

Please Check its not working! {"35.134.96.237:27016":{"gq_address":"40.82.200.175","gq_dedicated":null,"gq_hostname":null,"gq_joinlink":"","gq_mapname":null,"gq_maxplayers":null,"gq_name":"Stationeers","gq_numplayers":null,"gq_online":false,"gq_password":null,"gq_port_client":27016,"gq_port_query":8081,"gq_protocol":"stationeers","gq_transport":"tcp","gq_type":"stationeers","players":[],"teams":[]}}

That server is not listed in the hosting list at http://40.82.200.175:8081/list. I am not sure how you add it to that list but this list is the only known way for getting information for this type of server.

Austinb avatar Mar 23 '23 17:03 Austinb

5 days later I can not guarantee that the server is still in the list. i tested several servers and none worked

Erani0 avatar Mar 24 '23 08:03 Erani0

Using the following code it still does not show the server information for your server.

$gq = \GameQ\GameQ::factory();
$gq->addServer([
    'type' => 'source',
    'host' => '35.134.96.237:27016',
]);
$results = $gq->process();
print_r($results);

According to the post at https://stationeers.fandom.com/wiki/Dedicated_server there is a section for -updateport which is supposed to be the query port for the server. See if you can make a simple query using the parent source protocol work. If so we can move towards that. This is assuming the previous wiki link is accurate with its information.

Austinb avatar Mar 28 '23 14:03 Austinb