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

AE 2 getCpus() not working as intended?

Question

hi, i'm currently working on autocrafting on the AE2 system thru opencomputers and i seem to have hit a snag. i wanting to check if my CPU's are busy or not before assigning a task to them but when i do: 

local components = require("component")
local me = component.proxy(component.list("me_controller")())

print(me.getCpus())

it only returns a string. when i looked at the https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/integration/appeng/DriverController.scala at line 73 it states that its suppose to return a list of tables, but it only returns

set(map(name ->, storage -> 1024, coprocessors ->, busy -> false))

idk if i'm doing something wrong, but that doesn't seem like a list of tables to me. if i am wrong, how would i best find if CPU A is busy or not.

thanks.

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

thanks for the reply, and i thought that might have been a bug, but i've only been working with the mod for about 2 weeks now. I'm really impressed with this mod, and i love the flexibility and persistence this mod has over computercraft. i hope you continue with this mod thru 1.8 and above. and thank you again for the fix.

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.