This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
45cZCV2SPewB7kOh's profile picture

monitor_touch event... Get username?

Started by 45cZCV2SPewB7kOh, 21 February 2015 - 09:26 PM
45cZCV2SPewB7kOh #1
Posted 21 February 2015 - 10:26 PM
.
Edited on 08 July 2018 - 12:38 PM
KingofGamesYami #2
Posted 21 February 2015 - 10:32 PM
No. There is no way of identifying a person with plain cc, with the possible exception of command computers in 1.7 (Can they do this?).

You can identify people with a player detector, from MoarPeripherals.
45cZCV2SPewB7kOh #3
Posted 21 February 2015 - 10:52 PM
.
Edited on 08 July 2018 - 12:39 PM
Bomb Bloke #4
Posted 21 February 2015 - 11:31 PM
… with the possible exception of command computers in 1.7 (Can they do this?).

Nope. There's a MineCraft command which returns the usernames of all players online, but Command Computers don't return string output from commands - only the boolean success values (eg, you can't use "seed" to do anything useful).

In any case, that wouldn't give you any clue as to which user was directly interacting with the system (unless only one player was online…).

One way to make such a door in vanilla ComputerCraft is to set up a rolling key system on a pocket computer, similar to a RL garage door opener.

With certain peripheral mods (eg OpenCCSensors), you can detect players and get all sorts of information about them.
LupoCani #5
Posted 23 February 2015 - 11:19 AM
Wait, seriously? We get a computer dedicated to interacting with the server via commands, and we still can't use them to read information? I though that was the entire point of introducing them.
Bomb Bloke #6
Posted 23 February 2015 - 11:44 AM
Sorry, forgot to mention - the player-listing command I was talking about is for MC 1.8. I was sure I'd written that…

In any case, a CC 1.71 build has just been released to add the string-reading functionality. I've not had an opportunity to test it as yet, but it'll hopefully open up some interesting capabilities.
LupoCani #7
Posted 23 February 2015 - 07:03 PM
Aaand now it's fixed. I can't complain about their timing.