Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Hi It's not really a tutorial, but I've made a pack to be able to get a dynamic and graphical motd I've modified my scripts so you have a config.php file, but all the text is still hardcoded. It will not be difficult to modify it though. You'll find the doc (in french and english) and a tar.gz with all the needed files on my server's blog: http://www.coldfire.info/?p=64 Feel free to ask for help replying to this thread. The motd as provided has about, rules and contact blocks, as well as a mapcycle bloc, displaying in color current map and nextmap. If the current/nextmap is not in the mapcycle, then the map name is written in the legend. And the code has comments, so it should not be difficult to modify and adapt to your needs if you have basic php-gd knowledge. Cold On Wed, Jun 25, 2008 at 9:22 PM, Patrick Shelley [EMAIL PROTECTED] wrote: A tutorial on using php for bringing in this dynamic info into the MOTD would be very grateful indeed. On 6/25/08, Coldorak [EMAIL PROTECTED] wrote: Yep, the reason is I want to use the font TF2 secondary. With the new headers in the image and a change to motd.html (changed to php with a always changing link to the image), no more cache problem motd2.html changed to motd.php, and the img link is now: img src= http://www.coldfire.info/tf2/motd/cold/motd_image.php??php echo time(); ? / so the link is never the same And the no-cache headers in motd_image.php (with returns a png image), all works fine Thanks to all for the help For those interested by all this stuff, feel free to ask Cold ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Hi Using your howto and my own server scripts, I've made this MOTD: http://www.coldfire.info/tf2/motd/cold/motd2.html You'll recognize the background image from specialattack.net, while what was motd.png has been replaced by a dynamically generated image. The problem I have is that when I join the server, I see the motd with the right currentmap/nextmap colored, but after a changemap, the image has not been refreshed. I've made several tests using the url linked above outside tf2, and the update is fine. It seems TF2 (client-side) caches the motd. Am I wrong? I've made other tests, like changing map, then disconnect and reconnect to my TF2 server, but the motd was still not updated. So I stopped the server, made specific config files for the first 2 maps, with motdfile motdtest1.txt for the first map config, and motdfile motdtest2.txt for the second one, each motdfile being a simple text file saying the map name. I restarted the server, joined it, and the motd I saw was... still the graphical one. So what do I do wrong? Does someone know where is the motd cached? How can I be sure of what does work and what doesn't work? When I'll be done with that, I'll publish my php motd source code for those who want it Thanks for your help Cold' On Sun, Jun 15, 2008 at 7:41 PM, Patrick Shelley [EMAIL PROTECTED] wrote: I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Hi, We're writing updates to the script to solve this problem. (To avoid the caching). We'll be posting it asap on the webpage, along with the server query codes. Cheers, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Wednesday, June 25, 2008 9:03 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Hi Using your howto and my own server scripts, I've made this MOTD: http://www.coldfire.info/tf2/motd/cold/motd2.html You'll recognize the background image from specialattack.net, while what was motd.png has been replaced by a dynamically generated image. The problem I have is that when I join the server, I see the motd with the right currentmap/nextmap colored, but after a changemap, the image has not been refreshed. I've made several tests using the url linked above outside tf2, and the update is fine. It seems TF2 (client-side) caches the motd. Am I wrong? I've made other tests, like changing map, then disconnect and reconnect to my TF2 server, but the motd was still not updated. So I stopped the server, made specific config files for the first 2 maps, with motdfile motdtest1.txt for the first map config, and motdfile motdtest2.txt for the second one, each motdfile being a simple text file saying the map name. I restarted the server, joined it, and the motd I saw was... still the graphical one. So what do I do wrong? Does someone know where is the motd cached? How can I be sure of what does work and what doesn't work? When I'll be done with that, I'll publish my php motd source code for those who want it Thanks for your help Cold' On Sun, Jun 15, 2008 at 7:41 PM, Patrick Shelley [EMAIL PROTECTED] wrote: I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Hi, We're writing updates to the script to solve this problem. (To avoid the caching). We'll be posting it asap on the webpage, along with the server query codes. Cheers, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Wednesday, June 25, 2008 9:03 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Hi Using your howto and my own server scripts, I've made this MOTD: http://www.coldfire.info/tf2/motd/cold/motd2.html You'll recognize the background image from specialattack.net, while what was motd.png has been replaced by a dynamically generated image. The problem I have is that when I join the server, I see the motd with the right currentmap/nextmap colored, but after a changemap, the image has not been refreshed. I've made several tests using the url linked above outside tf2, and the update is fine. It seems TF2 (client-side) caches the motd. Am I wrong? I've made other tests, like changing map, then disconnect and reconnect to my TF2 server, but the motd was still not updated. So I stopped the server, made specific config files for the first 2 maps, with motdfile motdtest1.txt for the first map config, and motdfile motdtest2.txt for the second one, each motdfile being a simple text file saying the map name. I restarted the server, joined it, and the motd I saw was... still the graphical one. So what do I do wrong? Does someone know where is the motd cached? How can I be sure of what does work and what doesn't work? When I'll be done with that, I'll publish my php motd source code for those who want it Thanks for your help Cold' On Sun, Jun 15, 2008 at 7:41 PM, Patrick Shelley [EMAIL PROTECTED] wrote: I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
AFAIK is does cache the MOTD i've had this problem, but not with dynamic info - just static. I had to change the name of the file to get it to show the new version. As for where the MOTD is cached, i think someone mentioned that it uses IE offscreen and builds and renders a shot of the MOTD. I could be wrong about that. On 6/25/08, Coldorak [EMAIL PROTECTED] wrote: Hi Using your howto and my own server scripts, I've made this MOTD: http://www.coldfire.info/tf2/motd/cold/motd2.html You'll recognize the background image from specialattack.net, while what was motd.png has been replaced by a dynamically generated image. The problem I have is that when I join the server, I see the motd with the right currentmap/nextmap colored, but after a changemap, the image has not been refreshed. I've made several tests using the url linked above outside tf2, and the update is fine. It seems TF2 (client-side) caches the motd. Am I wrong? I've made other tests, like changing map, then disconnect and reconnect to my TF2 server, but the motd was still not updated. So I stopped the server, made specific config files for the first 2 maps, with motdfile motdtest1.txt for the first map config, and motdfile motdtest2.txt for the second one, each motdfile being a simple text file saying the map name. I restarted the server, joined it, and the motd I saw was... still the graphical one. So what do I do wrong? Does someone know where is the motd cached? How can I be sure of what does work and what doesn't work? When I'll be done with that, I'll publish my php motd source code for those who want it Thanks for your help Cold' On Sun, Jun 15, 2008 at 7:41 PM, Patrick Shelley [EMAIL PROTECTED] wrote: I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Look forward to that Saint ! On 6/25/08, Saint K. [EMAIL PROTECTED] wrote: Hi, We're writing updates to the script to solve this problem. (To avoid the caching). We'll be posting it asap on the webpage, along with the server query codes. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
So I should make multiple copies of motd.txt and use them with map configs? I'll try that later today or tomorrow, thank you Cold On Wed, Jun 25, 2008 at 1:03 PM, Patrick Shelley [EMAIL PROTECTED] wrote: AFAIK is does cache the MOTD i've had this problem, but not with dynamic info - just static. I had to change the name of the file to get it to show the new version. As for where the MOTD is cached, i think someone mentioned that it uses IE offscreen and builds and renders a shot of the MOTD. I could be wrong about that. On 6/25/08, Coldorak [EMAIL PROTECTED] wrote: Hi Using your howto and my own server scripts, I've made this MOTD: http://www.coldfire.info/tf2/motd/cold/motd2.html You'll recognize the background image from specialattack.net, while what was motd.png has been replaced by a dynamically generated image. The problem I have is that when I join the server, I see the motd with the right currentmap/nextmap colored, but after a changemap, the image has not been refreshed. I've made several tests using the url linked above outside tf2, and the update is fine. It seems TF2 (client-side) caches the motd. Am I wrong? I've made other tests, like changing map, then disconnect and reconnect to my TF2 server, but the motd was still not updated. So I stopped the server, made specific config files for the first 2 maps, with motdfile motdtest1.txt for the first map config, and motdfile motdtest2.txt for the second one, each motdfile being a simple text file saying the map name. I restarted the server, joined it, and the motd I saw was... still the graphical one. So what do I do wrong? Does someone know where is the motd cached? How can I be sure of what does work and what doesn't work? When I'll be done with that, I'll publish my php motd source code for those who want it Thanks for your help Cold' On Sun, Jun 15, 2008 at 7:41 PM, Patrick Shelley [EMAIL PROTECTED] wrote: I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Coldorak wrote: It seems TF2 (client-side) caches the motd. To disable caching of your dynamic generated image, let the php script modify the http headers like this: header(Content-type: image/png); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache) ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Thanks, I'll add these headers in my script and will keep you updated On Wed, Jun 25, 2008 at 1:28 PM, Procyon [EMAIL PROTECTED] wrote: Coldorak wrote: It seems TF2 (client-side) caches the motd. To disable caching of your dynamic generated image, let the php script modify the http headers like this: header(Content-type: image/png); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache) ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
If you use PHP as MOTD, then you don't need to change the headers. Coldorak wrote: It seems TF2 (client-side) caches the motd. To disable caching of your dynamic generated image, let the php script modify the http headers like this: header(Content-type: image/png); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache) ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
I use the html file from Saint K, but the motd.png image is replaced by motd.php which generates dynamically a png image I've added Procyon headers to my script, but as I'm at work I cannot test immediatly Cold On Wed, Jun 25, 2008 at 2:24 PM, Ronny Schedel [EMAIL PROTECTED] wrote: If you use PHP as MOTD, then you don't need to change the headers. Coldorak wrote: It seems TF2 (client-side) caches the motd. To disable caching of your dynamic generated image, let the php script modify the http headers like this: header(Content-type: image/png); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache) ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We currently make the server stats by generating a random numbered link to retrieve it. This way it thinks the motd gets changed on every map change. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Procyon Sent: Wednesday, June 25, 2008 2:51 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
I have never seen a PHP page cached client side. The IE does not cache PHP client side. Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We currently make the server stats by generating a random numbered link to retrieve it. This way it thinks the motd gets changed on every map change. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Procyon Sent: Wednesday, June 25, 2008 2:51 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
motd2.html (it'll explain) htmlhead meta http-equiv=Pragma content=no-cache meta http-equiv=expires content=0 (...) body img src=http://www.coldfire.info/tf2/motd/cold/blackboard.png; id=bg / div id=contentimg src=http://www.coldfire.info/tf2/motd/cold/*motd.php*; //div /body/html Cold On Wed, Jun 25, 2008 at 2:51 PM, Procyon [EMAIL PROTECTED] wrote: Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Hmm could-you copy/paste the code please? :) On Wed, Jun 25, 2008 at 3:00 PM, Saint K. [EMAIL PROTECTED] wrote: We currently make the server stats by generating a random numbered link to retrieve it. This way it thinks the motd gets changed on every map change. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Procyon Sent: Wednesday, June 25, 2008 2:51 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Ye, I have asked the author to throw it online! Cheers, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Wednesday, June 25, 2008 3:08 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Hmm could-you copy/paste the code please? :) On Wed, Jun 25, 2008 at 3:00 PM, Saint K. [EMAIL PROTECTED] wrote: We currently make the server stats by generating a random numbered link to retrieve it. This way it thinks the motd gets changed on every map change. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Procyon Sent: Wednesday, June 25, 2008 2:51 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Ye, I have asked the author to throw it online! Cheers, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Wednesday, June 25, 2008 3:08 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Hmm could-you copy/paste the code please? :) On Wed, Jun 25, 2008 at 3:00 PM, Saint K. [EMAIL PROTECTED] wrote: We currently make the server stats by generating a random numbered link to retrieve it. This way it thinks the motd gets changed on every map change. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Procyon Sent: Wednesday, June 25, 2008 2:51 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) Ronny Schedel wrote: If you use PHP as MOTD, then you don't need to change the headers You do if you use php to generate an image and don't want the resulting image to be cached client-side ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Ronny Schedel wrote: I have never seen a PHP page cached client side. The IE does not cache PHP client side. The server-side generated image is being cached by tf2 and the solution is to modify headers or altering the image url. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
What do you mean with server side generated image? We use PHP on a webserver to generate server status pictures and it updates fine without changing headers. Ronny Schedel wrote: I have never seen a PHP page cached client side. The IE does not cache PHP client side. The server-side generated image is being cached by tf2 and the solution is to modify headers or altering the image url. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Fancy sharing how you do that Ronny? On 6/25/08, Ronny Schedel [EMAIL PROTECTED] wrote: What do you mean with server side generated image? We use PHP on a webserver to generate server status pictures and it updates fine without changing headers. Ronny Schedel wrote: I have never seen a PHP page cached client side. The IE does not cache PHP client side. The server-side generated image is being cached by tf2 and the solution is to modify headers or altering the image url. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Your server status pictures are displayed on your website or on your server's motd? On websites, no cache problem, but on motd, it seems the image is cached, so we have to find ways to no-cache them The same php functions are used to generate my motd image and the server status images on my website. On the website, no cache problem, but for the motd, it's not updated on map change for example (I want to display current map/next map in the motd, see http://www.coldfire.info/tf2/motd/cold/motd2.html to view my motd) I've added no-cache headers to the png generated image, but as I'm at work I cannot test yet if it solves the problem or not Cold On Wed, Jun 25, 2008 at 4:01 PM, Ronny Schedel [EMAIL PROTECTED] wrote: What do you mean with server side generated image? We use PHP on a webserver to generate server status pictures and it updates fine without changing headers. Ronny Schedel wrote: I have never seen a PHP page cached client side. The IE does not cache PHP client side. The server-side generated image is being cached by tf2 and the solution is to modify headers or altering the image url. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
It comes to the browser with the text/html mimetype. Most (sensible) browsers will cache it. thanks, bucky On Wed, Jun 25, 2008 at 7:24 AM, Ronny Schedel [EMAIL PROTECTED] wrote: If you use PHP as MOTD, then you don't need to change the headers. Coldorak wrote: It seems TF2 (client-side) caches the motd. To disable caching of your dynamic generated image, let the php script modify the http headers like this: header(Content-type: image/png); header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache) ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
The main html of the MOTD is located on the game server (motd.txt). Inside the html are img tags to webserver located, php generated pictures. Example: img src=http://webserver.com/status.php We use normal PHP functions like imagejpg to ouput the images. I don't think this function sends additional headers to prevent caching. Your server status pictures are displayed on your website or on your server's motd? On websites, no cache problem, but on motd, it seems the image is cached, so we have to find ways to no-cache them The same php functions are used to generate my motd image and the server status images on my website. On the website, no cache problem, but for the motd, it's not updated on map change for example (I want to display current map/next map in the motd, see http://www.coldfire.info/tf2/motd/cold/motd2.html to view my motd) I've added no-cache headers to the png generated image, but as I'm at work I cannot test yet if it solves the problem or not Cold On Wed, Jun 25, 2008 at 4:01 PM, Ronny Schedel [EMAIL PROTECTED] wrote: What do you mean with server side generated image? We use PHP on a webserver to generate server status pictures and it updates fine without changing headers. Ronny Schedel wrote: I have never seen a PHP page cached client side. The IE does not cache PHP client side. The server-side generated image is being cached by tf2 and the solution is to modify headers or altering the image url. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Ronny Schedel wrote: We use normal PHP functions like imagejpg to ouput the images. I don't think this function sends additional headers to prevent caching. I suppose neglecting to change content-type from text/html to image/jpeg could affect client-side caching behaviour. I set content-type to image/png using header(Content-type: image/png) prior to calling imagepng and had to send additional headers to prevent tf2 from caching the image. || ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
The PHP image functions sends the correct header content types. Ronny Schedel wrote: We use normal PHP functions like imagejpg to ouput the images. I don't think this function sends additional headers to prevent caching. I suppose neglecting to change content-type from text/html to image/jpeg could affect client-side caching behaviour. I set content-type to image/png using header(Content-type: image/png) prior to calling imagepng and had to send additional headers to prevent tf2 from caching the image. || ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Any particular reason you don't just serve up the webpage as normal html rather than as an image? http://games.127001.org/tf2/motd.php and yes I _know_ it's minimalist, that's coz I haven't had time to do anything to it, not because of html limitations -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ronny Schedel Sent: 25 June 2008 17:14 To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) The PHP image functions sends the correct header content types. Ronny Schedel wrote: We use normal PHP functions like imagejpg to ouput the images. I don't think this function sends additional headers to prevent caching. I suppose neglecting to change content-type from text/html to image/jpeg could affect client-side caching behaviour. I set content-type to image/png using header(Content-type: image/png) prior to calling imagepng and had to send additional headers to prevent tf2 from caching the image. || ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Yep, the reason is I want to use the font TF2 secondary. With the new headers in the image and a change to motd.html (changed to php with a always changing link to the image), no more cache problem motd2.html changed to motd.php, and the img link is now: img src= http://www.coldfire.info/tf2/motd/cold/motd_image.php??php echo time(); ? / so the link is never the same And the no-cache headers in motd_image.php (with returns a png image), all works fine Thanks to all for the help For those interested by all this stuff, feel free to ask Cold On Wed, Jun 25, 2008 at 8:20 PM, [EMAIL PROTECTED] wrote: Any particular reason you don't just serve up the webpage as normal html rather than as an image? http://games.127001.org/tf2/motd.php and yes I _know_ it's minimalist, that's coz I haven't had time to do anything to it, not because of html limitations -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ronny Schedel Sent: 25 June 2008 17:14 To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) The PHP image functions sends the correct header content types. Ronny Schedel wrote: We use normal PHP functions like imagejpg to ouput the images. I don't think this function sends additional headers to prevent caching. I suppose neglecting to change content-type from text/html to image/jpeg could affect client-side caching behaviour. I set content-type to image/png using header(Content-type: image/png) prior to calling imagepng and had to send additional headers to prevent tf2 from caching the image. || ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
A tutorial on using php for bringing in this dynamic info into the MOTD would be very grateful indeed. On 6/25/08, Coldorak [EMAIL PROTECTED] wrote: Yep, the reason is I want to use the font TF2 secondary. With the new headers in the image and a change to motd.html (changed to php with a always changing link to the image), no more cache problem motd2.html changed to motd.php, and the img link is now: img src= http://www.coldfire.info/tf2/motd/cold/motd_image.php??php echo time(); ? / so the link is never the same And the no-cache headers in motd_image.php (with returns a png image), all works fine Thanks to all for the help For those interested by all this stuff, feel free to ask Cold ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
I'm gonna mess about with this later today - will let u know how i get on. Cheers Saint ! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We have posted a guide on how to display a simple live server view on your website. http://www.specialattack.net/node/45 A guide will soon be posted on how to integrate the live server view into your MOTD. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saint K. Sent: Thursday, June 12, 2008 1:10 PM To: 'Half-Life dedicated Linux server mailing list'; 'Half-Life dedicated Win32 server mailing list' Subject: [hlds_linux] MOTD chalkboard how-to (TF2) Hi, We released a small how-to + example files on how to create a shared motd keeping the original TF2 design intact. (This is usefull for hosts who have multiple servers reading the motd from one location). http://www.specialattack.net/node/39 Enjoy, Saint K. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We have posted a guide on how to display a simple live server view on your website. http://www.specialattack.net/node/45 A guide will soon be posted on how to integrate the live server view into your MOTD. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saint K. Sent: Thursday, June 12, 2008 1:10 PM To: 'Half-Life dedicated Linux server mailing list'; 'Half-Life dedicated Win32 server mailing list' Subject: [hlds_linux] MOTD chalkboard how-to (TF2) Hi, We released a small how-to + example files on how to create a shared motd keeping the original TF2 design intact. (This is usefull for hosts who have multiple servers reading the motd from one location). http://www.specialattack.net/node/39 Enjoy, Saint K. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
[hlds_linux] MOTD chalkboard how-to (TF2)
Hi, We released a small how-to + example files on how to create a shared motd keeping the original TF2 design intact. (This is usefull for hosts who have multiple servers reading the motd from one location). http://www.specialattack.net/node/39 Enjoy, Saint K. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
[hlds_linux] MOTD chalkboard how-to (TF2)
Hi, We released a small how-to + example files on how to create a shared motd keeping the original TF2 design intact. (This is usefull for hosts who have multiple servers reading the motd from one location). http://www.specialattack.net/node/39 Enjoy, Saint K. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Maybe background-repeat: repeat;* (x or y) *will help with scaling on diff resolutions? Just a thought ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
You *might* want to look at that: I already did some scripts for that (before knewing psychostats) http://forums.srcds.com/viewtopic/6446 You'll just have to change the final code, to return text instead of an image Cold' On Thu, Jun 12, 2008 at 3:14 PM, Saint K. [EMAIL PROTECTED] wrote: We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Thanks, I'll pass it on! Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Thursday, June 12, 2008 3:43 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) You *might* want to look at that: I already did some scripts for that (before knewing psychostats) http://forums.srcds.com/viewtopic/6446 You'll just have to change the final code, to return text instead of an image Cold' On Thu, Jun 12, 2008 at 3:14 PM, Saint K. [EMAIL PROTECTED] wrote: We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Thanks, I'll pass it on! Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Thursday, June 12, 2008 3:43 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) You *might* want to look at that: I already did some scripts for that (before knewing psychostats) http://forums.srcds.com/viewtopic/6446 You'll just have to change the final code, to return text instead of an image Cold' On Thu, Jun 12, 2008 at 3:14 PM, Saint K. [EMAIL PROTECTED] wrote: We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] MOTD chalkboard how-to (TF2)
Nice link there Cold' Appreciated :) On 6/12/08, Saint K. [EMAIL PROTECTED] wrote: Thanks, I'll pass it on! Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coldorak Sent: Thursday, June 12, 2008 3:43 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) You *might* want to look at that: I already did some scripts for that (before knewing psychostats) http://forums.srcds.com/viewtopic/6446 You'll just have to change the final code, to return text instead of an image Cold' On Thu, Jun 12, 2008 at 3:14 PM, Saint K. [EMAIL PROTECTED] wrote: We're working on a uniform code which doesn't require Psychostats to show the info (we currently simply draw the information from the servers trough psychostats). We'll be adding the code to the site as soon as it's done. Saint K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Shelley Sent: Thursday, June 12, 2008 2:21 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] MOTD chalkboard how-to (TF2) How do you bring the info in for the next map and time left (in your pic in green) - if you dont mind me asking? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux