Raised This Month: $51 Target: $400
 12% 

show_motd() doesnt work - Natural-Selection.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-16-2011 , 21:06   show_motd() doesnt work - Natural-Selection.
Reply With Quote #1

So.....
show_motd() does not work for Natural-Selection. No window, no errors, nothing.

Yes it is getting executed, yes I formatted my strings properly, NO there is not any console errors on the server, etc.

Code:
show_motd(id,message,"LOL");

Bug?
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-16-2011 , 22:10   Re: show_motd() doesnt work - Natural-Selection.
Reply With Quote #2

Does NS even have the MOTD window when you connect ?
If it does, it may be a different message name/structure than the one sent by show_motd().

If all from above are true, I think you should check the output of "meta game" server command, if there's a message named "MOTD" there, then hook it and print it's arguments in server console so you can re-make it manually.
__________________
Hunter-Digital is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 08-19-2011 , 06:07   Re: show_motd() doesnt work - Natural-Selection.
Reply With Quote #3

Hmm, actually, when I connect, I don't think it shows an motd by default.
The ns dir does however have an motd.txt in it. Maybe there is a cvar to toggle the use of motds on servers? Or maybe you could elaborate on your solution more.
__________________


Last edited by mysticssjgoku4; 08-19-2011 at 06:10.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-19-2011 , 06:45   Re: show_motd() doesnt work - Natural-Selection.
Reply With Quote #4

Quote:
Originally Posted by mysticssjgoku4 View Post
I don't think it shows an motd by default.
Why not?
__________________
hleV is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-19-2011 , 07:38   Re: show_motd() doesnt work - Natural-Selection.
Reply With Quote #5

Quote:
Originally Posted by mysticssjgoku4 View Post
Or maybe you could elaborate on your solution more.
How much elaborated do you need... type "meta game" in the server console and that'll print you all the used messages, if there's one named "MOTD" than hook it ... if it doesn't exist, search through the list maybe it's named differently and hook that aswell and print the arguments in the server console.
For this to work you need a working default motd window, so make that joining one work.
Also, make sure motd.txt is not blank xD
__________________
Hunter-Digital 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 04:14.


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