Peripheral "tools" for safety: possible?
Started by robhol, Jun 25 2014 11:56 AM
14 replies to this topic
#1
Posted 25 June 2014 - 11:56 AM
I just had an idea today.
I've been annoyed for a long time at turtles being unusable in "less-than-100%-trusted" multiplayer. I totally understand why server owners banish them to separate world or disable them entirely, but it still bugs me a LOT.
My idea is actually fairly simple. Would it, at all, be possible to create a peripheral pickaxe/hoe that interfaces with one (or even several) permission/protection mods and checks a player's permission to build/mine in the current area?
I'm dreadfully out of date when it comes to mods and never touched peripheral programming before, so I'm not really in a position to know if this is a workable concept. If you can interface with other mods, you could have it check the proper permissions and even potentially log the changes. Or maybe just outright simulate the turtle's owner Player doing the change and let the other plugins work it from there.
Possible?
I've been annoyed for a long time at turtles being unusable in "less-than-100%-trusted" multiplayer. I totally understand why server owners banish them to separate world or disable them entirely, but it still bugs me a LOT.
My idea is actually fairly simple. Would it, at all, be possible to create a peripheral pickaxe/hoe that interfaces with one (or even several) permission/protection mods and checks a player's permission to build/mine in the current area?
I'm dreadfully out of date when it comes to mods and never touched peripheral programming before, so I'm not really in a position to know if this is a workable concept. If you can interface with other mods, you could have it check the proper permissions and even potentially log the changes. Or maybe just outright simulate the turtle's owner Player doing the change and let the other plugins work it from there.
Possible?
#2
Posted 25 June 2014 - 02:51 PM
Probably, but check in to what you can do with the API to be sure.
#3
Posted 25 June 2014 - 04:32 PM
yes, it should definitely be possible, but with the new equip system I believe it may not be possible to stop them from adding the standard tools onto the Turtle.
#4
Posted 26 June 2014 - 12:38 PM
It's like they're consciously trying to make it as hard as possible >_>
What new system is this? (Again - I'm not really up to date with the latest version)
Could it be disabled in any way at all?
What new system is this? (Again - I'm not really up to date with the latest version)
Could it be disabled in any way at all?
Edited by robhol, 26 June 2014 - 12:39 PM.
#5
Posted 26 June 2014 - 12:49 PM
peripheral's can now be added and removed from a Turtle as opposed to being crafted on the Turtle and that permanently being the attached peripherals.
EDIT: oh I should mention you can still craft them on too
EDIT: oh I should mention you can still craft them on too
Edited by theoriginalbit, 26 June 2014 - 01:45 PM.
#6
Posted 26 June 2014 - 01:06 PM
theoriginalbit, on 25 June 2014 - 04:32 PM, said:
yes, it should definitely be possible, but with the new equip system I believe it may not be possible to stop them from adding the standard tools onto the Turtle.
#8
#10
#13
Posted 26 June 2014 - 09:35 PM
Why should there have to be special tools that check permissions, why not just make all of them check permissions?
You could modify the Java implementation of turtle.dig to check perimissions.
I don't think you'd have to release your modification, you could just keep it on the server.
You could modify the Java implementation of turtle.dig to check perimissions.
I don't think you'd have to release your modification, you could just keep it on the server.
#14
Posted 28 June 2014 - 08:21 PM
I don't know if you can override a peripheral recipe, but if you can then you have your protection tool. CC logs turtle's block placement and destruction under a false player, [ComputerCraft], so it should be possible to change it to the player who crafted the turtle (don't know how)
#15
Posted 28 June 2014 - 09:16 PM
I know I can create a peripheral. The question is how. I'd rather not modify ComputerCraft itself if I don't have to. If nothing else, it's a pain in the ass.
Also, it might be frowned upon.
I'm guessing that apart from the obvious addition of the peripheral, I'd need to patch turtle.dig and similar functions to "reroute" them through the safe versions of the tools.
Also, the turtle would need to keep track of its owner, which I'm not sure it does or if it's even possible? Any idea?
Oh, and if anybody else is interested in the idea and has some experience in modding, I'd love to help given a bit of guidance.
I'm guessing that apart from the obvious addition of the peripheral, I'd need to patch turtle.dig and similar functions to "reroute" them through the safe versions of the tools.
Also, the turtle would need to keep track of its owner, which I'm not sure it does or if it's even possible? Any idea?
Oh, and if anybody else is interested in the idea and has some experience in modding, I'd love to help given a bit of guidance.
Edited by robhol, 28 June 2014 - 09:16 PM.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users











