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

Search the Community

Showing results for tags 'tables'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OpenComputers
    • Announcements
    • Feedback
    • IRC
  • Code Central
    • Support
    • Showcase
    • Tutorials
  • Addons & More
    • Addons Mods
    • Architectures
    • OpenEngineering Task Force
  • General
    • Lounge
    • Forum Games
    • Showcase
    • Servers
  • Archives
    • Public Archives

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Minecraft


GitHub


IRC


Fediverse ID


Location


Interests

Found 3 results

  1. I got an error message saying that in the "component.inventory_controller.suckFromSlot(sides.front, 1, numList[i])" line "numList[i]" returned a nil value. I tried to code something similar in VS and it worked there. What did I miss or is it a bug in OpenComputers?
  2. Forgive me if I'm making some obvious mistakes, but I've only just started playing with Lua about 6 hours ago. Had some C/C++ classes in college years ago, but still. I'm playing on a 1.7.10 single player world with OpenComputers 1.6.0.9 (Feed The Beast Infinity with a couple extra mods on top). I use level emitters to turn on and off machines and processes in my base. Say, I need more of a particular Thaumcraft essentia (stored using Thaumic Energistics). The level emitter goes high, a machine starts up and produces the essentia until there is enough, then the emitter goes low again.
  3. I've got a piece of code, trying to insert some values into a table, as below. local table1, table2, table3 = {} function somefunction(inputtable) for k,v in pairs(inputtable) do if k == "1" then table.insert(table1, v) elseif k == "2" then table.insert(table2, v) end end end I get an error referencing one of the table insert lines, like this: extractorController.lua:34: bad argument #1 to 'insert' (table expected, got nil) stack traceback: [C]: in function 'insert' extractorController.lua:34: in function 'somefunction' [C]: in function 'xpcall'
×
×
  • Create New...

Important Information

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