This mod now provides some complitability things for OpenComputers
ThermalExpansion - Embadded Tesseracts
Yes, we added upgrade for robot. It's Tesseract upgrade and Energy Tesseract Upgrade
It's a Tesseract upgrade, it can be installed to Slot Tier 3 in robot
When it installed, there is new component available
component.tesseract
It has some methods to allow you work with it.
--Work with mode
component.tesseract.setSendMode():boolean,string(failreason) -- Sets tesseract to send mode, returns success(Consumes energy)
component.tesseract.setReceiveMode():boolean,string(failreason) -- Sets tesseract to receive mode, returns success(Consumes energy)
component.tesseract.isMode(receive:boolean or nil):boolean --return receive==isReceiveMode
component.tesseract.setMode(receive:boolean):boolean,string(failreason) -- Sets tesseract to receive or send mode, returns success(Consumes energy)
--Work with activate and frequncy
component.tesseract.setFrequency(freq:number):boolean,string(failreason) -- Sets the frequency of Tesseract and activating it, returns success(Consumes energy)
component.tesseract.deactivate():boolean -- Resets the frequency of tesseract and deactivating it, returns success
component.tesseract.isActive():boolean -- returns whatever tesseract active or not
--Sending items and private mode
component.tesseract.sendItems([count:number]):boolean,(number or string failreason) -- (Send mode) Sends item in selected slot to tesseract, returns success and number of NOT sended items(Consumes energy)
component.tesseract.setPrivate(isPrivate:boolean):void -- Sets tesseract's private mode to given value and deactivating tesseract(If in private mode items will be sended and received to tesseracts that owned by robot owner)
When tesseract receiving items it consums energy too.
Received items will be added to first matching or free slot
Energy tesseract can charge robot by remote sending energy:
It has different component
component.etesseract
And it has some methods, but they little bit different from item tesseract
--Work with active
component.etesseract.activate():void -- Activating tesseract
component.etesseract.deactivate():void -- Deactivating tesseract
component.etesseract.isActive():boolean -- returns whatever tesseract active or not
--Work with frequency and private mode
component.etesseract.setFrequency(freq:number):boolean,(string fail) -- Sets the frequency of Tesseract and activating it, returns success
component.etesseract.resetFrequency():boolean -- Resets tesseract's frequncy, and deactivating it, returns success
component.etesseract.setPrivate(isPrivate:boolean):void -- Sets tesseract's private mode to given value and deactivating tesseract
IC2 - Item charger
It a way to charge IC2 items in robot
Component name:
component.itemcharger
And methods to work with:
--Its methods
component.itemcharger.getIsElectricItem():boolean,(string fail) -- Returns whatever item in selected slot is IC2 electric or not
component.itemcharger.getCharge():boolean,(string fail)/number -- Returns success, charge of item in currently select slot
component.itemcharger.getEquippedCharge():boolean,(string fail)/number -- (Needs inventory controller)Returns success, charge of item that currently equipped
component.itemcharger.rechargeItem(fromSlot:number,[count:number]):boolean,(string fail)/number -- Charges item in currently selected slot using energy from item in fromSlot, returns success, count of energy transferred
component.itemcharger.rechargeEquippedItem(fromSlot:number,[count:number]):boolean,(string fail)/number -- (Needs inventory controller)Charges item in currently equipped using energy from item in fromSlot, returns success, count of energy transferred
And here a have small example for charging:
--Example to charge item in slot 1 using battary in slot 2
robot.select(1)
local ch=component.itemcharger
repeat
local res=ch.rechargeItem(2)
until not res[1] or res[2]>0
We will add new features, we have many ideas what to do, but not all at one time
ThermalExpansion - Embadded Tesseracts
It's a Tesseract upgrade, it can be installed to Slot Tier 3 in robot
When it installed, there is new component available
It has some methods to allow you work with it.
When tesseract receiving items it consums energy too.
Received items will be added to first matching or free slot
Energy tesseract can charge robot by remote sending energy:
It has different component
And it has some methods, but they little bit different from item tesseract
IC2 - Item charger
Component name:
And methods to work with:
And here a have small example for charging:
We will add new features, we have many ideas what to do, but not all at one time
Downloads:
Version 1.1 - 1.7.10
Our main thread: oc.cil.li
Sorry, if my english not perfect
If you found a bug, or have some nice idea, please replay this thread