Posted 10 September 2013 - 04:58 AM
Title: [MiscPeripherals] Finding ME-Bridge UUID, from item name, and the Reverse.
I have created a API, that turns Names into ME-Bridge UUIDs
It does this by looking them up from a file contrining list of ID:Metadata -> Name
but because each user is going o have different mods installed, a static list can't be made.
So to generate this file I have created a mod (for 1.5.2) IdDumper:
http://oxinabox.ucc..../ItemDumper.zip,
Details can be found on that on StackExchange
When you log into a world,
This mod will create a IdDump.txt in your current working directory. you need to move it, (possibly via pastebin) into your CC computer's directory.
I don't suggest leaving the mod running, it is a pretty rough hack i through together, (I'm fairly sure it won't corrupt your world or anything, just will keep on dumping the id data each time you start the game.)
The IdDump.txt file for FTB unleashed can be found: http://pastebin.com/i1pS6p3H
The IdConv Lua API can be found: http://pastebin.com/daea0MDP
Example of use:
Note that it using some hand made OO stuff, so that the IdConv object has methods that are referred to with :
and static methods (like .create) referred to with .
A more complete example of use can be found in my SVN,
but that is not ready for release.
That is a system that uses the OpenPeripherals smart helmet (or chat), to have a remote management of your AE,
including the transfer of stuff into a EnderChest, which you can get out of a EnderPouch.
But it is not yet intuitive enough for general release
—–
Off Topic.
It is pretty annoying not being able to "contribute" by creating topics,
until you have "benefited" by creating posts like "Thanks this is a great script."
I get why, with the whole spam flood thing, There is a good argument against this on StackExchange, though not directly applicable.
————–
EDIT:
There is a bug in the mod to dump ids.
It does not dump the ID's for any items that do not show up in the Creative Mod, item search.
This includes, for example: Forge MultiPart blocks.
I have created a API, that turns Names into ME-Bridge UUIDs
It does this by looking them up from a file contrining list of ID:Metadata -> Name
but because each user is going o have different mods installed, a static list can't be made.
So to generate this file I have created a mod (for 1.5.2) IdDumper:
http://oxinabox.ucc..../ItemDumper.zip,
Details can be found on that on StackExchange
When you log into a world,
This mod will create a IdDump.txt in your current working directory. you need to move it, (possibly via pastebin) into your CC computer's directory.
I don't suggest leaving the mod running, it is a pretty rough hack i through together, (I'm fairly sure it won't corrupt your world or anything, just will keep on dumping the id data each time you start the game.)
The IdDump.txt file for FTB unleashed can be found: http://pastebin.com/i1pS6p3H
The IdConv Lua API can be found: http://pastebin.com/daea0MDP
Example of use:
os.loadAPI(IdConvApi)
local converter = IdConvApi.IdConv.create("ItemDump.txt")
local meBridge=peripheral.wrap("left")
local items = meBridge.listItems()
--Prints out the current contents of ME system
for uuid, qty in pairs(items) do
if uuid~=nil then
local idData = converter:getFullID(uuid)
local id = idData.id
local meta = idData.meta
local itemData = converter:getDataFor(id,meta)
print(qty .."x " .. itemData.name)
end
end
Note that it using some hand made OO stuff, so that the IdConv object has methods that are referred to with :
and static methods (like .create) referred to with .
A more complete example of use can be found in my SVN,
but that is not ready for release.
That is a system that uses the OpenPeripherals smart helmet (or chat), to have a remote management of your AE,
including the transfer of stuff into a EnderChest, which you can get out of a EnderPouch.
But it is not yet intuitive enough for general release
—–
Off Topic.
It is pretty annoying not being able to "contribute" by creating topics,
until you have "benefited" by creating posts like "Thanks this is a great script."
I get why, with the whole spam flood thing, There is a good argument against this on StackExchange, though not directly applicable.
————–
EDIT:
There is a bug in the mod to dump ids.
It does not dump the ID's for any items that do not show up in the Creative Mod, item search.
This includes, for example: Forge MultiPart blocks.