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

Country Nick Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
pat30724
Junior Member
Join Date: Oct 2009
Old 10-27-2010 , 23:18   Re: Country Nick Plugin
Reply With Quote #81

Working on Left 4 Dead Windows server with all latest snapshots.
pat30724 is offline
Lengry
Junior Member
Join Date: May 2010
Old 01-03-2011 , 12:19   Re: Country Nick Plugin
Reply With Quote #82

Russian translation, if it needed.
Attached Files
File Type: txt countrynick.phrases.txt (453 Bytes, 310 views)
Lengry is offline
schordinger
New Member
Join Date: Feb 2012
Old 02-22-2012 , 11:36   Re: Country Nick Plugin
Reply With Quote #83

First off, I love the plugin, thank you for creating it.

Now for the bug report.

Background
I had two player connect, to TF2, with exactly the same name and from the same country. This is not something that I would expect to see happen often, but it happened. I expect that this would happen if two players connected from different countries but with the same name.

Problem
This message continually echoed up on the server to all players:
* AAAAA changed name to [RU]AAAAA
While this was happening over and over again, when I hit the TAB key one of the players was listed as
[RU]AAAAA
and the other one was still listed as
AAAAA



Log files
Here is the relevant part of the console output. To protect the players privacy I have modified the details of them both to be named AAAAA (and AAAAA) with respective steamID's 1 and 2 and corresponding IP addresses of 1.1.1.1 and 2.2.2.2.
Code:
L 02/22/2012 - 15:10:44: "AAAAA<7><STEAM_0:0:1><>" connected, address "1.1.1.1:27005"
Client "AAAAA" connected (1.1.1.1:27005).
L 02/22/2012 - 15:10:44: "AAAAA<7><STEAM_0:0:1><>" STEAM USERID validated
L 02/22/2012 - 15:10:49: "AAAAA<7><STEAM_0:0:1><Unassigned>" changed name to "[RU]AAAAA"
L 02/22/2012 - 15:10:49: "[RU]AAAAA<7><STEAM_0:0:1><>" entered the game
L 02/22/2012 - 15:10:53: "[RU]AAAAA<7><STEAM_0:0:1><Unassigned>" joined team "Blue"
... snip ...
L 02/22/2012 - 15:12:34: "AAAAA<9><STEAM_0:1:2><>" connected, address "2.2.2.2:27005"
Client "AAAAA" connected (2.2.2.2:27005).
L 02/22/2012 - 15:12:35: "AAAAA<9><STEAM_0:1:2><>" STEAM USERID validated
L 02/22/2012 - 15:12:45: "[RU]AAAAA<9><STEAM_0:1:2><>" entered the game
L 02/22/2012 - 15:12:51: "[RU]AAAAA<9><STEAM_0:1:2><Unassigned>" joined team "Blue"
L 02/22/2012 - 15:12:53: "[RU]AAAAA<9><STEAM_0:1:2><Blue>" changed role to "sniper"
I have read through the source (As a friend of mine always says "Use the source Luke, use the Source"). And I would suspect that one possible solution might be to index players on their steamid (STEAM_0:1:2) and not their client (AAAAA). I would fix the bug if I could but my coding and understanding of SourceMod is minimal at best.

Last edited by schordinger; 02-22-2012 at 11:40.
schordinger is offline
milkkore
Member
Join Date: Mar 2012
Old 03-24-2012 , 17:24   Re: Country Nick Plugin
Reply With Quote #84

Is it possible to suppress the $Name has changed his name to [XY]$Name after the join announcement?

Last edited by milkkore; 03-24-2012 at 17:24.
milkkore is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 04-18-2012 , 12:09   Re: Country Nick Plugin
Reply With Quote #85

After the good old update from Valve i am now seeing this.

Game is TF2

L 04/18/2012 - 157:06: [SM] Native "SetClientInfo" reported: IServer interface not supported, file a bug report.
L 04/18/2012 - 157:06: [SM] Displaying call stack trace for plugin "countrynick.smx":
L 04/18/2012 - 157:06: [SM] [0] Line 57, /home/groups/alliedmodders/forums/files/4/4/4/4/2/35552.attach::OnClientPutInServer()

