airmash-refugees / airmash-games

Game server data used to generate https://data.airmash.online/games and https://starma.sh/games
2 stars 5 forks source link

Add new US ctf game #1

Closed x-airmash closed 4 years ago

x-airmash commented 4 years ago

The US has no good CTF server yet, so I created one at https://www.airmash.xyz/ctf1 with a few bots. Can this server be added to the US CTF list?

congratulatio commented 4 years ago

Yes, that is no problem. Before I make the change, please could you change your HTTP endpoint to return the number of players, so it can be displayed in the game list?

For comparison here is a response from the EU CTF server:

curl -D - https://lags.win/ctf
HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Sat, 09 Nov 2019 17:39:14 GMT
Content-Length: 14
Connection: keep-alive
uWebSockets: v0.16

{"players":20}

This is used by the makegamesplayers.py script on the backend to generate the games data at https://airmash.online/games.

x-airmash commented 4 years ago

yes, I would, but how? Does the server have an endpoint for this?

x-airmash commented 4 years ago

never mind, i found it already. I'll fix it.

x-airmash commented 4 years ago

It works now:

$ curl -D - https://www.airmash.xyz/ctf1
HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Sat, 09 Nov 2019 20:06:04 GMT
Content-Length: 14
Connection: keep-alive
uWebSockets: v0.16

{"players":21}
congratulatio commented 4 years ago

Thanks, I have added your server as US CTF #2 in https://github.com/airmash-refugees/airmash-backend/commit/f18dbb16f6d1520f66e5d86508e80076a4dfbe06