Im searching for a methode to export damaged items from an AE2 Network. The Items have different damage values..
My situation:
I have several Nuclear Reactor's which gets controlled by Robots. The Robot's sometimes drops not fully used Uranium Rods back into my AE2 Network to prevent explosion..
Im using a Quantum Network Bridge over 2 dimensions and have no ME_Controller where i want to export the damaged Items, so im using following Setup:
- ME_Interface placed on Adapter and connected to my AE2 Network.
- right-clicked an Database-Upgrade in my hand and added an already used " IC2:reactorUraniumQuad " item. After that i put the Database into the Adapter.
- ME_ExportBus connected with Adapter and placed a Chest in front of it.
Now i have tried the following Code:
local component = require('component')
local side = require('sides')
local meExportBus = component.getPrimary('me_exportbus')
local meInterfaceBus = component.getPrimary('me_interface')
local db = component.database
local exportBusSide
for i = 0, 5 do
if select(2, meExportBus.getConfiguration(i)) ~= "no export bus" then
exportBusSide = i
break
end
end
local entryNum = {}
for i = 1, 81 do
local item = db.get(i)
if item then
entryNum[item.name] = i
end
end
local itemList = meInterfaceBus.getAvailableItems()
for k,v in pairs(itemList) do
for key,value in pairs(v.fingerprint) do
if (key == "dmg") and (value >= 10) then
print("Exporting ".. v.fingerprint.id .." with dmg: "..value)
meExportBus.setConfiguration(exportBusSide, 1, db.address, entryNum[v.fingerprint.id])
meExportBus.exportIntoSlot(exportBusSide, 1)
end
end
end
My Problem is now that this doesnt work It outputs the print line but it doesnt export any Item
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hi.
Im searching for a methode to export damaged items from an AE2 Network. The Items have different damage values..
My situation:
I have several Nuclear Reactor's which gets controlled by Robots. The Robot's sometimes drops not fully used Uranium Rods back into my AE2 Network to prevent explosion..
Im using a Quantum Network Bridge over 2 dimensions and have no ME_Controller where i want to export the damaged Items, so im using following Setup:
- Adapter connected to a Computer.
- ME_Interface placed on Adapter and connected to my AE2 Network.
- right-clicked an Database-Upgrade in my hand and added an already used " IC2:reactorUraniumQuad " item. After that i put the Database into the Adapter.
- ME_ExportBus connected with Adapter and placed a Chest in front of it.
Now i have tried the following Code:
My Problem is now that this doesnt work It outputs the print line but it doesnt export any Item
What am i doing wrong?
Thanks!
Link to post
Share on other sites