Posted 16 July 2014 - 06:34 AM
Ok, so basically one of my current projects is an Applied Energistics powered store, powered by CC. The concept was to have a MAC and processing site initially loaded with 500 or so patterns as well as having the ability for people to supply their own patterns, and that's all working fine.
My problem comes with the craftingRequest() method (OpenPeripherals), as it requires a table to be passed with {["id"] = X, ["qty"] = Y, (["dmg"] = Z)}. Or rather, I should say my problem comes with the interface with it. Rather than having the user type in the ID of the item, I'd like for them to be able to do it by name and then only deal with IDs if there are a pair of items with the same name (eg. Item Cannon from RotaryCraft and OpenBlocks) although even then I'd rather display the mod name and let them choose by that.
Is there a way, not necessarily in game, to get hold of a list of all the item ids and their corresponding name for the currently installed modpack? If not then it's not the end of the world, I'll just plug into my home ME unit, craft one of everything I can and then scan it (loop through id 1-50,000, dmg 1-64, see if it can craft, if so, pull the name), but I'd rather not use this solution as a) I'm designing it in a creative world so I don't have a particularly comprehensive ME system, b.) I'd quite like to be able to attach other information to the items, such as which mod it is from - NEI style, and that information is not available from an inventory scan and c) lazy
Cheers guys, any help you can give would be apprecated
My problem comes with the craftingRequest() method (OpenPeripherals), as it requires a table to be passed with {["id"] = X, ["qty"] = Y, (["dmg"] = Z)}. Or rather, I should say my problem comes with the interface with it. Rather than having the user type in the ID of the item, I'd like for them to be able to do it by name and then only deal with IDs if there are a pair of items with the same name (eg. Item Cannon from RotaryCraft and OpenBlocks) although even then I'd rather display the mod name and let them choose by that.
Is there a way, not necessarily in game, to get hold of a list of all the item ids and their corresponding name for the currently installed modpack? If not then it's not the end of the world, I'll just plug into my home ME unit, craft one of everything I can and then scan it (loop through id 1-50,000, dmg 1-64, see if it can craft, if so, pull the name), but I'd rather not use this solution as a) I'm designing it in a creative world so I don't have a particularly comprehensive ME system, b.) I'd quite like to be able to attach other information to the items, such as which mod it is from - NEI style, and that information is not available from an inventory scan and c) lazy
Cheers guys, any help you can give would be apprecated
Edited on 16 July 2014 - 04:34 AM