Posted 28 April 2014 - 04:45 PM
I'm trying to make a computer that scans my applied energistics network for stored items and current crafting jobs using openpripherals. I also give it a table like this:
I got all that, but I can't get the "craft" function to work. The only documentation is in-game, via a program called "docs".
containsItemType
countOfItemType
extractItem
getActivationEnergy
getAdvancedMethodsData
getAvailableItems
getEnergyStored
getFreeBytes
getJobList
getMJStored
getMaxEnergyStored
getMaxMJReceived
getMaxMJStored
getMaxSafeEUInput
getMinMJReceived
getName
getPreformattedItems
getPriority
getRemainingItemCount
getRemainingItemTypes
getStoredItemCount
getStoredItemTypes
getTotalBytes
getTotalItemTypes
getUnusedBytes
getUnusedItemCount
insertItem
isFuzzyPreformatted
isPreformatted
listMethods
requestCrafting
This was my guess:
https://www.dropbox....estCrafting.PNG
Anyone knows how to use the requestCrafting method?
settings = {
name1 = {id1, amount1},
name2 = {id2, amount2},
...
}
Then the program has to determine how much it has to craft, and then do that.I got all that, but I can't get the "craft" function to work. The only documentation is in-game, via a program called "docs".
> openp/docs left
prints all functionsSpoiler
canHoldNewItemcontainsItemType
countOfItemType
extractItem
getActivationEnergy
getAdvancedMethodsData
getAvailableItems
getEnergyStored
getFreeBytes
getJobList
getMJStored
getMaxEnergyStored
getMaxMJReceived
getMaxMJStored
getMaxSafeEUInput
getMinMJReceived
getName
getPreformattedItems
getPriority
getRemainingItemCount
getRemainingItemTypes
getStoredItemCount
getStoredItemTypes
getTotalBytes
getTotalItemTypes
getUnusedBytes
getUnusedItemCount
insertItem
isFuzzyPreformatted
isPreformatted
listMethods
requestCrafting
> openp/docs left requestCrafting
shows how to use that function, it prints
requestCrafting: Request crafting of a specific
item
returns: void
args:
- (table)stack: A table representing the item
stack
I don't understand any of this, but I tried:This was my guess:
ae.requestCrafting({id, amount})
but no…https://www.dropbox....estCrafting.PNG
Anyone knows how to use the requestCrafting method?