Jump to content




Item ID/Amount Checker


  • You cannot reply to this topic
11 replies to this topic

#1 MadCrayolaz

  • New Members
  • 39 posts

Posted 10 August 2012 - 04:05 AM

Wondering if it would be possible for a peripheral to be made that will allow items to be put inside of it, and run a cc program that would get the id's and amount of the item in the stack of each item in it? Context of this would be for making a trade system. They could input, lets say, 2 iron bars, the computer would run to see if it's a valid trade, and then send a request for the trade items.

#2 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 10 August 2012 - 06:23 AM

Look at the arp peripherals. They can do that.

#3 MadCrayolaz

  • New Members
  • 39 posts

Posted 10 August 2012 - 02:14 PM

I tried installing it, but it conflicted with Forestry, and once I tried changing the item id, it would throw me errors from both mods.

#4 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 10 August 2012 - 03:31 PM

turtle.compare() is the only way to kind of do this..
http://computercraft...=Turtle.compare

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 10 August 2012 - 03:34 PM

To be fair, it would actually be trivial to use the turtle API to provide this information. We provide all necessary functions.

#6 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 10 August 2012 - 04:23 PM

Any way for a different type of turtle that does offer item IDs? This would help with an automatic warehouse system...

#7 MadCrayolaz

  • New Members
  • 39 posts

Posted 10 August 2012 - 05:17 PM

Agreed. I need something for ID checking and having to place it wouldn't be ideal.

#8 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 10 August 2012 - 05:53 PM

View Postcraniumkid22, on 10 August 2012 - 04:23 PM, said:

Any way for a different type of turtle that does offer item IDs? This would help with an automatic warehouse system...

Yes - someone could code a turtle peripheral to do this pretty easily.

#9 MadCrayolaz

  • New Members
  • 39 posts

Posted 10 August 2012 - 09:06 PM

I hope someone does.

#10 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 11 August 2012 - 05:42 AM

What exactly should that peipheral do? I don't really get it.

If you had trouble using arp and Forestry, tell me what error you got. maybe I can fix that.

#11 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 11 August 2012 - 06:14 AM

I've said it before, the turtles need a way to identify the items in the inventory. I'd do it myself but I have no Java experience whatsoever due to the infernal JVM refusing to create every single time I try to run a Java IDE.

#12 MadCrayolaz

  • New Members
  • 39 posts

Posted 15 August 2012 - 08:17 PM

I'd have to install it again, but I am also using BuildCraft3 so I had to delete the buildcraft folder.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users