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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.1 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
    • Lizzy Trickster

      !!FORUM DOWNTIME!!   01/16/18

      On 2018-01-27 the forums will be going down at around 1100 GMT0 for up-to 5 hours to allow for hardware configuration changes on the system that hosts these forums as well as various updates to patch recently publicised CPU vulnerabilities. Apologies for the inconvenience that this will cause.  If you would like to keep up-to-date on the progress of the work, join our IRC channel (http://webchat.esper.net/?nick=&channels=oc) or our Discord ( https://discord.gg/0hVukoQ2KYifZFCA ).

Leaderboard


Popular Content

Showing content with the highest reputation since 12/19/17 in all areas

  1. 1 point
    BrisingrAerowing

    Energy Stored

    That's because you didn't call the method on mfsu. You tried calling a global method, which doesn't exist.
  2. 1 point
    Fingercomp

    Energy Stored

    Well, this means the ic2_te_mfsu component doesn't have the getMaxEnergyStored method. The reason the crash occures after click is that you fetch the values after pulling a touch event (before the first update, the default value is used, i.e. 0). To get a list of available methods, run the following command in the OpenOS shell: components -l ic2_te_mfsu | less
  3. 1 point
    Molinko

    Failing to bind GPU to screen

    Your error is indeed pretty simple. The method component.get returns the full address of a component, which is a string, not an object(table) with methods. In OC it's called a component proxy. Try this out and feel free to ask more questions either in this thread or via PM. local component = require("component") local term = require("term") local gpu_address = component.get("3085") -- # this returns the components full address from an abbreviated one local screen_address = component.get("40c6") local gpu = component.proxy( gpu_address ) -- # get a 'proxy' to the gpu component gpu.bind( screen_address ) -- # call .bind from the proxy
  4. 1 point
    MoonlightOwl

    Trouble with Lua

    Use buttons[name].rect or buttons[name]["rect"] In your current edition Lua thinks `rect` is local variable, which obviously equals `nil`. And `buttons[name][nil]` is nil too.
×