Your OpenTTD Server as signatur eks.

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1794
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Brianetta wrote:So how's his one? (-:
It's hard to read for a start :-)
He's like, some kind of OpenTTD developer.
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

It is? It's the same size text as this forum on my browser. Any suggestions?
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7428
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post by Redirect Left »

The background makes it hard to read :/
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

Captain Kirk wrote:The background makes it hard to read :/
Really? Oh, well. I might play with it later.

Edit:
OK, I've made the colours match the forum (as best I can) and I've increased the compression level to maximum. The background image is still there, though - it is my image, after all.

If anybody wants the source code, feel free to ask. Like my other script, it requires Tcl and the TclUDP library (which is not normally included with Tcl by default). Unlike my other script, it requires a working copy of ImageMagick installed on the server.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Connum
Engineer
Engineer
Posts: 127
Joined: 25 Dec 2006 17:05

Post by Connum »

Thank you Brianette, I'll use it! =)
If others don't like the backgroundimage you could add a function to specify an own image via query... But as you said, it's your image and we should be glad that you let us use it! :D

\\edit: Oh, I just recognized that I can't use it, because I'd have to update the URL every time I get a new IP... doesn't support no-ip.com. But nice work nevertheless!
English is not my native language, so please excuse me if I sometimes might appear a bit harsh or if I make a spelling or grammar mistake!
maartena
Route Supervisor
Route Supervisor
Posts: 470
Joined: 11 Jul 2003 04:53
Location: California, U.S.A.

Post by maartena »

Thanks! I will use it! :)
Guess what! I got a fever! And the only prescription...... is MORE COWBELL!
YOYO
Engineer
Engineer
Posts: 31
Joined: 16 Sep 2006 20:48

Post by YOYO »

Great work :)
ty i will use it now :)

Edit:
Hmm i put it in and but all i see are the links. :?
What am i doing wrong :)
Image
Image
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

You are missing the img tags

Code: Select all

[url="http://where.to.go/when/clicked/"][img]http://ppcis.org/standard/banner/81.204.154.118-3979.png[/img][/url]
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
YOYO
Engineer
Engineer
Posts: 31
Joined: 16 Sep 2006 20:48

Post by YOYO »

Thanks brainetta :)
Image
Image
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

A small change - the script now sends cache headers telling clients that they can cache the image for two minutes. This was due to the amount of work my server was doing, generating images for every forum page hit with one of these in a signature!
Connum wrote:... doesn't support no-ip.com.
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.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Connum
Engineer
Engineer
Posts: 127
Joined: 25 Dec 2006 17:05

Post by Connum »

I was just about to code something that will generate a url(-redirect) to Brianetta's png-Sig, but I think there is a problem with his server, because all files in the signatures say "connection timed out"! Just wanted to report that and hope he'll get it fixed so I can continue working on my project.

\\edit:
aww, and in exactly this moment the problem is gone...
I will post a link to my project once it's done...

\\edit2:
Okay, so here it is, check it out:
http://tvszene.tv.funpic.de/OTTD/usersigs/

You put in a DynDNS/No-IP or whatever dynamix redirect-address, and you will get back a URL to put into your signature!

Have fun!
English is not my native language, so please excuse me if I sometimes might appear a bit harsh or if I make a spelling or grammar mistake!
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

Not bad, except for the massive javascripted pop-over ringtones ad that replaced all your content.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Grolsch
Transport Coordinator
Transport Coordinator
Posts: 283
Joined: 08 May 2004 07:48
Location: Alkmaar, The Netherlands

Post by Grolsch »

Connum, how do I get a site like yours when I click on your image? The image says click on it for rules and newgrfs, but I don't have a site to show after clicking on it... I like your site however, with rules and actual settings.

BTW: great work!

edit: I see you get your settings from you config file and your gameyear and players info from the serverlist. However, Brianetta's picture is displaying actual date, not the one from the server. Brianetta, how do you obtain the actual date from a server?
Beer equals power
Connum
Engineer
Engineer
Posts: 127
Joined: 25 Dec 2006 17:05

Post by Connum »

oh I didn't know that funpic is displaying ads now... I'm using Adblock...
Is it really that annoying? You only need that page for generating and you can close the ad window, it will not affect the display of the images...
But I think I'll host the script on my paid server!!

Yes, the info comes from the config file... If there is any interest in it, I can make the source of the php-page available! Let me know! ;)

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?

If you find a method to query the server via php (I don't want to install TCL just for that), please let me know!

\\edit:
oh, and one thing for my infopage: I don't display the GRF settings because I'm not using any GRF's but it will take me only some minutes to implement that! Btw all variables from the configfile are available as variables, only rcon-password will be replaced for security reasons...
English is not my native language, so please excuse me if I sometimes might appear a bit harsh or if I make a spelling or grammar mistake!
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

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?
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.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Grolsch
Transport Coordinator
Transport Coordinator
Posts: 283
Joined: 08 May 2004 07:48
Location: Alkmaar, The Netherlands

Post by Grolsch »

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. Brianetta's picture gets the date from my server, so if I refresh the picture 2 seconds after I loaded it, the date will have changed.

I would really appreciate it if you give me the source code from your homepage to get the settings from the config file.

Brianetta, I have no experience with TCL. Is that the only way to extract the current date and player amount from a server? I will google a bit for TCL and see what it is, so you don't have to explain how it works (yet ;) ) but if there are other ways, I hear them gladly :)
Beer equals power
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

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.
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:s that the only way to extract the current date and player amount from a server?
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.
Connum
Engineer
Engineer
Posts: 127
Joined: 25 Dec 2006 17:05

Post by Connum »

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! =/
English is not my native language, so please excuse me if I sometimes might appear a bit harsh or if I make a spelling or grammar mistake!
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

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! =/
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.

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.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
User avatar
DaGeek
Engineer
Engineer
Posts: 24
Joined: 01 Mar 2006 16:49
Skype: gspurgeon
Location: London, UK
Contact:

Post by DaGeek »

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.
Did u ever add this to the AutoPilot Script ?

I have made some major Changes to the AutoPilot Script after our last Forum
conversation, and would love to know if you managed to get this to work as well.
If not I will put a bit of time into it and make it work.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 4 guests