Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial class for Stationeers protocol for #659 with tests. #660

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

Austinb
Copy link
Owner

@Austinb Austinb commented Aug 30, 2022

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

@Austinb Austinb added Feature Request v3 Enhancement This request does add something to the project. labels Aug 30, 2022
@Austinb Austinb added this to the v3.1.1 milestone Aug 30, 2022
@Austinb
Copy link
Owner Author

Austinb commented Aug 30, 2022

For issue #659

@coveralls
Copy link

coveralls commented Aug 30, 2022

Coverage Status

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

@scrutinizer-notifier
Copy link

The inspection completed: 3 updated code elements

@Erani0
Copy link
Contributor

Erani0 commented Aug 31, 2022

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.

@Austinb
Copy link
Owner Author

Austinb commented Feb 25, 2023

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.

@Erani0
Copy link
Contributor

Erani0 commented Mar 19, 2023

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":[]}}

@Austinb
Copy link
Owner Author

Austinb commented Mar 23, 2023

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.

@Erani0
Copy link
Contributor

Erani0 commented Mar 24, 2023

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

@Austinb
Copy link
Owner Author

Austinb commented Mar 28, 2023

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 Austinb linked an issue Mar 28, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This request does add something to the project. Feature Request v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Stationeers Protocol
4 participants