4 posts
Posted 14 March 2013 - 04:58 PM
Ok, i really don't have the time to learn the ins and outs to make what i need at the moment. we are having a greifer issue on our server. I'm hoping to use CC sensors to log player names as they enter an area. (logging players name who come thru a nether portal) for example this will make it easier for our admin to take the griefer/s down.
i've looked thru the tuts here on sensors and peripherals but i keep getting the no such program error with anything i try. I have no basic knowledge of the CC lua.
What is really needed and to keep it simple (i hope) is for a hidden computer to read when a player passes by it and save the player name on a disk in case the server goes down. can anyone help me with this or point me to a tut n the issue?
8543 posts
Posted 14 March 2013 - 07:00 PM
Split into new topic. A title was provided for you.
Which version of ComputerCraft are you on? Which sensors mod are you trying to use for this?
84 posts
Posted 14 March 2013 - 07:45 PM
I think some plugins would be a better solution for you, it doesnt seem like you guys are all that interested in computercraft!
4 posts
Posted 15 March 2013 - 02:21 AM
ComputerCraft 1.5
Immibis Core 52.4.5
Immibis's Peripherals 52.1.1
MiscPeripherals 3.1b
OpenCCSensors 0.1.4
CClights 1.4.1
We have so many mods on our server i just havnt spent the time on CC.
Any server side mod or plugin would be welcome too. We as players are look for ways to catch this annoying prick.
730 posts
Location
London, UK
Posted 15 March 2013 - 02:40 AM
Install OpenCCSensors
put a computer down, put a sensor to the left of it. Insert a tier 4 proximity sensor.
Type the following:
pastebin get qfK8vJtW startup
startup
It'll display any players that have entered the area surrounding the sensor. Put a few of theses around to keep tabs on who has been near your base.
My lua isn't great, and this is completely untested, so sorry if it doesn't work, but this should be a good starting point.
Here's the code in case anyone wants to make it better:
http://pastebin.com/qfK8vJtWAs I said, I'm not all that good at Lua.
This *should* save and reload data from a file, so you shouldn't lose any info.
4 posts
Posted 15 March 2013 - 03:11 AM
Thanks a ton. I will give this a try when i get home from work.
4 posts
Posted 15 March 2013 - 11:08 AM
Um, ok i didnt make the mk4 sensor yet. just wanted to test the script beforehand with the mk1. download works fine but when the file is ran it just locks up the computer. had to break the computer and replace it to get access again. thanks for the attempt tho
i found this on the wiki. i tryed it to see if it would return anything
os.loadAPI("ocs/apis/sensor")
local prox = sensor.wrap("left")
print(textutils.serialize(prox.getTargets()))
the os.loadAPI line returns no such program