Jump to content




Peripherals for Turtles


31 replies to this topic

#1 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 07 June 2012 - 03:39 PM

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:

#2 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 07 June 2012 - 05:49 PM

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.

#3 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 07 June 2012 - 06:01 PM

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.

#4 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 07 June 2012 - 06:16 PM

View Postxuma202, 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.
That would be more dificult to make, but i think it´s still good.

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 07 June 2012 - 06:25 PM

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.

#6 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 07 June 2012 - 06:54 PM

View PostCloudy, on 07 June 2012 - 06:25 PM, said:

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.
Thanks

#7 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 07 June 2012 - 06:54 PM

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.

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.
Thanks a lot!

#8 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 07 June 2012 - 07:14 PM

View Postxuma202, 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.
It may be easier to use, but it would be very difficult to code for Dan, making something for making a new recipe would be easier than making multiple-device plug 'n play devices, same for the people who have to make the peripherals.

#9 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 07 June 2012 - 07:17 PM

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.

#10 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 07 June 2012 - 07:20 PM

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.

#11 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 07 June 2012 - 08:56 PM

View PostCloudy, 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.
Is it? I don't know, I've never made a mod.

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

#12 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 07 June 2012 - 10:03 PM

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.

#13 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 08 June 2012 - 11:31 AM

View PostDirkus7, 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.
http://www.computerc...-or-usb-cables/

#14 DarkNinja2462

  • Members
  • 107 posts
  • LocationThe 4th Dimension

Posted 08 June 2012 - 11:02 PM

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

#15 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 18 June 2012 - 06:40 AM

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

#16 BigSHinyToys

  • Members
  • 1,001 posts

Posted 18 June 2012 - 08:47 AM

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.

#17 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 18 June 2012 - 10:13 AM

View PostKaoS, 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.

#18 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 18 June 2012 - 10:29 AM

I think he meant to let the turtle mount peripherals from it's own inventory. It would take and attach them on command.

#19 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 18 June 2012 - 10:39 AM

I should quote posts I am replying to - I know what BigSHinyToys meant :(/>

#20 BigSHinyToys

  • Members
  • 1,001 posts

Posted 18 June 2012 - 11:44 AM

View PostXfel, 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.
I have never been good with words you have described my suggestion better that I did thanks.

View PostCloudy, on 18 June 2012 - 10:39 AM, said:

I should quote posts I am replying to - I know what BigSHinyToys meant :(/>
No harm no foul, Is all good :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users