AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   MOTD weirdness (https://forums.alliedmods.net/showthread.php?t=259608)

Bugsy 03-09-2015 20:48

MOTD weirdness
 
I am using the MOTD window to display stats and a top15. It works fine the first time when I just loaded cs, but all uses after that it again shows me the same MOTD file from the very first use.

1. Request stats, shown stats
2. Request top15, shown stats
3. Request top15, shown stats
4. Request stats, shown stats

Close and reload cs

1. Request top15, shown top15
2. Request stats, shown top15
3. Request top15, shown top15
4. Request stats, shown top15

I tried using show_motd() with a string and I tried writing it to a file and showing that, but I get the same result either way.

The title for the MOTD updates accordingly, but the content window shows the same data. If I right-click on the content window and select 'Copy Page URL' and paste it into a browser (links to motd_temp.html) it displays the correct content after I use each command (stats\top15). So it looks like it's kind of working, but the content window is not refreshing. Right-clicking the content area and selecting Refresh does nothing.

Does anyone know what's up with this?

claudiuhks 03-09-2015 20:51

Re: MOTD weirdness
 
Have you tested on a dedicated game server, or a listen server?
What do you mean "Close and reload cs"?

Bugsy 03-09-2015 21:21

Re: MOTD weirdness
 
Using HLDS.

It means I close the counter strike game and re-open it.

Lycode 03-09-2015 22:12

Re: MOTD weirdness
 
Clear your default web browser's cache. Do the same for internet explorer.

^SmileY 03-09-2015 22:44

Re: MOTD weirdness
 
I am using the motd to show the custom stats, using something like this:

PHP Code:

show_motd(id,"http://localhost/pug/top.php","TOP 10 Players"); 

I think you need to check motdfile convar no?

Bugsy 03-09-2015 22:59

Re: MOTD weirdness
 
I've used it before too without any issues, but that was years ago. I've since built a new PC and freshly installed everything, I can't figure out what I'm missing with this.

^SmileY 03-09-2015 23:46

Re: MOTD weirdness
 
Quote:

Originally Posted by Bugsy (Post 2271967)
I've used it before too without any issues, but that was years ago. I've since built a new PC and freshly installed everything, I can't figure out what I'm missing with this.

I have same problem in a time ago..

Is HLDS correct? If yes, maybe try to disable motd with motdfile convar and test again

Bugsy 03-11-2015 19:09

Re: MOTD weirdness
 
I changed my resolution in the game settings and now it works. For some reason the resolution I had (1152x864, playing in a window) was preventing the MOTD content window from refreshing. It is also now displaying my HTML formatting where before it was just showing in the orange\black colors.


All times are GMT -4. The time now is 03:56.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.