Jump to content




Turtle Control and chest inventory system


8 replies to this topic

#1 dustpuppy

  • New Members
  • 16 posts
  • LocationWexford, Ireland

Posted 13 October 2012 - 02:10 PM

Hi,
when i started 3 weeks ago with CC and lua, i just wanted to get a bit work done by the turtles. That's where i am now :-)

Most people do an inventory system, that works internal in the turtle. My idea was now to get turtles to know, where they can find items.
The system is very easy. You can send a turtle to a chest. It will suck out one item and ask you for the id. The id is the same then in MC it selft. The information will be saved by an inventory server. Now every turtle/computer can find the item.
I've made some small commands for using this information. Possible someone want's combinate this with turtle internal inventory system.

Setup
Spoiler

The commands
Spoiler

Some of the original programs are changed, like go and turn.
I am open for more ideas and how i can make it better.

Attached Files



#2 ChunLing

  • Members
  • 2,027 posts

Posted 13 October 2012 - 02:43 PM

Looks interesting. I shifted away from API development because I wanted a program that was more portable, but really a lot of what I would like to eventually do is more of an API job.

I think that with enough flexibility in the API, the coordination of turtles can be handled more easily by a central computer that controls several turtles remotely.

#3 dustpuppy

  • New Members
  • 16 posts
  • LocationWexford, Ireland

Posted 17 October 2012 - 05:39 PM

Here a little video. Sorry for the uncut lenght and no sound, but i am lazy :-)


#4 Ralnick

  • New Members
  • 32 posts
  • Locationthe lighter side of Hell -- South Dakota

Posted 19 October 2012 - 05:40 PM

nice idea. are the commands able to be sent from a central location like from the pc in a command center?

#5 dustpuppy

  • New Members
  • 16 posts
  • LocationWexford, Ireland

Posted 19 October 2012 - 05:49 PM

Turtles can be controlled from every computer with a modem in range.
The inventory server it self is high enough to cover a bigger place.

#6 ChunLing

  • Members
  • 2,027 posts

Posted 19 October 2012 - 06:22 PM

You could use a relay system, I have a program that allows a GPS host to also act as a relay. It's still kinda primitive cause I've been working on PDA input for my remote control program, but it works.

#7 Ralnick

  • New Members
  • 32 posts
  • Locationthe lighter side of Hell -- South Dakota

Posted 22 October 2012 - 04:57 AM

nice work.. works nicely with other programs I am using for, remote control. sending commands remotely is nice for get_inventory, deliver and so forth.

thanks for the work you put into this


edit: hmm i guess the remote option is not working as good as i first thought. the program automode is required to be running for some of the other sub programs to work correctly


now for someone to come up with a way for 2 programs to run at the same time. but i am guessing the mod might not have that option in it



#8 74kumi

  • New Members
  • 2 posts

Posted 19 January 2013 - 08:09 PM

This is what im working on, its using your code as a basis but on a much bigger scale. Im running Feed the beast mindcrack pack v7.
Posted Image

#9 xInDiGo

  • Members
  • 105 posts

Posted 27 February 2013 - 06:10 AM

been playing around with this. seems pretty interesting! one question, is there a way to make it so that i can type in a word instead of a number to load materials? with so many numbers it could be hard to remember which is which!

i'm having trouble with controlling a turtle with another computer. i used automode on the turtle, and when i go to the computer and type "use_turtle 0 deliver 1 return" nothing seems to happen.

am i doing this wrong?

::edit::

i was using deliver when i should of been using load. deliver works fine too!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users