Posted 02 July 2016 - 12:10 PM
I have a adv computer hooked up to a Me Drive (from AE2) via cable and wired modems everything is working and i get the info i need BUT i dont know how to handle/split/get the info i want
This is how the print looks like
all i want out from each table is the size = number <— i want the numbers and then i want to add them together so i can match them up against total space i have on the Me Drive but i dont know how?!!
keep in mind im not a hard coder at LUA/CC
-- This is hooked up via cable and wired modems to a Me Drive (from Applied Energistics)
MED = peripheral.wrap("tiledrive_1")
-- getAvaiableItems is a method for AE Me Drive to get info about the HDDs
getAllStacks = MED.getAvailableItems()
-- here i use textutils.serialize to be able to read the table(s) there is 1 table for each item in the Me Terminal
test = textutils.serialize(getAllStacks)
print(test)
This is how the print looks like
{
is_fluid = false,
size = 4430,
is_item = true,
is_craftable = false,
fingerprint = {
id = "name of block",
dmg = 56,
},
},
all i want out from each table is the size = number <— i want the numbers and then i want to add them together so i can match them up against total space i have on the Me Drive but i dont know how?!!
keep in mind im not a hard coder at LUA/CC
Edited on 02 July 2016 - 10:11 AM