Ore Lister

Discussion in 'Program Requests/Suggestions' started by IdioticAussie, 27 December 2013.

  1. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    Hello

    I want to request a ComputerCraft program that when active, all items that go through something (perhaps an interactive sorter) will be added to a list on an advanced monitor. This way, someone would be able to see exactly what items are passing through wires etc.
     
  2. Magi1053

    Magi1053 That one guy
    Staff Member

    Joined:
    26 June 2012
    Messages:
    159
    Likes Received:
    49
    Possible, but I'm not active enough to make it right now. Maybe when the map is reset. I would wait until then anyways in case the method to do it is no longer available, or an easier method of doing it becomes available
     
  3. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Well, maybe not an Interactive Sorter since RichardG has taken an indefinate break from that mod but with OpenPeripheral, you can send items to a chest hooked up to a computer simultaneously listing those items, and moving them to another chest where they fly to their destination.

    If you have an ME system, what you can also do is rather easily hook into a ME controller, and retrieve the data for every item in it. This is of course counting support for AE didn't drop in the 1.6 update of OpenPeripherals which dropped ALOT of support for mods due to a rewrite. I'd be down to do something like this and will keep this thread updated with my progress.
     
  4. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13


    Sweet!
     
  5. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Okay, so the first thing I've done is make the ME version of your idea. In the first example, all you need to do is stick down a Computer running the program next to your ME Controller, and a Monitor at least 5x3 in size (side doesn't matter): BAM, now you'll get a readout of everything in your ME system that refreshes every 10sec (by default)
    [​IMG]

    I've also added LAN support so your ME Controller can be a distance away from your Computer w/ Monitor.
    How to setup LAN:
    1. Put a Wired Modem on your ME Controller, and Computer
    2. Right click the Wired Modem on the ME Controller and a message should popup like shown below
    3. Change [typed]bMEControllerOnLAN = false[/typed] to [typed]bMEControllerOnLAN = true[/typed] in the program code
    [​IMG]
    [​IMG]
    Program Download: http://pastebin.com/uxSgLvw3
    I'll get working on the chest version of this program. Before I do thou, is this what you want?
     
    Ghostly likes this.
  6. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    Very nice! Is there any way to make it so that instead of it listing what is in it. It lists what has been in it? So when an ore gets added, it adds it to the list?
     
  7. Kirazy

    Kirazy An idle texturer

    Joined:
    2 April 2012
    Messages:
    612
    Likes Received:
    267
    So not a list, but a log? :p
     
  8. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    Bit of both, so that it lists every ore that has every passed through the system
     
  9. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Oh, a log! Sure! So, how about whenever an item is added to the chest, it will move it to an output chest where it can be sent to its destination, print the item info to the top-most part of the Monitor, and shift everything else down?
     
  10. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13

    That could work :D But might need to add it to a file or something so that when a chunk gets unloaded it won't lose the data
     
  11. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Alrighty, It's getting late for me but I'll work on it tomorrow!
     
  12. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13

    Awesome :D
     
  13. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    So are you saying we could have it log what goes into a chest and then that gets put into the ME system?

    Edit: When I run the program it says "ME Controller not found"
     
  14. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    You kinda need to hookup an ME Controller :p

    It's the only thing you need to hookup. If you're using LAN, make sure you make the necessary adjustments in the config.
     
  15. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    I know, the computer was right next to the controller...
     
  16. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Do you have OpenPeripheral?
     
  17. IdioticAussie

    IdioticAussie Member

    Joined:
    11 December 2013
    Messages:
    100
    Likes Received:
    13
    Yes. It was on Alice 1.5
     
  18. gknova61

    gknova61 Farbes Lover

    Joined:
    17 March 2012
    Messages:
    1.238
    Likes Received:
    350
    Sorry, I haven't done this but I've been busy with other things and when I do play MC, I'm working on this :p