It's cached for the list and quasi-realtime for the individual servers, IIRC. So at the last time it refreshed its cache, there must have been 16 players.
Look at the bottom of the page and it will give you the last time and date it was updated. It auto updates the whole page every 2 hours, the popup is real time info. You can also use the refresh all button in the top right, just know that it takes approx 30 seconds for it to query all the servers and display it on the page
Both the T1 and T2 web based master servers are down. My web host setup a firewall on the box and is blocking all ports that are not common. Until I figure out what ports need to be opened for the queries the pages will be temporarily down.
My web host is moving my hosting plan to a new server. The new server will give me direct access to the firewall to open any and all ports that I require. The web based master server query should be operational by tomorrow, fingers crossed!
Yea. Though it seems like there was a page on MaxOGC that was agnostic you could just give it an IP and get info back. Unless I am misunderstanding what the maxogc page did. Essentially I am looking for a way with PHP to query my T2 server for info on it so I can display on my website.
I think you'd find that maxogc used an old php4/5 library called GameQ, which I remember looking over briefly when I put together an earlier version of the current master list around 20 years ago. I personally found it a little iffy at the time, and I'm not sure it still works on modern php, but it might... Someone might've forked it and maintained it.
Easiest thing to do though is just to pull the information you want out of the json output of the list here: https://www.tribesnext.com/list.json
This page is heavily cached, should generally be delivered pretty efficiently, and provides CORS headers, so you can include it directly in front-end code, but you could also just query it on the server side if you prefer. Using this avoids a bit of implementation work and the potential mistakes that could be made, but it is pretty much limited to what you see, since that output was originally intended for one page; as such, there's no json data of filtered list results, and certain data like colour code characters is stripped.
Comments
Sorry for the inconvenience!
Necroing this thread in the hopes of recreating the functionality. Did anyone ever happen to get the code before it went offline?
You mean for this?
https://tribesnext.com/#servers
Yea. Though it seems like there was a page on MaxOGC that was agnostic you could just give it an IP and get info back. Unless I am misunderstanding what the maxogc page did. Essentially I am looking for a way with PHP to query my T2 server for info on it so I can display on my website.
I think you'd find that maxogc used an old php4/5 library called GameQ, which I remember looking over briefly when I put together an earlier version of the current master list around 20 years ago. I personally found it a little iffy at the time, and I'm not sure it still works on modern php, but it might... Someone might've forked it and maintained it.
Easiest thing to do though is just to pull the information you want out of the json output of the list here: https://www.tribesnext.com/list.json
This page is heavily cached, should generally be delivered pretty efficiently, and provides CORS headers, so you can include it directly in front-end code, but you could also just query it on the server side if you prefer. Using this avoids a bit of implementation work and the potential mistakes that could be made, but it is pretty much limited to what you see, since that output was originally intended for one page; as such, there's no json data of filtered list results, and certain data like colour code characters is stripped.