Can LUA access player names?

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.
Post Reply
User avatar
xilef
Cyborg
Posts: 186
Joined: Jul 6th '08, 22:30
Contact:

Simple question, can LUA access the players name?
If it can, what code is needed?

And also, can it handle parts of strings? So if a player's name had [BoB] infront of it can lua give them a napalm flame-thrower?
User avatar
thermoplyae
Mjolnir Mark IV
Posts: 735
Joined: Sep 10th '06, 17:35
Contact:

DOC UMEN TATION exists for a reason

"what code is needed" is not a good sign
dude, seriously. dude.
User avatar
Vladtepes
Cyborg
Posts: 96
Joined: Jan 4th '09, 10:57
Location: Nantes, France
Contact:

Aleph One Lua Scripters' Guide
lua-users wiki: String Library Tutorial


(Short answer: yes it is possible but don't count on me to actually code you that)
irons wrote:QUOTE(irons @ Dec 18 2009, 12:47 AM) LEAVE ME ALONE STOP HURTING MY FEELINGS
Image
User avatar
interion
Cyborg
Posts: 331
Joined: Oct 20th '07, 18:34
Contact:

This question is obviously a precursor to scripts designed to help players cheat based on clan identifiers in their names. Next he'll probably be asking how to reduce damage they take or how to create an aim bot. Let the clanwars begin!
User avatar
irons
Vidmaster
Posts: 2651
Joined: Mar 1st '06, 20:44
Location: (.Y.)
Contact:

[qoou] would win anyway.
underworld : simple fun netmaps // prahblum peack : simple rejected netmaps
azure dreams : simple horrible netmaps // v6.0!!!: thomas mann's greatest hits : simple simple netmaps
User avatar
The Thug
Vidmaster
Posts: 1014
Joined: Jul 9th '07, 22:20
Contact:

I beg to differ.
Childhood is not a race. It's a journey.
User avatar
megabyte
Vidmaster
Posts: 1006
Joined: Feb 15th '07, 02:43
Location: Asympotatoes, Mars
Contact:

I had made a reasonable administration script (team management) a while back for this one unruly guy who is always online and always likes to unbalance teams. It allowed me to change people's teams during the game.
I can polish it up and upload it once I finish survival if you guys like.
Its just like the story of the grasshopper and the octopus. All year long the grasshopper kept burying acorns for winter while the octopus mooched off his girlfriend and watched TV. Then the winter came, and the grasshopper died, and the octopus ate all his acorns and also he got a racecar. Is any of this getting through to you?
Favorite quote
ASYMPOTATOES http://asympotatoes.blogspot.com/
[viral]
User avatar
interion
Cyborg
Posts: 331
Joined: Oct 20th '07, 18:34
Contact:

Megabyte wrote:I had made a reasonable administration script (team management) a while back for this one unruly guy who is always online and always likes to unbalance teams. It allowed me to change people's teams during the game.
I can polish it up and upload it once I finish survival if you guys like.
You're not going to be more specific about who this player is?
User avatar
megabyte
Vidmaster
Posts: 1006
Joined: Feb 15th '07, 02:43
Location: Asympotatoes, Mars
Contact:

Starts with K, ends with ampfer.
Its just like the story of the grasshopper and the octopus. All year long the grasshopper kept burying acorns for winter while the octopus mooched off his girlfriend and watched TV. Then the winter came, and the grasshopper died, and the octopus ate all his acorns and also he got a racecar. Is any of this getting through to you?
Favorite quote
ASYMPOTATOES http://asympotatoes.blogspot.com/
[viral]
User avatar
treellama
Vidmaster
Posts: 6110
Joined: Jun 2nd '06, 02:05
Location: Pittsburgh
Contact:

I find the metaserver's .wank command works well for unruly players. If enough people do it, he'll get the message.
Last edited by treellama on Feb 24th '10, 02:16, edited 1 time in total.
User avatar
interion
Cyborg
Posts: 331
Joined: Oct 20th '07, 18:34
Contact:

Treellama wrote:I find the metaserver's .wank command works well for unruly players. If enough people do it, he'll get the message.
Don't forget .mute, and .mutepm which K------ recently forced me to look up because of all his pm spam.
User avatar
xilef
Cyborg
Posts: 186
Joined: Jul 6th '08, 22:30
Contact:

Actually I was thinking of having admin weaponry, so admins get a gold AR with no stat differences, it's just gold.

Originally I wanted to add custom torsos for admins, but shape patch files can't be that big, perhaps custom legs...
User avatar
treellama
Vidmaster
Posts: 6110
Joined: Jun 2nd '06, 02:05
Location: Pittsburgh
Contact:

I am the only Marathon admin on the metaserver. I'm flattered you would consider this, though.
User avatar
xilef
Cyborg
Posts: 186
Joined: Jul 6th '08, 22:30
Contact:

Treellama wrote:I am the only Marathon admin on the metaserver. I'm flattered you would consider this, though.
I mean admins of their own net games, when a host has my admin script running.
User avatar
treellama
Vidmaster
Posts: 6110
Joined: Jun 2nd '06, 02:05
Location: Pittsburgh
Contact:

You're determining who hosts a game by their player name? And then calling him an admin?

What's wrong with you?
Last edited by treellama on Feb 24th '10, 17:54, edited 1 time in total.
User avatar
irons
Vidmaster
Posts: 2651
Joined: Mar 1st '06, 20:44
Location: (.Y.)
Contact:

Jeezus, Treellama, makes sense to me.
underworld : simple fun netmaps // prahblum peack : simple rejected netmaps
azure dreams : simple horrible netmaps // v6.0!!!: thomas mann's greatest hits : simple simple netmaps
User avatar
Bobwithkeycard
Mjolnir Mark IV
Posts: 490
Joined: Feb 23rd '06, 16:31
Location: AMS-Tower
Contact:

heh, have fun expecting ppl to trust games hosted by you with such a script around, doesn't matter if you actually use it to your advantage.
Image
I bring my own plasma rifle to the house of pain
User avatar
irons
Vidmaster
Posts: 2651
Joined: Mar 1st '06, 20:44
Location: (.Y.)
Contact:

Bobwithkeycard wrote:heh, have fun expecting ppl to trust games hosted by you with such a script around, doesn't matter if you actually use it to your advantage.
EXPERIENCED CHEATER DETECTED
underworld : simple fun netmaps // prahblum peack : simple rejected netmaps
azure dreams : simple horrible netmaps // v6.0!!!: thomas mann's greatest hits : simple simple netmaps
User avatar
Bobwithkeycard
Mjolnir Mark IV
Posts: 490
Joined: Feb 23rd '06, 16:31
Location: AMS-Tower
Contact:

dude, get off my case. Being familiar with Aleph's lua you know as well as I do how to determine who's host player in a game and that a script can act accordingly. The only difference is that despite this knowledge you say about yourself to have standards not to misuse this information to cheat but imply others most certainly would.
I don't quite understand why you keep displaying this rude behaviour towards me, I have barely even had a real chat with you over the years.
Image
I bring my own plasma rifle to the house of pain
User avatar
irons
Vidmaster
Posts: 2651
Joined: Mar 1st '06, 20:44
Location: (.Y.)
Contact:

Bobwithkeycard wrote:I have barely even had a real chat with you over the years.
I was only kidding. I thought the giant red text would be a hint.

This thread does remind me of a story, though. In the days before A1 had "latency tolerance," I saw fit to create an "admin script" that kicked players from the game. This was also before Lua could detect action triggers, so the "interface" was ultra-primitive. But even more primitive was the method of kicking: Lua printed a certain character to the lucky player's screen, thus crashing his game. It also played an assimilated VacBob sound, which, with a little luck, said "I LOVE YOU MAN" right before the guy got kicked. I gave it to one person (he will remain nameless until I see him reading this thread) and he abused the hell out of it, so much so that Treellama was compelled to fix the bug that enabled the crash in the first place. Those were good days.
underworld : simple fun netmaps // prahblum peack : simple rejected netmaps
azure dreams : simple horrible netmaps // v6.0!!!: thomas mann's greatest hits : simple simple netmaps
User avatar
treellama
Vidmaster
Posts: 6110
Joined: Jun 2nd '06, 02:05
Location: Pittsburgh
Contact:

There are plenty of other ways to cause the game to assert out (if Game.over is too refined for you); this one had to be fixed because it was an array overflow that could have been exploited.

Admin scripts are playing with fire, though. Lua scripts should treat everyone equally, including the host; otherwise you run the risk of being accused of cheating.
User avatar
irons
Vidmaster
Posts: 2651
Joined: Mar 1st '06, 20:44
Location: (.Y.)
Contact:

I knew I should have shared the exploit with hacksforever instead of telling you :C
underworld : simple fun netmaps // prahblum peack : simple rejected netmaps
azure dreams : simple horrible netmaps // v6.0!!!: thomas mann's greatest hits : simple simple netmaps
User avatar
Bobwithkeycard
Mjolnir Mark IV
Posts: 490
Joined: Feb 23rd '06, 16:31
Location: AMS-Tower
Contact:

I was only kidding. I thought the giant red text would be a hint.
aight, good story then, I guess. On that topic: might be worth a feature request...to be able to play specific sounds inside a sound slot, such as that assimilated bob sound. Would be funny to have a scripted bob running around in circles on the map somewhere saying certain stuff on specified occasions...their sound library is quite big :)
Image
I bring my own plasma rifle to the house of pain
User avatar
Wrkncacnter
Vidmaster
Posts: 1953
Joined: Jan 29th '06, 03:51
Contact:

Bobwithkeycard wrote:aight, good story then, I guess. On that topic: might be worth a feature request...to be able to play specific sounds inside a sound slot, such as that assimilated bob sound. Would be funny to have a scripted bob running around in circles on the map somewhere saying certain stuff on specified occasions...their sound library is quite big :)
Attachments
bobwithfail.png
bobwithfail.png (43.77 KiB) Viewed 7492 times
Post Reply