Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Archived

This topic is now archived and is closed to further replies.

Guest semoro

Powerful Modules (Embadded Tesseracts and other later...)

Recommended Posts

Guest semoro

XCodersTeam going back to minecraft modding.......

Now we made small mod that adds some useful robot components

Embadded Tesseracts...[ThermalExpansion]

Yes, we added upgrade for robot. It's Tesseract upgrade and Energy Tesseract Upgrade

c660dbda5a.png

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 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

--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)


--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.

Tesseract received items will be added to firs matching or free slot

Energy tesseract can charge robot by remote sending energy:

4545135091.png

 

component.etesseract

And it has some methods, but they 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
NEW! IC2 Item charger(Version 1.1)

It a legal way to charge IC2 items in robot

19eaa656d8.png

component.itemcharger
--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
--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
Warn! 1.1.2 is compatible with OC-1.3.5

Version 1.1.5-1.6.4 => LINK

Version 1.1.2-1.7.10 => LINK

Old versions

Version 1.1.2-1.6.4 => LINK

Version 1.1-1.6.4 => LINK

Version 1.1-1.7.10 => LINK

Minecraft forum post

Enjoy!

If some bugs or ideas replay this thread.

Sorry, if my english not perfect =(

UPD: And if you have ideas where i can also post it, replay please.

UPDD: Version 1.1 addtions! Enjoy!

Share this post


Link to post
Share on other sites
Guest semoro

Fixed MCPC server crash, now build 3

Share this post


Link to post
Share on other sites
Guest semoro

Fixed crash of energy tesseract when working with OC-1.3.5 ! 
Enjoy =)

Share this post


Link to post
Share on other sites
Guest semoro

does not take the energy in private  or rectricted mode, only public mode (Version 1.1.2-1.6.4)

Are you playing on server?

Share this post


Link to post
Share on other sites
Guest semoro

I will check it, please wait, thank you for bug report =)

Share this post


Link to post
Share on other sites
Guest semoro

Looks strange, check did you set private flag to true
component.etesseract.setPrivate(true)

Share this post


Link to post
Share on other sites
I set tesseract mode security restructed, sending energy, Frequency 777.

On robot lua - 

=component.etesseract.setPrivate(true)

=component.etesseract.setFrequency(777)

true

not take the energy

set tesseract mode public, Frequency 777

robot is charging

robot side by side tesseract for test

 

Install GriefPrevention plugins

Share this post


Link to post
Share on other sites
Guest semoro

Ok, which version of ThermalExpansion and COFH-core did you use?

Share this post


Link to post
Share on other sites

=tile_thermalexpansion_tesseract_name.canPlayerAccess('Antero') - true

=tile_thermalexpansion_tesseract_name.canPlayerAccess('Antero.robot') - false

getAccess - RESTRICTED

Share this post


Link to post
Share on other sites
Guest semoro

But in my mod i using player name for tesseract id
 

Share this post


Link to post
Share on other sites
Guest semoro

I working around solution of this problem =)

Share this post


Link to post
Share on other sites
Guest semoro

Are you playing on vanilla server with MC forge?

Share this post


Link to post
Share on other sites
Guest semoro

Fixed in 1.1.5-1.6.4,

Fix for 1.7.10 will be later

Share this post


Link to post
Share on other sites

Fixed in 1.1.5-1.6.4,

Fix for 1.7.10 will be later

Just a double check, it DOES work for recent Minecraft versions, right?

Other than that, as a personal opinion "XCodersTeam" doesn't feel original. Why not spice it up like "ShadowKatStudios"?

 

Share this post


Link to post
Share on other sites
Guest semoro

I plannig update on weekends =) Any new ideas?

Share this post


Link to post
Share on other sites
Guest semoro

Just a double check, it DOES work for recent Minecraft versions, right?

Other than that, as a personal opinion "XCodersTeam" doesn't feel original. Why not spice it up like "ShadowKatStudios"?

It works stable on 1.7.10 but function component.tesseract.setPrivate(bool) may work not properly

Share this post


Link to post
Share on other sites

I plannig update on weekends =) Any new ideas?

I honestly don't have much of an idea for how you can improve this other than code cleanups and maybe some APIs / Example programs to help users get familiar with the usage of your Add-on.

 

Share this post


Link to post
Share on other sites

It works stable on 1.7.10 but function component.tesseract.setPrivate(bool) may work not properly

Good to know! I might try it soon then.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.