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

Connect Announce


Post New Thread Reply   
 
Thread Tools Display Modes
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 03-19-2016 , 20:09   Re: Connect Announce
Reply With Quote #811

PHP Code:
L 03/20/2016 00:01:17: [SMPlugin encountered error 25Call was aborted
L 03
/20/2016 00:01:17: [SMNative "ThrowError" reportedUsing two team colors in one message is not allowed
L 03
/20/2016 00:01:17: [SMDisplaying call stack trace for plugin "_cannounce_1.7.smx":
L 03/20/2016 00:01:17: [SM]   [0]  Line 421C:\Dev\sourcemod\cannounce\trunk\tools\sourcemod-1.7.3\addons\sourcemod\scripting\include\multicolors/colors.inc::C_Format()
L 03/20/2016 00:01:17: [SM]   [1]  Line 84C:\Dev\sourcemod\cannounce\trunk\tools\sourcemod-1.7.3\addons\sourcemod\scripting\include\multicolors/colors.inc::C_PrintToChat()
L 03/20/2016 00:01:17: [SM]   [2]  Line 180C:\Dev\sourcemod\cannounce\trunk\tools\sourcemod-1.7.3\addons\sourcemod\scripting\include\multicolors/colors.inc::C_PrintToChatAll()
L 03/20/2016 00:01:17: [SM]   [3]  Line 74C:\Dev\sourcemod\cannounce\trunk\tools\sourcemod-1.7.3\addons\sourcemod\scripting\include\multicolors.inc::CPrintToChatAll()
L 03/20/2016 00:01:17: [SM]   [4]  Line 276temp\cannounce.sp::PrintFormattedMessageToAll()
L 03/20/2016 00:01:17: [SM]   [5]  Line 149temp\cannounce/countryshow.sp::event_PlayerDisc_CountryShow()
L 03/20/2016 00:01:17: [SM]   [6]  Line 234temp\cannounce.sp::event_PlayerDisconnect() 
Even though I manually installed morecolors.inc in scripting\include folder, this error still occurred.
--Reply--
I play L4D2 and new colors I used were "RED","WHITE" and "DODGERBLUE". How do I prevent above mistake and choose available colors? May I use lowercase to represent colors like "DodgerBlue" or "dodgerblue"?
__________________
Kill all the son of a bitches, that's my official instructions.
L4Dε Modified Talker

Last edited by bazrael; 03-21-2016 at 20:23. Reason: Reply
bazrael is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 03-21-2016 , 19:20   Re: Connect Announce
Reply With Quote #812

Includes dont work that way - you only need to have them available when compiling the smx. In fact you dont even need the scripting directory on your server when running it.

As for the error, this is part of the Multi Colors (https://forums.alliedmods.net/showthread.php?t=247770) lib i used. It appears to be if you try and use say Red and Blue (team based colors) in one text string and it doesnt like that.
__________________
Arg! is offline
Synthax
Member
Join Date: Mar 2015
Old 04-03-2016 , 00:20   Re: Connect Announce
Reply With Quote #813

Can this plugin include a cvar like sm_ca_mapstartnosound but for join messages? Every map change, there's a huge list of connect messages that flood chat, especially for server staff.
__________________

Synthax is offline
TGMasterVN
Member
Join Date: May 2014
Location: Earth
Old 04-03-2016 , 01:17   Re: Connect Announce
Reply With Quote #814

Quote:
Originally Posted by Synthax View Post
Can this plugin include a cvar like sm_ca_mapstartnosound but for join messages? Every map change, there's a huge list of connect messages that flood chat, especially for server staff.
You just need to set "sm_ca_connectdisplaytype 0"
TGMasterVN is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 04-04-2016 , 09:42   Re: Connect Announce
Reply With Quote #815

Thank you for the new update. I am using this quite long now and never had problems with older versions and the new one.

Only one thing was always some kind of not working:
/geolist payername gives the result that player comes from unknown region and also joinmessage says that on every player. I tried to reinstall GeoIPextension but it does not work.

Game is DODS.

I have no errorlogs about this. Maybe I just am overlooking something (e.g. ports in ubuntu or something in extension)
__________________
micazoid is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 04-04-2016 , 20:46   Re: Connect Announce
Reply With Quote #816

Cant see how could be port related but definetly sounds like something is wrong with the GeoIP data in your sourcemod installation.
Either that or there is NO data in the GeoIP dat file for your region!

I suspect you can download a newer version of GeoIP from here

http://dev.maxmind.com/geoip/legacy/geolite/

but i have not tried this myself so perhaps backup the old DAT file first in case it breaks stuff!
__________________
Arg! is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 04-05-2016 , 01:14   Re: Connect Announce
Reply With Quote #817

Thank you for your reply.

No I am in a known region. Germany was known by the extension and your plugin (a long time ago)

I reinstalled GeoIP.dat into addons/sourcemod/configs/geoip but it does not work.

While I was writing the above I had the idea to replace all Region/Country Placeholders by Placeholders I nedd Geoipextension. It works now. xD

Thank you for your help =)

Edit: *sigh* I had to restart server, just mapchange did not change it. Other Placeholders work now as well. Thank you for your help xD
__________________

Last edited by micazoid; 04-05-2016 at 01:18.
micazoid is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 04-18-2016 , 14:19   Re: Connect Announce
Reply With Quote #818

Can someone post an example of a config using {PLAYERNAME} correctly? I am trying this and getting the plain text.

Code:
"CustomJoinMessages"
{
	"STEAM_0:1:46158131"
	{
		"playerwasnamed"		"ruler of app"
		"message"		"{PLAYERNAME} is sponsoring this server! Please thank them!"
	}

}



EDIT: Never mind. I can just type the name out my self. Brain farted.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 04-18-2016 at 16:17.
jpwanabe is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 04-18-2016 , 21:43   Re: Connect Announce
Reply With Quote #819

True - but this should work though and your hardcoded workaround wont account for playername changes.

out of curiostity could you put another character at the start of the 'message' parameter just to see if this makes a difference?
__________________
Arg! is offline
pede
Junior Member
Join Date: Oct 2012
Old 05-08-2016 , 16:09   Re: Connect Announce
Reply With Quote #820

BUG:
When someone gets banned the plugin starts spamming: http://i.imgur.com/PRNI85y.jpg
This happened after a steam update (I guess the client is forced to retry or something like that)
Could you please fix this?
Thanks!

Last edited by pede; 05-08-2016 at 16:12.
pede 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 03:47.


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