Posted 15 September 2013 - 05:02 PM
"Title:" Confused about lists
I have been building a program to send me items from my AE Network to my ender chest using MiscPeripherals ME Bridge and Chat Box. And I want to be able to say "send me stone", and as far as I know the ME Bridge will only take Item IDs rather than names, so I would have to have a reference to convert the string "stone" to the integer 1 to send to the Bridge. I'd rather not have to write a separate function for each item due to there being 1000s of items in FTB(which is what I'm using). So my thought would be that I could use tables to have the ID linked to the name. But I am still a bit confused with the general workings of tables, so can you edit tables while in the program? And how would you go about linking them up and pulling them out of the table as required? And can you hard wire the values in so that even if the program closes the table will still be saved?
Help with any one of these would be much appreciated.
Thanks :)/>
I have been building a program to send me items from my AE Network to my ender chest using MiscPeripherals ME Bridge and Chat Box. And I want to be able to say "send me stone", and as far as I know the ME Bridge will only take Item IDs rather than names, so I would have to have a reference to convert the string "stone" to the integer 1 to send to the Bridge. I'd rather not have to write a separate function for each item due to there being 1000s of items in FTB(which is what I'm using). So my thought would be that I could use tables to have the ID linked to the name. But I am still a bit confused with the general workings of tables, so can you edit tables while in the program? And how would you go about linking them up and pulling them out of the table as required? And can you hard wire the values in so that even if the program closes the table will still be saved?
Help with any one of these would be much appreciated.
Thanks :)/>