Jump to content




Get network amount of Essentia?


6 replies to this topic

#1 Baaleos

  • Members
  • 11 posts

Posted 12 June 2016 - 06:51 PM

I've just started making a pruning program for my ME Network - so it caps the stacks of items at 1000 in the network.
I would like to do something similar with Essentia from Thaumcraft 4.
Eg: If the aspect count is > 1000 - then start dumping it into void/oblivion jars.

Is there a specific peripheral I need to use to get the networked Essentia amount?
When I put the computer beside an essentia provider - it just gives me a string 'arbor' for the 'getAspects' method.
No table to loop through etc

#2 Baaleos

  • Members
  • 11 posts

Posted 12 June 2016 - 07:07 PM

Closest I think I have found involves having to have the computer beside the me drive itself.
Then I can do

stacks = getAllStacks()

for each stack etc
then on each storage cell, I can get the available types, and used bytes etc

Anyone got a more elegant solution?

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 13 June 2016 - 01:06 AM

Apparently "Thaumic Energistics" may have a block of some sort that helps with this? Or something?

http://www.computerc...ic-energistics/

#4 Baaleos

  • Members
  • 11 posts

Posted 13 June 2016 - 01:13 AM

Cheers, will try that tomorrow, although that being said, I think I tried getAspects on the essentia provider block and it just returned a single essentia type "arbor"

#5 Baaleos

  • Members
  • 11 posts

Posted 15 June 2016 - 10:04 PM

So I managed to use this code to get the amount of essentia from the network -
Does anyone know how to use computercraft to export essentia?
Eg: ExportItem works for items, but how does one export essentia into a jar?

I am hoping to automate the voiding of essentia - so
if aspect > 2000 => send it to the oblivion jar.
However, I can't find any export mechanism.

#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 16 June 2016 - 03:23 AM

ComputerCraft isn't actually supplying the functionality for dealing with the network peripherals at all; that's likely coming from OpenPeripheral (or perhaps Applied Energistics itself).

OP's documentation isn't as accessible as it could be. This script makes it a fair bit easier to read through:

http://www.computerc...openperipheral/

#7 Baaleos

  • Members
  • 11 posts

Posted 16 June 2016 - 01:33 PM

Ok, I will have a go at that.

I have an idea of how I can achieve what I want.
Now that I can get the amount of essentia - I can output a redstone signal based on the value.
I can then use the redstone signal to enable or disable AE2 export buses upgraded with the redstone signal card.
The only problem I see is that this might require a lot of computers - or is there a way for one computer to control redstone signals across a whole room?

I was also seeing some client crashes last night.
When I say client crashes, I mean it was booting me off the server, saying Internal Server Error.

It was always occuring when

1. I had a Essentia Provider connected to the side of an Advanced Computer
2. I then placed redstone or anything else adjacent to the computer on the other side.(behind the computer for instance) <-- Crash

Logging back in, and then removing or adding more adjacent objects would then boot me again.
Its like it was being triggered on a peripheral discovery event or something.
Eg: detects a peripheral or object being placed or removed => crash





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users