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

[L4D1 & L4D2] Name Normalizer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7616
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Removes unprinted characters from the player's nickname
    Old 04-25-2021 , 13:45   [L4D1 & L4D2] Name Normalizer
    Reply With Quote #1

    Description:
    Removes unprintable characters from the player's nickname when he is connecting / changing the name.
    This prevents, e.g. the quite often case with Line Break character in nickname, that is breaking an output of other plugins in chat and in logs.

    - Following character codes will be removed: 0 <= X <= 31 (see: http://www.asciitable.com/ ).

    - (optionally) Multiple subsequent "space" characters will be removed.
    - (optionally) Always hide nickname change notification in chat.

    On the following image we can see invisible 0xA (10) character at the end of nickname:


    Perhaps, it's a duplicate of some plugins.

    Difference among other plugins:
    - Country-specific codes (160 - 255) are allowed.
    - Simplicity, I prefer don't accept new feature requests.

    For more features, I would suggest the Uninamer by red!. Although, I didn't test it.
    Settings (ConVars):
    Can be found in: cfg/sourcemod/sm_name_normalizer.cfg
    PHP Code:
    // Eat subsequent space characters? (1 - Yes, 0 - No)
    sm_name_normalizer_eat_multi_space "1"

    // Always hide nickname change notification in chat (1 - Yes, 0 - No)
    sm_name_normalizer_always_hide_nick_change "0" 
    Commands:
    - Nothing.
    Compatiblity:
    - L4D1.
    - L4D2.
    Related plugins:
    - Uninamer (Unicode name changer) by red!
    - [ANY] Smart Link Remover by Totenfluch
    ChangeLog
    Spoiler


    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_name_normalizer.sp - 111 views - 5.0 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-15-2023 at 12:36.
    Dragokas is offline
    Voevoda
    Senior Member
    Join Date: Aug 2016
    Old 04-28-2021 , 07:33   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #2

    hello, does he remove the spaces?
    Voevoda is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-28-2021 , 12:10   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #3

    No, only TAB. Character codes from 0 to 31. See: http://www.asciitable.com/

    Description is updated. Plugin does not remove unicode characters.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-29-2021 , 10:57   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #4

    Updated.

    Quote:
    1.1 (29-Apr-2021)
    - Added ConVar "sm_name_normalizer_eat_multi_space" - Eat subsequent space characters? (1 - Yes, 0 - No)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-05-2021 , 10:08   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #5

    Updated.

    Code:
    1.2 (05-Oct-2021)
    - Added ConVar "sm_name_normalizer_always_hide_nick_change" - to always hide nickname change notification in chat
    - Added missing sm_name_normalizer.cfg config file.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 10-05-2021 at 10:09.
    Dragokas is offline
    KadabraZz
    Senior Member
    Join Date: May 2020
    Old 09-14-2023 , 21:03   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #6

    I'm getting some errors in the log, I don't know if you still maintain this plugin but there is it.
    Code:
    L 09/14/2023 - 21:18:10: Info (map "c12m4_barn") (file "/root/L4D2COOP/left4dead2/addons/sourcemod/logs/errors_20230914.log")
    L 09/14/2023 - 21:18:10: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
    L 09/14/2023 - 21:18:10: [SM] Blaming: FIXES/sm_name_normalizer.smx
    L 09/14/2023 - 21:18:10: [SM] Call stack trace:
    L 09/14/2023 - 21:18:10: [SM]   [1] Line 142, /home/forums/content/files/2/8/2/6/6/7/191726.attach::ValidateName
    L 09/14/2023 - 21:18:10: [SM]   [2] Line 103, /home/forums/content/files/2/8/2/6/6/7/191726.attach::OnClientPutInServer
    SM 1.11
    KadabraZz is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-15-2023 , 12:37   Re: [L4D1 & L4D2] Name Normalizer
    Reply With Quote #7

    @KadabraZz, if the fix simple enough.

    Updated.
    Quote:
    1.3 (15-Sep-2023)
    - Fixed array out of bounds caused by prohibiting access to a cell beyond the array dimension in SM 1.11.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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 08:47.


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