Raised This Month: $ Target: $400
 0% 

[ANY] Simple Welcome Message 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
4bdul
AlliedModders Donor
Join Date: Dec 2011
Location: United Kingdom
Old 12-28-2011 , 16:34   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #81

Quote:
Plugin failed to compile! Please try contacting the author.
I get that when I try to download the .smx from the thread (1st post).
4bdul is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 12-29-2011 , 00:13   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #82

Compile it yourself locally or use the attached .smx file.
__________________
DarthNinja is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-31-2011 , 09:29   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #83

Quote:
Originally Posted by Riosha View Post
How could I set translation of lines?

For example:

"WelcomeMsg3"
{
"en" "{blue}Our rules:"
"ru" "{blue}Правила сервера:"
}

When russian players enter my server, they still see message in english.

Because this plugin was setting the language to LANG_SERVER, so I changed and used SetGlobalTransTarget().. this works:
Attached Files
File Type: sp Get Plugin or Get Source (simplewelcomemsg.sp - 180 views - 24.0 KB)
File Type: smx simplewelcomemsg.smx (9.5 KB, 218 views)
__________________

Last edited by Silvers; 02-24-2012 at 19:56. Reason: bad english
Silvers is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 12-31-2011 , 22:56   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #84

Would it be possible for you to add the orange colored letters onto the panels? Similar to the Saxton hale's version.

[IMG]http://img838.**************/img838/810/2011123100002d.jpg[/IMG]
__________________

Last edited by Chaosxk; 12-31-2011 at 22:59.
Chaosxk is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 02-20-2012 , 10:44   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #85

Hi there,

The plugin works if I use only 3 lines for chat messages.
If I use 4 (-> sm_swm_messagelines 3), the 4 lines appear, BUT the order of the lines is random
Any way to fix that?

Here is the one I'd like to use (but in this case, the line 'Have fun' is displayed at a random place each map, so that the text looks stupid):
Code:
"Phrases"
{
    //Chat Messages
    //Color list: http://forums.alliedmods.net/showthread.php?t=96831
    "WelcomeMsg1"
    {
        "#format"    "{1:N}"
        "en"        "{green}Welcome {1}. To see server rules and commands, please type {default}motd"
    }
    
    "WelcomeMsg2"
    {
        "en"        "{green}Most useful commands are: {default}!stopall, !damage help, !rules, !hlstatsx, !join"
    }
    
    "WelcomeMsg3"
    {
        "en"        "{green}More information about .:€S C 90:. servers on our website: {lightgreen}www.esc90.fr."
    }
    
    "WelcomeMsg4"
    {
        "en"        "{green}Have fun!"
    }
    
    "WelcomeMsg5"
    {
        "en"        "{green}Example Line {lightgreen}5"
    }
    
    "WelcomeMsg6"
    {
        "en"        "{green}Example Line {lightgreen}6"
    }
    
    "WelcomeMsg7"
    {
        "en"        "{green}Example Line {lightgreen}7"
    }
    
    "WelcomeMsg8"
    {
        "en"        "{green}Example Line {lightgreen}8"
    }
    
    //Panel Messages
    "PanelTitle"
    {
        "en"        "Welcome!"
    }
    
    "PanelClose"
    {
        "en"        "0. Close"
    }
    
    "PanelLine1"
    {
        "en"        "*** To enter a game in progress, please type !respawn. ***"
    }
    
    "PanelLine2"
    {
        "en"        "*** Alternatively, type !redie if respawn is not allowed. ***"
    }
    
    "PanelLine3"
    {
        "en"        "*** Only three rules here: No insult or rage, no bhop script or cheat, fair play only. ***"
    }
    
    "PanelLine4"
    {
        "en"        "*** As it is a surf server, spawn kill and camping at jail will also be punished.*** "
    }
    
    "PanelLine5"
    {
        "en"        "Have a good surfing time ;)"
    }
    
    "PanelLine6"
    {
        "en"        "Example Line 6"
    }
    
    "PanelLine7"
    {
        "en"        "Example Line 7"
    }
    
    "PanelLine8"
    {
        "en"        "Example Line 8"
    }
    
    "PanelLine9"
    {
        "en"        "Example Line 9"
    }
    
    "PanelLine10"
    {
        "en"        "Example Line 10"
    }
    
    "PanelLine11"
    {
        "en"        "Example Line 11"
    }
    
    "PanelLine12"
    {
        "en"        "Example Line 12"
    }
    
    "PanelLine13"
    {
        "en"        "Example Line 13"
    }
    
    "PanelLine14"
    {
        "en"        "Example Line 14"
    }
    
    "PanelLine15"
    {
        "en"        "Example Line 15"
    }
    
    "PanelLine16"
    {
        "en"        "Example Line 16"
    }
    //Hint Message
    "HintMessage"
    {
        "en"        "Type !respawn to enter the game, or !redie if respawn is off on this map."
    }
    
    //Mod Detection
    "Insurgency"
    {
        "en"        "Set the maximum number of lines for Insurgency mod."
    }
    
    "L4D"
    {
        "en"        "Set the maximum number of lines for Left 4 Dead."
    }
        
    "Other"
    {
        "en"        "Set the maximum number of lines of."
    }
}
Regards,

St00ne

Last edited by St00ne; 02-20-2012 at 22:04.
St00ne is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 02-20-2012 , 22:04   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #86

Quote:
Originally Posted by Silvers View Post
Because this plugin was setting the language to LANG_SERVER, so I changed and used SetGlobalTransTarget().. this works:
Thank you, it works now with my french translation.
St00ne is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 02-24-2012 , 18:41   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #87

Hi,

I have dozens of lines like these in my error logs:

