Jump to content


Quessith's Content

There have been 5 items by Quessith (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#233503 Sending a table via rednet doesn't work

Posted by Quessith on 25 September 2015 - 10:54 PM in Ask a Pro

shouldnt this part:
local info = {
['EnergyStored'] = format_thousand(energy),
['EnergyCapacity'] = format_thousand(maxene),
['FluidName'] = fluidName,
['FluidAmount'] = fluidAmount,
['FluidCapacity'] = fluidCapacity
}
local msg = textutils.serialize(info)
rednet.send(15, info)

be this?:
local info = {
['EnergyStored'] = format_thousand(energy),
['EnergyCapacity'] = format_thousand(maxene),
['FluidName'] = fluidName,
['FluidAmount'] = fluidAmount,
['FluidCapacity'] = fluidCapacity
}
local msg = textutils.serialize(info)
rednet.send(15, msg)

because now you are just sending over your table (with the rednet.send(15, info) and not the serialized msg



#233497 Send information from computer to pocketpc

Posted by Quessith on 25 September 2015 - 09:28 PM in Ask a Pro

Thanks for the feedback, adjusted a few things (forgot about the table API)
Need to clean up the code a little bit more (removing the comment parts that are not needed anymore)



#233475 [MC 1.7.10 | CC 1.65] OpenCCSensors

Posted by Quessith on 25 September 2015 - 05:08 PM in Peripherals and Turtle Upgrades

Awesome, need it for a project i am working on with tinkers construct.
So this mod is a life saver :D



#233468 Send information from computer to pocketpc

Posted by Quessith on 25 September 2015 - 03:15 PM in Ask a Pro

I am working on a automated smeltery from tinkers construct (Smelting armor, horse armor and such)
I want to use my pocket computer to check how much is in the smeltery (So i can activate the draining)
But i got stuck on a certain part...
The draining works perfect when i send a rednet command
But as soon as i send a rednet command for the amount of liquids (Mostly iron/gold is in it)
I only receive 1 message with the gold (at least it did, i did something and its broken again)
Using this in combination with OpenCCsensors (1.7.5)

Fixed it
Code i use on the pc:
http://pastebin.com/pvpeNXWA
Code i use on the pocketpc:
http://pastebin.com/yBdk2PUm

added freezing pocketpc after drain command
made a "list" of the materials in the smeltery

Not the best code, but hey it works for me :)



#233443 [MC 1.7.10 | CC 1.65] OpenCCSensors

Posted by Quessith on 25 September 2015 - 08:23 AM in Peripherals and Turtle Upgrades

Thanks for this peripheral.
Only 1 small question, does it work on the newest computercraft?