It's hard to read for a startBrianetta wrote:So how's his one? (-:

Moderator: OpenTTD Developers
Really? Oh, well. I might play with it later.Captain Kirk wrote:The background makes it hard to read :/
Code: Select all
[url="http://where.to.go/when/clicked/"][img]http://ppcis.org/standard/banner/81.204.154.118-3979.png[/img][/url]
No, it doesn't. To protect my server from abuse, I sanitise all input when I write CGI programs. It was simpler to write an IP address validator than a hostname validator. Bearing in mind that I publish my source code I have to make sure that there are no obvious security vulnerabilities.Connum wrote:... doesn't support no-ip.com.
The source is here. As for the "actual date," this is the actual date that was in the game at the moment your browser loaded the image.Connum wrote:afaik, Brianetta gets the Serverinfo via a TCL-Script. He'll give it to you if you ask him nicely, I'm sure! ;)
What do you mean with "actual date"? You mean that it's updated regularely in opposite to the serverlist which is updated in an interval of about 5 minutes I think?
Not entirely true; there is also an updater process that queries every game server every 5 minutes to get up-to-date information, whereas the game server only advertises itself every 15 minutes.Grolsch wrote:Connum, the date on the server list is the date my server sends to the master server when it's advertising itself, once every x minutes.
No, you can write a script/application yourself to fetch that information. Furthermore there are implementations in PHP and C++, see /website/includes/openttd.inc.php or /masterserver/udp.cpp in the SVN repository.Grolsch wrote:s that the only way to extract the current date and player amount from a server?
That's because it isn't particularly helpful to those who want to derrive their own script. The SVN website scripts query the server periodically, and populate a database. The web page that displays the information gets it from that database. Important for reducing load, but not good for showing somebody how it actually works.Connum wrote:Hmm i tried to find out how do get the info via php with the stuff found on SVN, but I couldn't find anything helpful! =/
Did u ever add this to the AutoPilot Script ?Brianetta wrote: I wrote the script in Tcl because I wanted to be able to build it into autopilot at some point. autopilot is written in Tcl. You could write it in any language with UDP support.
Users browsing this forum: No registered users and 6 guests