Quote:
L 02/24/2012 - 151:19: SourceMod error session started
L 02/24/2012 - 151:19: Info (map "de_dust2") (file "errors_20120224.log")
L 02/24/2012 - 151:19: [SM] Plugin encountered error 25: Call was aborted
L 02/24/2012 - 151:19: [SM] Native "ThrowError" reported: Client 3 is not in game
L 02/24/2012 - 151:19: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 02/24/2012 - 151:19: [SM] [0] Line 59, E:\SRCDS\left4dead2\left4dead2\addons\sourcem od\scripting\include\colors.inc::CPrintToChat ()
L 02/24/2012 - 151:19: [SM] [1] Line 131, simplewelcomemsg_4.sp::ChatMessagesDisplay()
L 02/24/2012 - 151:19: [SM] [2] Line 106, simplewelcomemsg_4.sp::Timer_Welcome()
L 02/24/2012 - 15:52:41: Error log file session closed.
My files are configured like this:

plugin.simplewelcomemsg.cfg
Code:
// This file was auto-generated by SourceMod (v1.4.1)
// ConVars for plugin "simplewelcomemsg.smx"


// Enable/Disable Plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_swm_enable "1"

// How many lines plugin should display.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "7.000000"
sm_swm_messagelines "2"

// Sets Message Type: 1 - Chat , 2 - Panel , 4 - Hint (You can combine more than one)
// -
// Default: "7"
// Minimum: "0.000000"
// Maximum: "7.000000"
sm_swm_msgtype "1"

// How many lines plugin should display in panels.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "13.000000"
sm_swm_panellines "4"

// When the message should be displayed after the player join on the server (in seconds)
// -
// Default: "25.0"
sm_swm_timer "7.0"
simplewelcomemsg.phrases.txt
Code:
"Phrases"
{
    //Chat Messages
    //Color list: http://forums.alliedmods.net/showthread.php?t=96831
    "WelcomeMsg1"
    {
        "#format"    "{1:N}"
        "en"        "{green}Welcome {1}. To see server rules and commands, please type: {default}motd."
    }
    
    "WelcomeMsg2"
    {
        "en"        "{green}Useful commands: {default}!stopall, !damage help, !hlstatsx."
    }
    
    "WelcomeMsg3"
    {
        "en"        "{green}More information about .:€S C 90:. servers on our website: {lightgreen}www.esc90.fr. {green}Have fun! ;)"
    }
    
    "WelcomeMsg4"
    {
        "en"        "{green}Example Line {lightgreen}4"
    }
    
    "WelcomeMsg5"
    {
        "en"        "{green}Example Line {lightgreen}5"
    }
    
    "WelcomeMsg6"
    {
        "en"        "{green}Example Line {lightgreen}6"
    }
    
    "WelcomeMsg7"
    {
        "en"        "{green}Example Line {lightgreen}7"
    }
    
    "WelcomeMsg8"
    {
        "en"        "{green}Example Line {lightgreen}8"
    }
    
    //Panel Messages
    "PanelTitle"
    {
        "en"        "Welcome!"
    }
    
    "PanelClose"
    {
        "en"        "0. Close"
    }
    
    "PanelLine1"
    {
        "en"        "*** To enter a game in progress, please type !respawn. ***"
    }
    
    "PanelLine2"
    {
        "en"        "*** Alternatively, type !redie if respawn is not allowed. ***"
    }
    
    "PanelLine3"
    {
        "en"        "*** Only three rules here: No insult or rage, no bhop script or cheat, fair play only. ***"
    }
    
    "PanelLine4"
    {
        "en"        "*** As it is a surf server, spawn kill and camping at jail will also be punished.*** "
    }
    
    "PanelLine5"
    {
        "en"        "Have a good surfing time ;)"
    }
    
    "PanelLine6"
    {
        "en"        "Example Line 6"
    }
    
    "PanelLine7"
    {
        "en"        "Example Line 7"
    }
    
    "PanelLine8"
    {
        "en"        "Example Line 8"
    }
    
    "PanelLine9"
    {
        "en"        "Example Line 9"
    }
    
    "PanelLine10"
    {
        "en"        "Example Line 10"
    }
    
    "PanelLine11"
    {
        "en"        "Example Line 11"
    }
    
    "PanelLine12"
    {
        "en"        "Example Line 12"
    }
    
    "PanelLine13"
    {
        "en"        "Example Line 13"
    }
    
    "PanelLine14"
    {
        "en"        "Example Line 14"
    }
    
    "PanelLine15"
    {
        "en"        "Example Line 15"
    }
    
    "PanelLine16"
    {
        "en"        "Example Line 16"
    }
    //Hint Message
    "HintMessage"
    {
        "en"        "Type !respawn to enter the game, or !redie if respawn is off on this map."
    }
    
    //Mod Detection
    "Insurgency"
    {
        "en"        "Set the maximum number of lines for Insurgency mod."
    }
    
    "L4D"
    {
        "en"        "Set the maximum number of lines for Left 4 Dead."
    }
        
    "Other"
    {
        "en"        "Set the maximum number of lines of."
    }
}
Please do something. The errors mention a timer problem, that might be a clue.

Regards,

St00ne

Last edited by St00ne; 02-24-2012 at 18:42.
St00ne is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 02-24-2012 , 18:53   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #88

From what I've experienced that error happens when someone connects and then leaves the game before they join and see the welcome message. Don't think I've had any problems and I get that error quite a bit.
serpentine is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 02-24-2012 , 19:32   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #89

Sounds like the plugin is passing a client index through a timer
__________________
DarthNinja is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-24-2012 , 19:35   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #90

It should not happen if you use the one I posted here, fixed passing client index into the timer and other fixes: http://forums.alliedmods.net/showpos...5&postcount=83
__________________
Silvers 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 01:51.


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