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

GrimmSpector

Members
  • Content Count

    10
  • Joined

  • Last visited

About GrimmSpector

  • Rank
    Junior Member
  1. Ah I didn't realize lua did it that way, ok thanks!
  2. 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'
  3. Well...this crashes the OC hard... "Unrecoverable Error" controller.lua:50: attempt to index global 'logFile' (a nil value)
  4. Not quite what I'm asking. I'm well aware of the io stream and method. However that logs when running a program to a temporary file, that I don't get to keep handy, and to the console. I don't want it to print to the GPU at all. I ONLY want it to go to a file, and I don't want it to go to a temporary file, I want to ecapsulate extra logging information and all error debug information out to a file of my choosing. Ideally with a bit of parsing to make it more readable. I can't figure out how to adjust the stream to a) not go to the GPU go to a file of my own choosing Seems to be a we
  5. In a way he's trying to make it easier for people to connect to all the things in one of their sets of items, which makes a lot of sense. The real issue is there needs to be a way to code into a bios which components to select during boot, and then you're still bound by the component limit, but you can choose to ignore the ones you don't want so you can actually run...that would be super!
  6. I'd like to do error/function logging, and I'd like to do it via binding the STDERR output to a filestream instead of the GPU. I'm not familiar enough with lua yet to do it. Can anyone help me with this? Thanks.
  7. Trying to setup a system to monitor and run some Rotary Craft items, but too many items in the RotaryCraft construction count as components, and they're all seen if connected by and Rotary Craft parts, whether I want them or not. I don't care about and don't want the computer to see most of these items. However I can't boot it, because there are too many, is there some way to get it to ignore some items and boot, only binding the components I want? Thanks.
  8. So...I'm trying simple things in the interpreter to teach myself, and I'm having mostly success. However one of the machines I want to work with is the RotaryCraft Extractor... On my OpenComputers system it's listed with an address and the name "Extractor", along with all the rotarycraft machines attached to it. I can address those machines like this: =component.JetEngine.address =component.JetEngine.getName() And it will output it's address and name, the name is "Gas Turbine" in this case, and the address is the same as if I hit the block with the analyzer or as in the list of comp
  9. I would love to get an answer for this as well. It's great that I can access all those connected machines ... but it's severely limiting with lower tier machines when I only want to access the machine I'm directly connected to!
×
×
  • Create New...

Important Information

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