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

Turtles Bypass Plotme

Started by Terra1, 30 May 2015 - 12:48 PM
Terra1 #1
Posted 30 May 2015 - 02:48 PM
turtles are bypassing plotme by breaking blocks without caring about plotme protection
SquidDev #2
Posted 30 May 2015 - 02:53 PM
This has been addressed in the the latest beta with a turtle permissions API - though this will require the mod providing plotme protection implementing it. This has always been a known issue with ComputerCraft (and most mods that implement some method of world interaction).
Lion4ever #3
Posted 31 May 2015 - 05:55 PM
Here is a temporary solution: http://pastebin.com/1KPk6RhF

It redefines the turtle functions and is getting the location from gps.
SquidDev #4
Posted 31 May 2015 - 06:31 PM
Here is a temporary solution: http://pastebin.com/1KPk6RhF

It redefines the turtle functions and is getting the location from gps.

The trouble is that that could be bypassed using os.queueEvent("modem_message", some arguments). And if someone wishes to maliciously use turtles they will try to find every way to get around it.
Lion4ever #5
Posted 31 May 2015 - 07:45 PM
The trouble is that that could be bypassed using os.queueEvent("modem_message", some arguments). And if someone wishes to maliciously use turtles they will try to find every way to get around it.

The can not queue fake Events when it is in the autostart folder. If they try to get around then better make sure that there is no way around it :D/>
SquidDev #6
Posted 31 May 2015 - 07:59 PM
The trouble is that that could be bypassed using os.queueEvent("modem_message", some arguments). And if someone wishes to maliciously use turtles they will try to find every way to get around it.

The can not queue fake Events when it is in the autostart folder. If they try to get around then better make sure that there is no way around it :D/>

Sorry, should have been more clear. You could override the GPS library to bypass this or queue modem_message events to emulate a GPS result with a fake distance so it thinks it is a particular position when it isn't.
Lion4ever #7
Posted 31 May 2015 - 08:08 PM
Sorry, should have been more clear. You could override the GPS library to bypass this or queue modem_message events to emulate a GPS result with a fake distance so it thinks it is a particular position when it isn't.

The gps.locate() is only called once and that is before any user code can be executed. You could only place a gps host with wrong coodinates, but if players cant deactivate the real gps hosts then gps.locate will fail and they can not use the turtle.
immibis #8
Posted 06 June 2015 - 05:15 AM
The gps.locate() is only called once and that is before any user code can be executed.
So they can start the turtle inside an un-protected area, then drive it into a protected area and still break blocks?
Bomb Bloke #9
Posted 06 June 2015 - 05:25 AM
I would've thought the answer to that to be obvious, even if the code weren't available for you to read. :P/>
Lion4ever #10
Posted 23 August 2015 - 01:50 AM
I just noticed that i have not answerd here yet: Normal players can not place the turtle on the paths between the plots (that what you call the unprotected area). That all turtles placed by oped players outside of a normal player plot can do everything is just so that ops are not limited in their turtle usage.