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] HLStastX usage
Keeper wrote: This right here is what I meant by I'm no regex expert. Well, it looks like this also applies to other persons, as the change is unnecessarily expensive. if ($s_output =~ s/^(?:.*?)?L (\d\d)\/(\d\d)\/(\d{4}) - (\d\d):(\d\d):(\d\d):\s*//) if ($s_output =~ s/^.*?L (\d\d)\/(\d\d)\/(\d{4}) - (\d\d):(\d\d):(\d\d):\s*//) would suffice to get a non-greedy match. Cheers, Daniel ___ 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
[hlds_linux] (no subject)
was is ... _ Neu: Mit Live Search Ihre Stadt in der Vogelperspektive! http://maps.live.de ___ 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] TF2 32 Slots
I thought it did -- I remember listing mine as 32 slot (before using the BM sv tags thing) and it of course delisted me from the regular vanilla servers. I've got it going again but I've got a feeling it won't be long before I'm either delisted or Valve makes a change that forces all servers greater than 24 slot to be under custom... who knows. On Tue, Jun 24, 2008 at 10:36 PM, Patrick Shelley [EMAIL PROTECTED] wrote: Becareful with this - a few people reports it delists your server On 6/25/08, 1nsane [EMAIL PROTECTED] wrote: Beetlesmod and sourcemod can do this. bm_SetSvTags 1 would be the command in BM. ___ 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