• Uname - Keep a name different than your Steam nickname across servers.
    70 replies, posted
[QUOTE=Mark£d_OÑ£]This is useful. And to the people saying it sucks, it doesn't. It's helpful for me because I like to change my name to "garry [noparse]:D[/noparse]" and join my friends server. But if I change my steam friends name to "garry [noparse]:D[/noparse]", they'll know that it isn't really him.[/QUOTE] Doesn't work like that. They will still see your steam name for a few seconds. [QUOTE=JamminR's release post] ============ 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 as you spawn. [/quote]
I dunno about you guys but have you ever heard of autoexec.cfg?
Slayer44, sure. What does it have to do with Uname? If you get it to work in Gmod, make sure you give exact instructions on how you did it. I removed Uname from my addons folder, and tried autoexec.cfg and config.cfg with the following. [code] name "[ULX] JamminR" setinfo name "[ULX] JamminR" [/code] Neither load at server connect. I'm seriously doubting you've gotten it to work, and think you were throwing that out to try to sound cheeky. I'll apologize publicly in my release post if I'm wrong.
[QUOTE=JamminR]Slayer44, sure. What does it have to do with Uname? If you get it to work in Gmod, make sure you give exact instructions on how you did it. I removed Uname from my addons folder, and tried autoexec.cfg and config.cfg with the following. [code] name "[ULX] JamminR" setinfo name "[ULX] JamminR" [/code] Neither load at server connect. I'm seriously doubting you've gotten it to work, and think you were throwing that out to try to sound cheeky. I'll apologize publicly in my release post if I'm wrong.[/QUOTE] Neither of those would work, as neither is loaded on map start. Server.cfg *is* loaded on server map start, but I don't know whether it counts for clients.
Nice one, and for the roleplay discussion, it really is annoying when you try to address someone with a really random / annoying name. "Would you like a melon ,[SuPaH-LeEt-KiLlA] CaP-a-CoP?"
I suppose you could think of all the LocalPlayer() debacle stuff in the gamemode threads and throw an autorun function which hooks an event like Initialize ;) As for the RP servers, maybe it's time they consider saving and loading names serverside since the engine cutover. Makes more sense anyway, to me. Have it setinfo name based on Steam ID or something..
I've been kind of uninspired lately. Anyone have any ideas for improving this? (I'm still looking for ways to change the name sooner...not sure it's possible)
Will this work between servers? If it doesn't, you could use a table, or something like Advanced Dupe. Also why not include an option under the options menu?
[QUOTE=Sn1per]Will this work between servers? If it doesn't, you could use a table, or something like Advanced Dupe. Also why not include an option under the options menu?[/QUOTE] Work between servers? Not sure what you mean. [QUOTE=JamminR's release post] <clip> Uname Allows you to keep a name different than your Steam nickname across servers. ============ <clip>[/QUOTE] If you mean be able to type it in while not in single player or on a server, Lua doesn't run then. Nice idea about the options menu. I'll consider that.
[QUOTE=anders339]I hate the idea that people actually rename themselves for certain gamemodes, because your name should be good enough for everything, and RP servers shouldn't have the shit rule that you need to rename yourself. I seriously hate that rule.[/QUOTE] I don't think you see people in the streets named "+xXx@ultraK1ll3r@xXx+" and "XxNoob Owner 76xX" in the streets.
[QUOTE=JamminR]Work between servers? Not sure what you mean. If you mean be able to type it in while not in single player or on a server, Lua doesn't run then. Nice idea about the options menu. I'll consider that.[/QUOTE] On X server your name is X, on Y server your name is Y, Z server your name is Z. Something like that.
[QUOTE=Sn1per]On X server your name is X, on Y server your name is Y, Z server your name is Z. Something like that.[/QUOTE] Now I understand. No, it doesn't track servers for names individual to each server. Though there may be some way of doing this, I believe it would make the script much more complicated than necessary due to variables in the server world (mostly with listen servers).
[QUOTE=cheesylard]Yeah, but he used Lua, and thus is a genius.[/QUOTE] [lua] function ChangeUname(ply, command, args) if args[1] == infoname then return end RunConsoleCommand("setinfo", "name", args[1]) StoreUname(args[1]) end concommand.Add ("Uname", ChangeUname, UnameAutoOptions )[/lua] Uh huh. [QUOTE=earthHunter]There's a reason Garry made it use your Steam name. You shouldn't be exploiting it.[/QUOTE] And that reason is that he hates roleplay. What's wrong with roleplay? If you don't WANT to be included you don't HAVE to be included.
Setinfo doesn't remember the name you changed to using setinfo when you change servers. Uname does. I really wish I could ban the people trying to argue here about roleplay. This wasn't written for that. It's off topic. Please take it somewhere else. Thanks. [b]Edit:[/b] [QUOTE=m0dUlator] Uh huh. [/QUOTE] FYI modulator, you have an old version. Yes, as my first release post says, it still uses setinfo. The, well, I won't call it genius, but good idea is the fact it stores the name you changed to, using Lua, just like the old 'name' function used to.
[QUOTE=JamminR]Now I understand. No, it doesn't track servers for names individual to each server. Though there may be some way of doing this, I believe it would make the script much more complicated than necessary due to variables in the server world (mostly with listen servers).[/QUOTE] Take a look at the advanced dupe, and how it makes it into a text file, could be of some use.
Sniper, thanks, but I don't wish Uname to remember multiple names for multiple servers. I didn't mean complicated as in providing too much challenge for me. I meant complicated as in overcoding this release. Though a server/client based solution could be used for multiple servers, as Advanced Duplicator does, I don't want to require servers to have parts of this release for the "different name per server" idea to work. If anyone wishes to use ideas in this code and use it for some gamemode and convert it into server and client base, they are more than welcome to. When/if I find time, I am considering the options menu idea.
It shouldn't take server and client to know it. Just one or the other. I was using Advanced Dupe as an example of the text file.
Here's an inspiring idea for ya. :) I would like Uname to act on "some" servers I connect to, whereas the random servers I might connect to I could care less. Why? I try to don my community tag when on our own servers, where I might refrain from it on a couple other servers. Similarly, I might want to be Mr. Pizza on some RP (yes, I just made that up). I guess what I'm getting to is having it be granular based on where I am. Perhaps Unamehere <my awesome name> would store the server IP:Port for recall when I reconnect to it. Update: Yeah, my time is limited as well. ;)
[QUOTE=urMom]store the server IP:Port for recall when I reconnect to it.[/QUOTE] Both you and sniper's idea are sound and good. But there in lies the same complexity issue. Though it is true that many good community servers are static addresses, I know many that aren't. A server I often frequent (at least, used to. Darn that time thing) is a dedicated server on a non-static cable provider. Though the host pays for the beefier upstream to allow more players than normal, he doesn't pay the extreme 'business tier' cost for static IP addresses. I know of no single unique identifier that could be used in Lua for a server, other than hosting a portion of the script on the server itself. One might say "Let the user worry about updating their name when the <whatever is used to track|IP|name> changes" Various methods could be used to keep the storage clean, but each one adds its own different pros and cons. I'm not saying never, but I am currently saying no for now.
You present a good and applicable point. The servers for either using or not using are static.. didn't think about that. By name perhaps? Yeah, I know that too changes.. can't win! ;) Good job on the addon, though. Me likey.
[QUOTE=Sn1per]On X server your name is X, on Y server your name is Y, Z server your name is Z. Something like that.[/QUOTE] [QUOTE=urMom] I would like Uname to act on "some" servers I connect to, whereas the random servers I might connect to I could care less. Why? I try to don my community tag when on our own servers, where I might refrain from it on a couple other servers. Similarly, I might want to be Mr. Pizza on some RP (yes, I just made that up). [/QUOTE] Sniper, urMom, Kudomiku has made a release called Nicknames that has server side capability. Perhaps you could request these features of him. [url]http://forums.facepunchstudios.com/showthread.php?p=9532498[/url]
cool
Interesting note about this addon. When your in game and you spawn a prop, your steam name still shows on it despite the change to your in game name.
Ascendant, this is an issue with Garry's mod since the March 31 update. The server no longer announces player name changes, either to itself, or other players that a name has changed. The only way I've noticed is when they say anything. I've written Garry about this. Suprisingly, he responded. Once. After I gave more information, I didn't get any more response whether he'd add it to his to do list, or even cared.
this doesn't work for me anymore, is it broken?
Garry removed the command it depends on.
So make a steam name changer, use luasocket etc...
[QUOTE=SippingStraw]So make a steam name changer, use luasocket etc...[/QUOTE] That idea goes far beyond the scope of what I intended Uname to be. Garry never fixed the original issue with servers not keeping track of the name changes in the lua engine. My understanding is that someone took advantage of that in malicious code. Garry's 'fix' to prevent it from happening again was to disable the command that Uname and a few other name changing scripts. As of this point, Uname is retired. I'm currently busy in real life, and this project is at the bottom of my 'to do list'
Wireshark while name-changing in steam or use an http sniffer to watch steam while you change name. Then read the http post and make a lua function to set name for utility, and GUESS WHAT, replace it with current command that gets run. It's not hard...unless steam doesn't use HTTP POST to set name.
[QUOTE=SippingStraw]Wireshark while name-changing in steam or use an http sniffer to watch steam while you change name. Then read the http post and make a lua function to set name for utility, and GUESS WHAT, replace it with current command that gets run. It's not hard...unless steam doesn't use HTTP POST to set name.[/QUOTE] You realize that we're now getting far beyond the simple scope of a few lines of script for a convenience boost? The best thing would be for Garry to let setinfo name work properly (it still sends information to the servers, after all, so he didn't fix the bandwidth concern:v:) and just put it on a timer so that you can't spam it, since one of his reasons for removing its functionality was spammy animated name scripts which were updating once every tenth of a second. ...It's not going to happen, is it?:sigh:
Sorry, you need to Log In to post a reply to this thread.