velocidad Posted October 22, 2016 Share Posted October 22, 2016 I was going to make a web for our server and want to add some status of the server: -max player -current players -patch version -it's currently online/offline --maybe some settings from the .ini Is there any project, web or something done about this? I've madesome searches but could not find anything. Link to comment Share on other sites More sharing options...
Inzane Posted October 22, 2016 Share Posted October 22, 2016 ark-servers.net does most of this for you and I think you can add a description (if you claim the server as your own) of the server Link to comment Share on other sites More sharing options...
velocidad Posted October 22, 2016 Author Share Posted October 22, 2016 Want to be on my own web, not what I'm looking for, but thx anyway. Link to comment Share on other sites More sharing options...
Grounded Posted October 23, 2016 Share Posted October 23, 2016 Hi, here is a PHP lib on github https://github.com/xPaw/PHP-Source-Query In it's raw form it just displays some data but if you grok PHP it can be used in a web page too. Example outpu of the RAW laibrary: http://grounded.trivial.nz/view.php Link to comment Share on other sites More sharing options...
Toni Posted October 24, 2016 Share Posted October 24, 2016 On 23.10.2016 at 1:00 AM, velocidad said: Want to be on my own web, not what I'm looking for, but thx anyway. Simply make a background php file which gets the data from ark-servers.net and stores it in your database (because ark-servers.net sometimes is really slow). So then you have your own Link to comment Share on other sites More sharing options...
velocidad Posted October 24, 2016 Author Share Posted October 24, 2016 15 hours ago, Grounded said: Hi, here is a PHP lib on github https://github.com/xPaw/PHP-Source-Query In it's raw form it just displays some data but if you grok PHP it can be used in a web page too. Example outpu of the RAW laibrary: http://grounded.trivial.nz/view.php Thx I'll look into this, I think it's what I'm looking for. 1 hour ago, Toni said: Simply make a background php file which gets the data from ark-servers.net and stores it in your database (because ark-servers.net sometimes is really slow). So then you have your own I don't know why but my server it's not listed there or in the Ark ingame server browser, so until I find why I can't use this option. Link to comment Share on other sites More sharing options...
Failoe Posted October 24, 2016 Share Posted October 24, 2016 What API is Ark-Servers.net using in order to do this? Because that seems like the more direct approach to getting this done. Their API is here https://ark-servers.net/help/api/ but it would be much nicer to know what they're doing to get this information. Link to comment Share on other sites More sharing options...
Grounded Posted October 25, 2016 Share Posted October 25, 2016 37 minutes ago, Failoe said: What API is Ark-Servers.net using in order to do this? Because that seems like the more direct approach to getting this done. Their API is here https://ark-servers.net/help/api/ but it would be much nicer to know what they're doing to get this information. Probably the steam one. https://developer.valvesoftware.com/wiki/Server_queries Link to comment Share on other sites More sharing options...
MadBrozzeR Posted October 25, 2016 Share Posted October 25, 2016 On 10/22/2016 at 9:44 PM, velocidad said: I was going to make a web for our server and want to add some status of the server:-it's currently online/offline ......... Is there any project, web or something done about this? I've madesome searches but could not find anything. I don't have this done yet, but also planned to do similar stuff. So my ideas: -max player - I guess it's static information, so just hardcode. -current players - can be gathered by RCON request I believe. -it's currently online/offline - I want to use node.js for web-server and spawn ARC server process. I hope there is a way to check if process is still up and running. Button "turn it on" may be implemented for visitors to start it, if server is down and I'am not accessible. Also statuses may include "update" (why not?). --maybe some settings from the .ini - first, why? Second, this data is not really changing a lot, so just hardcode as well. Link to comment Share on other sites More sharing options...
Grounded Posted October 25, 2016 Share Posted October 25, 2016 5 hours ago, MadBrozzeR said: I don't have this done yet, but also planned to do similar stuff. So my ideas: -max player - I guess it's static information, so just hardcode. -current players - can be gathered by RCON request I believe. -it's currently online/offline - I want to use node.js for web-server and spawn ARC server process. I hope there is a way to check if process is still up and running. Button "turn it on" may be implemented for visitors to start it, if server is down and I'am not accessible. Also statuses may include "update" (why not?). --maybe some settings from the .ini - first, why? Second, this data is not really changing a lot, so just hardcode as well. I just want to say don't hard code anything that is not a universal unchangeable constant like say PI. It starts out sounding like a good idea but it is the textbook definition of a bad idea. Link to comment Share on other sites More sharing options...
MadBrozzeR Posted October 26, 2016 Share Posted October 26, 2016 13 hours ago, Grounded said: I just want to say don't hard code anything that is not a universal unchangeable constant like say PI. It starts out sounding like a good idea but it is the textbook definition of a bad idea. Max player server limit sounds pretty constant to me (not a universal, but for the certain server, of course). Anyway, to avoid hardcode we may simply read and unparse .ini file. It's a most simple and straight forward way after hardcoding. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.