Author Topic: Uname 1.1 - Keep different name than your Steam name across Gmod servers  (Read 27191 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Does _not_ require ULib/ULX.
Clientside only.

Uname will allow you to keep a name different than your Steam nickname across servers.
============
Usage:
Once connected to a server for the first time, type "Uname <new_name>" in console
Your name will change to <new_name>.
That name will follow you to the next server.
If you ever want to change it to something else, use the same command.

If you want to go back to your steam id, you can type it using Uname, or use UnameClear and reconnect.

============
Install:
Unzip into your Garrysmod Addons folder
Should end up looking like;
garrysmod/addons/Uname

============
Known issue:
When you join a server, players will first see your steam name.
No known workaround for this.
Your name will change to your Uname right right as you spawn.


Keep updated at http://forums.ulyssesmod.net/index.php/topic,3167.0.html
or
http://forums.facepunchstudios.com/showthread.php?t=484080

============
RE: SetInfo
Yes, there is a known command to change a name while connected on a server without changing your steam ID. Yes, this lua script uses that.
However, this goes several steps farther, and remembers and changes to the name between server connections.


RE: Roleplay vs Roleplay Hate
Get over it. This script wasn't written for that.
Personally, I have enough drama in real life to not have to roleplay.
However, yes, this could be handy for the old "jobs must be in names" scripts.

==========
Version 1.1 Changes
*- Now monitors manual/script name changes.
   If another script changes your name, or you manually do it through setinfo, Uname now records it.
*- Auto complete now shows last name changed from while on a server.
   If you change your name while on a server, AutoComplete remembers this last name if you want to change back before leaving. (Only the latest name)
*- Better handling of names with spaces.
   Though you should still use quotes, Uname attempts to figure out what you typed past the first word and use it.
*- Easier handling of names with non-alphanumeric characters
   The autocomplete will show what you are typing with quotes. Hit your down arrow, and Uname will place quotes around what you've typed for you.
   This should help those using []()..() and other character that Source tries to interpret as code and mangles if you don't use quotes.
*- Corrected(?) bug where some names with various combinations of non-alphanumeric characters failed.
*- General code cleanup/error checking. (Warns on character limit, No name given, and same name entry)
« Last Edit: February 02, 2008, 02:32:50 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6215
  • Karma: 394
  • Project Lead
Re: Uname - Keep different name than your Steam name across Gmod servers
« Reply #1 on: January 22, 2008, 05:28:23 PM »
Jolly good show JamminR!
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Uname - Keep different name than your Steam name across Gmod servers
« Reply #2 on: January 23, 2008, 10:25:13 AM »
Interesting. 'Garry' is listed as one of the downloaders of this release from garrysmod.org.
Viewing the profile, I'm 95% sure its Gmod garry.

He also just made a post at his blog about names in Gmod. Mostly aimed at bad Roleplay gamemode coders.
ShaRose mentions in the comments that the name script has already been done (Thanks ShaRose) and points to the FP release.
Perhaps that's why Garry went looking.
Just something curious.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Uname 1.1 - Keep different name than your Steam name across Gmod servers
« Reply #3 on: January 27, 2008, 01:55:39 PM »
Updated. Attached. See changes listed in first post.
Working on an FP post now.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

c0d3r

  • Guest
If it's client side only then whats the point... :-\

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
The fact that it's clientside just means that the server doesn't have to have it for you to use it, not that it won't work online.  It being clientside is better in this case than being serverside.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2720
  • Karma: 428
    • |G4P| Gman4President
If you would have READ the post and knew what this addon did you would know that the reason he made it was for convenience.

YES there is a command to change your name. No you don't know it... it's (setinfo name "name")

The point of this addon is to allow a user to set their name ONCE with it and never have to worry about typing in the command every time they go to a new server and want to change their name. It's a convenience mod, not a necessity mod.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6215
  • Karma: 394
  • Project Lead
He deleted his post. The little bugger. :P
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
And people wonder why I use 'quote' so much. :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6215
  • Karma: 394
  • Project Lead
setinfo name no longer does anything. :(
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
setinfo name no longer does anything. :(

Figures. Garry must have decided to fix the bug I sent him one day, server not distributing the new name, by removing it totally.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
He didn't like people changing their names because of a lua virus that came out that sent somebody to a server and changed their name every 0.1 seconds and spammed chat, So he removed it

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8093
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
[rant]
What a WONDERFUL way to prevent viruses. Turn off features the virus used along, possibly, with the hole, than just plugging the hole itself.

He's turning into a genius. Just like Microsoft. Like when they limited the TCP stack to 10 connections a second because any internet program wouldn't dare try to open more connections than 10 simultaneously.....limiting to 10 in one second will surely prevent the spread of internet virus.

Not allowing name changes will surely prevent viruses. Right? Right?!
[/end rant]

I did a quick look, but for now, didn't find a fix for UName.
May find a fix again someday. Right now, too busy.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Great News j/k Another exploit was found in Garrys Mod, Does the same thing as before, Except doesn't change name :P Every server you join it spams "UBAN INSERTNAMEHERE FROM FP PLZ" again made by AzuSleet

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Yet again, I think garry patched this virus thing, A few weeks time the guy would of found another exploit, At least it gets garry to patch other fixes along with it :D