Last edited by Dominatez; 04-18-2012 at 12:15. Reason: Game Name
Dominatez is offline
Oliveros
Junior Member
Join Date: Apr 2012
Location: Norway
Old 04-23-2012 , 16:38   Re: Country Nick Plugin
Reply With Quote #86

After last Steam Uppdate Friday 20/4-2012 this plugins doesnt work enymore.

Wood enybody make a update for this plugins or give me a hint how fix it.

Then activaded it just shows players as name, name1, name2 and so on.
I did try to download the latest GEOIP database from this site and update the server, that didnt help.

So for now i have put the plugins in
Addons/sourcemod/plugins/cut country countrynick /disable folder! Cause it it mess up our servers!

Waiting for a reply a.s.ap on this one.
Thanks.


[OBC] Oliver
The Owner and Creator of [OBC]


Quote:
Originally Posted by AeN0 View Post
This plugin adds the country flag in his/her nickname and announces the player country when he/she connects to the server. This is NOT a country filter plugin.

Example :
Chat message : nickname from USA joined the game
nickname becomes [US]nickname in the scoreboard
if the country is unknown, [--]nickname

Requirements :
  • Sourcemod 1.1 (function SetClientInfo only available since 1.1)
  • GeoIP (included in Sourcemod)
Known bugs :
  • Flag is not set back when players changes his/her nickname ingame (need help on this one, I get infinite loop : hooked player_changename, when player changes name, player_changename is fired, I add the flag into the new nick and set the new nick, player_changename is fired again, etc.)
  • The plugin does not use the translation layer of soucemod. It's only two phrases so ... edit and recompile source.
  • Does not work on Windows servers (see bug 3569 : https://bugs.alliedmods.net/show_bug.cgi?id=3569 ); plugin development halted until this bug is fixed.
  • Sometime you can see the player changing his name twice ([UK]oldname => newname => [UK]newname).
  • According to some people in this thread, this plugin does not work on Windows servers. Awaiting infos...
Changelog :
  • 1.0 - Initial release
  • 1.1
    • Fixed ingame change name (thx Antithasys)
    • Added translation support
    • unknown country => "[--]nickname" instead of "nickname"
  • 1.1.1
    • Fixed warning 219 at compile time
Plan :
  • Ability to custom format the nickname
  • Cvar to disable announcer
Setup :
Put countrynick.smx in plugins and countrynick.phrases.txt in translations. The archive translations.zip contains pl and de languages at the moment.


Misc :
I couldn't found a plugin that adds the flag to the nickname so I made it. It was done for my L4D server but It should work on any other game.

I advice you to update from time to time your GEOIP database to keep the current country <=> IP up to date. The database can be downloaded here http://geolite.maxmind.com/download/...y/GeoIP.dat.gz
Oliveros is offline
Send a message via Skype™ to Oliveros
Percioz
New Member
Join Date: May 2012
Old 05-21-2012 , 10:50   Re: Country Nick Plugin
Reply With Quote #87

I agree with Oliveros here, it would be really nice to get this plugin back on track.
Please tell if you have just given up making updates for this.
Percioz is offline
Oliveros
Junior Member
Join Date: Apr 2012
Location: Norway
Old 07-02-2012 , 19:43   Re: Country Nick Plugin
Reply With Quote #88

This one works again 100%
Oliveros is offline
Send a message via Skype™ to Oliveros
eliseev.dmitry
New Member
Join Date: Mar 2013
Old 03-29-2013 , 11:45   Re: Country Nick Plugin
Reply With Quote #89

I have the same bug, as described upper. A lot of messages like "Player changed nick to [XX] Player" and "[XX] Player changed nick to Player".

See attached screenshots. What to do?

P.S. SourceMod version 1.4.7
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	460
Size:	95.4 KB
ID:	117767   Click image for larger version

Name:	2.jpg
Views:	398
Size:	94.4 KB
ID:	117768  
eliseev.dmitry is offline
OnkelBazi
Member
Join Date: Aug 2006
Location: Bavaria
Old 03-30-2013 , 09:10   Re: Country Nick Plugin
Reply With Quote #90

Quote:
Originally Posted by Percioz View Post
I agree with Oliveros here, it would be really nice to get this plugin back on track.
Please tell if you have just given up making updates for this.
me too
__________________
OnkelBazi 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 10:44.


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