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

Extracting items from ME Network (Applied Energetics)

Question

(sorry for bad English, im just Russian)

 

How to extract special amount of special item by ID from ME Network?

 

0EbpBcg.png

 

SjsoAbk.png

 

Me and two other guys working on a market, targeted to large volume transactions between players.

We done half of work, but stucked on interraction with ME Network from Applied Energetics mod. Before, we used Computercraft's computers, but they have bugs with special kindes of meta data when using .extractItems() . I searched AE component documentation but dont find direct commands to do things like moving items outside of existed ME Network.

Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Here instructions:

Put an adapter in front of the chest/controller.

Connect the adapter with a cable to the computer.

 

In the computer console, write this command:

components

A list of components should appear, search for something of the same name you just connected with the adapter, like ME_CHEST or something like this.

write this command now:

lua

then write this:

 

for _, Method in pairs(component.methods(component.list( "  <  NAME OF THE COMPONENT FROM AE2, LIKE me_chest OR me_controller >  " )())) do print(Method) end

 

A list of methods for the controller should appear.

 

You can use local controller = component.proxy(component.list("<component>")()) for example, to call the methods for it.

 

It may or not work, depending if OpenComputers is compatible with Applied Energistics 2...

Link to post
Share on other sites
  • 0

For most functions (i.e. those that are documented appropriately) you can get a docstring using `=component.componentName.methodName`.

 

So in this case for example `=component.me_exportbus.setConfiguration` would work in a newer version of OC (which it doesn't look like this is?).

 

Going by those method names however, it actually looks like they're mostly from OpenPeripherals (e.g. there's no listMethods in OC), so you'd have to look there for documentation.

Link to post
Share on other sites
  • 0

For most functions (i.e. those that are documented appropriately) you can get a docstring using `=component.componentName.methodName`.

 

So in this case for example `=component.me_exportbus.setConfiguration` would work in a newer version of OC (which it doesn't look like this is?).

 

Going by those method names however, it actually looks like they're mostly from OpenPeripherals (e.g. there's no listMethods in OC), so you'd have to look there for documentation.

Thanks, I tryed, but still I dont get it.

 

For example, i using docs for "getConfiguration" and it says

getConfiguration  function(side:number, [ slot:number]):boolean -- Get the configuration of the export bus pointing in specified direction.

And when i trying to execute this, i gots only nils and errors:

lua> =component.me_exportbus.getConfiguration(0)
nil "no export bus"
lua> =component.me_exportbus.getConfiguration(3)
nil

Also, me_exportbus and some other modules have fields like "slot = -1", but nothing else i can find about it.

Additionally i lurked OpenPeripheral docs, but this poor and outdated.

 

Maybe, I should find peoples who already worked with AE+OC before? Or should I ask on AE and Peripheral forums about methods to export items from ME Network?

Link to post
Share on other sites
  • 0

The side is the direction the export bus is facing IIRC, i.e. if the bus is facing east, use getConfiguration(sides.east).

Well, i get it, and get table as responce for getConfiguration.

But is setConfiguration is only way to control from computer, what item i can extract?

 

Is OC have other functions or tricks, like sucking items from chests but insted, from ME?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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