Peripherals for Turtles
xuma202 07 Jun 2012
Hello,
what do you think of peripherals for Turtles.
You could attach them to a turtle and they add an API to the Turtle. Similar to normal Peripherals but without an extra Block so that the Turtle can move with it's peripherals.
So we can create a Peripheral and when the turtle calls a method of this peripheral, according java code would be executed, just as with a normal peripheral. The only difference would be access (in Java) to the Turtles moving operations and it's inventory and information about position and rotation.
You could create peripherals allowing a turtle to interact with their environment more than already possible and lot's of other crazy things.
I hope you all understand what I mean. Expanding to the turtles abilities would get possible with such a feature.
Greetings xuma202
REASONS WHY WE NEED THIS:
all this would get possible:
what do you think of peripherals for Turtles.
You could attach them to a turtle and they add an API to the Turtle. Similar to normal Peripherals but without an extra Block so that the Turtle can move with it's peripherals.
So we can create a Peripheral and when the turtle calls a method of this peripheral, according java code would be executed, just as with a normal peripheral. The only difference would be access (in Java) to the Turtles moving operations and it's inventory and information about position and rotation.
You could create peripherals allowing a turtle to interact with their environment more than already possible and lot's of other crazy things.
I hope you all understand what I mean. Expanding to the turtles abilities would get possible with such a feature.
Greetings xuma202
REASONS WHY WE NEED THIS:
all this would get possible:
- Arrow shooting
- Better detection
- Right click abilities
- Crafting
- Reading Signs
- A Compass
- A Camera
- Self destruction
- Placing Pipes (if not yet fixed)
- Using Buckets
- Dynamic chunk loading
- Light level measuring
- Amazing Chest interaction
- Moblie jukebox
- Everything peripherals already do.
Dirkus7 07 Jun 2012
So you could craft it like a wireless turtle, but with the peripheral you want. I like the idea. So Dan doesn't have to make the peripherals, but just the code for crafting them with a turtle. I don't know if it's possible, but i like it.
xuma202 07 Jun 2012
No I actually didn't thought of craft it with the peripheral.
You could just hold Shift and then right click the Turtle with a peripheral and it will be attached. Like a usb-stick. This would allow you to attach multiple peripherals.
You could just hold Shift and then right click the Turtle with a peripheral and it will be attached. Like a usb-stick. This would allow you to attach multiple peripherals.
Dirkus7 07 Jun 2012
xuma202, on 07 June 2012 - 06:01 PM, said:
No I actually didn't thought of craft it with the peripheral.
You could just hold Shift and then right click the Turtle with a peripheral and it will be attached. Like a usb-stick. This would allow you to attach multiple peripherals.
You could just hold Shift and then right click the Turtle with a peripheral and it will be attached. Like a usb-stick. This would allow you to attach multiple peripherals.
Cloudy 07 Jun 2012
I've been thinking of a system like this - I still think it would be crafting based, but there's no reason multiple peripherals can't be attached. I'll speak to dan about it.
Dirkus7 07 Jun 2012
xuma202 07 Jun 2012
Ok if you think so. Great. I thought it would be easier with the Shift-Clicking stuff but in the End no one cares about how do make these peripherals.
Thanks a lot!
Quote
I've been thinking of a system like this - I still think it would be crafting based, but there's no reason multiple peripherals can't be attached. I'll speak to dan about it.
Dirkus7 07 Jun 2012
xuma202, on 07 June 2012 - 06:54 PM, said:
Ok if you think so. Great. I thought it would be easier with the Shift-Clicking stuff but in the End no one cares about how do make these peripherals.
Cloudy 07 Jun 2012
It is actually probably easier to make it done using shift click actually! But I just feel crafting fits better - makes it take a little bit of work and makes your choices matter as you can't uncraft once crafted.
xuma202 07 Jun 2012
Well let's see for now what dan thinks about this. In my opinion we don't have to go into detail before we actually know if dan has the intention of adding peripherals for turtles.
If you want to list the peripheral built-in to a turtle in its item name/tool-tip they may get pretty long if there are lots of peripherals built-in to a Turtle but this would be the only problem I can think of.
If you want to list the peripheral built-in to a turtle in its item name/tool-tip they may get pretty long if there are lots of peripherals built-in to a Turtle but this would be the only problem I can think of.
Dirkus7 07 Jun 2012
Cloudy, on 07 June 2012 - 07:17 PM, said:
It is actually probably easier to make it done using shift click actually! But I just feel crafting fits better - makes it take a little bit of work and makes your choices matter as you can't uncraft once crafted.
Maybe it could be a special turtle, differently crafted. It has some extra slots where you can put in the peripheral items, so it could use them this way:
p1 = peripheral.slot(int slot) -- I think this one is better p1.getType() --or peripheral.getType(int slot) --you replace the side with the slot number
This could also be an option, it's easy to use.
Three slots max, for 3 peripherals (should be enough)
Think about it
Cloudy 07 Jun 2012
I did have a prototype in a decompiled version of CC before I had access to the source of exactly that - but I think the crafting approach makes changes more permenant and I think it fits in more.
xuma202 08 Jun 2012
Dirkus7, on 07 June 2012 - 08:56 PM, said:
Three slots max, for 3 peripherals (should be enough)
Oh no please don't limit the amount of peripherals. I would highly appreciate it if you make this changeable in the config files. otherwise we will later run into problems wich we already see with normal peripheral. Or why else did Xfel already thought of a Peripheral that acts as a HUB
Quote
I worked on a peripheral for that, but I didn't find a good routing model. If somebody has an idea, I might try it.
DarkNinja2462 08 Jun 2012
Like a turtle has a regular inventory, it could also have a 3x3 storage spaces for "Peripheral Cards," almost like the module cards for logistics pipes "Chassis Pipes."
Edit: oops. Dirkus7 already said that
Edit: oops. Dirkus7 already said that
KaoS 18 Jun 2012
BAWARE AND BE WARNED - having plug n' play devices that you shift and right click on a turtle will be located in the block next to it (like the modem attached to a computer uses up a space next to it) so be very careful how you do this. if you place a peripheral like that on the side of a turtle it will be unable to go into a 1 wide tunnel. the only way around it is to make it change the turtle block when you add a peripheral and then Dan will have to design as turtle block for EVERY possible combination of peripherals. this will not be easy to make
BigSHinyToys 18 Jun 2012
the simples solution would be making turtles capable of equipping its own peripherals eg turtleEquip("Left",1) left for the side and 1 for the location of the peripheral in its inventory. this would allow turtles to add and move peripherals in the field and to customize the devices it carries and where they are equipped.
e.g. the turtle has a modem in its inventory and no peripherals connected. the turtle runs turtleEquip("top,1) the turtle now has a modem on top of it. then uses turtleUnEquip("top") or turtleUnEquip("top",3) if you want to specify where in inventory you would like it to be moved into.
e.g. the turtle has a modem in its inventory and no peripherals connected. the turtle runs turtleEquip("top,1) the turtle now has a modem on top of it. then uses turtleUnEquip("top") or turtleUnEquip("top",3) if you want to specify where in inventory you would like it to be moved into.
Cloudy 18 Jun 2012
KaoS, on 18 June 2012 - 06:40 AM, said:
BAWARE AND BE WARNED - having plug n' play devices that you shift and right click on a turtle will be located in the block next to it (like the modem attached to a computer uses up a space next to it) so be very careful how you do this. if you place a peripheral like that on the side of a turtle it will be unable to go into a 1 wide tunnel. the only way around it is to make it change the turtle block when you add a peripheral and then Dan will have to design as turtle block for EVERY possible combination of peripherals. this will not be easy to make
Why would it mean that it is placed next to the turtle? It would be easy to have logic to be able to attach peripherals that move with turtles without making it a block.
Xfel 18 Jun 2012
I think he meant to let the turtle mount peripherals from it's own inventory. It would take and attach them on command.
BigSHinyToys 18 Jun 2012
Xfel, on 18 June 2012 - 10:29 AM, said:
I think he meant to let the turtle mount peripherals from it's own inventory. It would take and attach them on command.
Cloudy, on 18 June 2012 - 10:39 AM, said:
I should quote posts I am replying to - I know what BigSHinyToys meant />