Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Join Name Regulator
[SSGM 4.0 Plugin] Join Name Regulator [message #467273] Fri, 11 May 2012 14:27 Go to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
A simple plugin that has the following features:

- Truncating names longer than a configurable limit
- Replacing characters in a name
- Changing a name when a player joins under an illegal name, you can configure the name to change to and the amount of digits appended to it

These features have been done by multiple people over the years, but I felt like writing this anyway. You can contact me under the nick 'iRANian' on renforums.com. To install place 'JoinNameRegulator.dll' in your FDS folder and add an entry under the [Plugins] section of SSGM.ini and at the bottom of that file add:

[JoinNameRegulator]
GuestNick = Player ; Name to use + randomly generated digits when a player joins with an illegal name
GuestAppendDigits = 6 ; How many digits to append to the GuestNick
AllowedNameLength = 18 ; The maximum allowed length for a name, anything longer than this number will be truncated to this maximum

[JoinNameRegulator_IllegalNamesTable]
; Players who join with one of these nicks will have their name changed to the values configured above
01 = Host
02 = Renegade
03 = Unnamed

[JoinNameRegulator_IllegalCharactersTable]
; This replaces an illegal character to the left of the '=' sign with the character on the right

;WhiteSpace = ! ; WhiteSpace is a special value as the character can't be loaded from the INI loading system
;[ = _


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Sun, 22 July 2012 13:05]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Join Name Regulator [message #467275 is a reply to message #467273] Fri, 11 May 2012 15:19 Go to previous messageGo to next message
Sean is currently offline  Sean
Messages: 822
Registered: February 2009
Karma: 0
Colonel
This is really awesome, I know that the old BRenbot had issues with crashing when players joined with illegal nicks. It was also a tad more difficult to ban them. This is really cool, well done. Thumbs Up

Head admin at TmX (The Matrix Sniper server)

irc.thematrixserver.com
The Matrix Sniper: 188.138.84.134:4576
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #472096 is a reply to message #467273] Sun, 22 July 2012 13:05 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
i've got a report this plugin somehow causes a crash in tt.dll so i'm removing the download for it for now.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #472167 is a reply to message #467273] Tue, 24 July 2012 12:07 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
It's because a function used to get a string's length can't handle a string that's only one character long or something like that.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #472450 is a reply to message #467273] Tue, 31 July 2012 04:41 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Funny idea, could you send me the source, maybe i find a second way.

Bückstabü!
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #472455 is a reply to message #472096] Tue, 31 July 2012 06:05 Go to previous messageGo to next message
bmruze is currently offline  bmruze
Messages: 62
Registered: March 2006
Location: South Carolina
Karma: 1
Recruit

iRANian wrote on Sun, 22 July 2012 13:05

i've got a report this plugin somehow causes a crash in tt.dll so i'm removing the download for it for now.


Could you use some code to add +4 numbers/letters to that single character then later do the removal of all 5?


https://content.screencast.com/users/bmruze/folders/Jing/media/b3acb17d-6b52-4e10-8183-eae956a12446/2017-09-02_0843.png
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #472456 is a reply to message #467273] Tue, 31 July 2012 06:31 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
It crashes when a guy with a single character nickname joins the server.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #473953 is a reply to message #467273] Tue, 04 September 2012 13:41 Go to previous messageGo to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
Can you release the source for this plugin regardless?
Re: [SSGM 4.0 Plugin] Join Name Regulator [message #473954 is a reply to message #467273] Tue, 04 September 2012 14:15 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Sure.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: Serverside Flood Protection
Next Topic: [SSGM Plugin] SpaceOut
Goto Forum:
  


Current Time: Fri Nov 08 19:02:15 MST 2024

Total time taken to generate the page: 0.00777 seconds