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

[ANY] Simple Welcome Message 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 04-17-2012 , 00:34   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #101

[simplewelcomemsg.smx] Set the maximum number of lines of.

My console and logs are showing this on every map change tho everything seems to work fine, how can i stop this?

Thanks
Lingus is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-17-2012 , 03:50   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #102

Remove the line which has: PrintToServer
__________________
Silvers is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 04-17-2012 , 07:49   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #103

thanks, will try this later.
Lingus is offline
DIMEDROLL
Junior Member
Join Date: Apr 2012
Old 04-17-2012 , 17:52   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #104

hi guys, i have istalled this plugin for Alien Swarm dedicated server. Precompiled version. Some errors I encounter:
- It displays only 1 line of text, other are ignored
- It resets settings every time the map is restarted or level is changed. E.g. if I set sm_swm_timer 7, after changed level it resets to 25.0

My error log:

Quote:
L 04/18/2012 - 00:43:24: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/18/2012 - 00:43:24: [SM] Native "Format" reported: Language phrase "PanelTitle" not found
L 04/18/2012 - 00:43:24: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 04/18/2012 - 00:43:24: [SM] [0] Line 191, C:\Documents and Settings\Zuko\Pulpit\scripting\simplewelcomem sg.sp::PanelMessageDisplay()
L 04/18/2012 - 00:43:24: [SM] [1] Line 102, C:\Documents and Settings\Zuko\Pulpit\scripting\simplewelcomem sg.sp::Timer_Welcome()
My simplewelcomemsg.phrases.txt:

Quote:
"Phrases"
{
//Chat Messages
//Color list: http://forums.alliedmods.net/showthread.php?t=96831
"WelcomeMsg1"
{
"#format" "{1:N}"
"en" "{green}Dear {1}, Welcome!"
}

"WelcomeMsg2"
{
"en" "{green}bla bla.."
}
}
What I want is to just display some text when user joins the server using standart chat message.

Last edited by DIMEDROLL; 04-17-2012 at 17:54. Reason: removed smileys
DIMEDROLL is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-17-2012 , 18:14   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #105

Quote:
Originally Posted by DIMEDROLL View Post
It resets settings every time the map is restarted or level is changed. E.g. if I set sm_swm_timer 7, after changed level it resets to 25.0
Have you written to the cvar in cfg/sourcemod/plugin.simplewelcomemsg.cfg?

As for it not showing multiple lines, have you also set sm_swm_messagelines and/or sm_swm_panellines?
__________________

Last edited by 11530; 04-17-2012 at 18:15.
11530 is offline
DIMEDROLL
Junior Member
Join Date: Apr 2012
Old 04-18-2012 , 05:03   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #106

11530, thanks. cfg file worked for saving settings. sm_swm_messagelines is not present in commands' list and sm_swm_panellines seems to be related to panels(am I right?), but I'm using chat.
Also if I use default simplewelcomemsg.phrases.txt I think it shows some invisible panels that prevent user to click any button on the screen.
DIMEDROLL is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-18-2012 , 11:40   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #107

sm_swm_messagelines isn't a command, it's a cvar just like sm_swm_timer. Find it in that same config file (plugin.simplewelcomemsg.cfg). A value of 0 means it shows 1 line, a value of 1 means it shows 2 lines etc. Don't forget to restart the plugin after you've changed the settings.
__________________
11530 is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 04-18-2012 , 12:36   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #108

Quote:
Originally Posted by Silvers View Post
Remove the line which has: PrintToServer
I cannot find this in the .sp .
Lingus is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-18-2012 , 13:44   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #109

Quote:
Originally Posted by Lingus View Post
[simplewelcomemsg.smx] Set the maximum number of lines of.

My console and logs are showing this on every map change tho everything seems to work fine, how can i stop this?

Thanks
Depends how you want to solve this Lingus.

If you just want the logs to output a coherent sentence, open the translations file simplewelcomemsg.phrases.txt then change "Set the maximum number of lines of." to something like "Set the maximum number of lines for the mod." Technically Zuko needs to fix this directly.

If, however, you want to remove the entire log outputs then comment out lines 73, 78 and 83 (the LogAction lines).
__________________

Last edited by 11530; 04-18-2012 at 13:46.
11530 is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 04-18-2012 , 15:36   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #110

Thanks 11530! That worked a treat.
Lingus 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 16:45.


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