Raised This Month: $32 Target: $400
 8% 

MOTD weirdness


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-09-2015 , 20:48   MOTD weirdness
Reply With Quote #1

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?
__________________
Bugsy is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 03-09-2015 , 20:51   Re: MOTD weirdness
Reply With Quote #2

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

Last edited by claudiuhks; 03-09-2015 at 20:51.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-09-2015 , 21:21   Re: MOTD weirdness
Reply With Quote #3

Using HLDS.

It means I close the counter strike game and re-open it.
__________________
Bugsy is offline
Lycode
Junior Member
Join Date: Aug 2014
Old 03-09-2015 , 22:12   Re: MOTD weirdness
Reply With Quote #4

Clear your default web browser's cache. Do the same for internet explorer.
__________________
-This too shall pass
Lycode is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-09-2015 , 22:44   Re: MOTD weirdness
Reply With Quote #5

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?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-09-2015 , 22:59   Re: MOTD weirdness
Reply With Quote #6

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.
__________________
Bugsy is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-09-2015 , 23:46   Re: MOTD weirdness
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
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
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-11-2015 , 19:09   Re: MOTD weirdness
Reply With Quote #8

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.
__________________

Last edited by Bugsy; 03-11-2015 at 19:10.
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:30.


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