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 for MC 1.7.10, 1.8.9, 1.9.4, 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)


  • Content count

  • Joined

  • Last visited

  • Days Won


Molinko last won the day on October 17

Molinko had the most liked content!

1 Follower

About Molinko

  • Rank
    Leading Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

765 profile views
  1. abort keyboard input

    Perhaps you could use a timeout callback that uses event.push to queue a "fake" key event with the enter key. Just an idea..
  2. Mekanism HUD with OpenGlasses

    I really love how nice this looks .
  3. OpenSecurity - From table to string

    Tables are like lists. Sometimes you want and ordered list. Sometimes the order doesn't really matter logically but the categories or types of things in your list matter. Ordered tables uses indexes(numbers) as accessors to values in a list(table). Property tables use keys(strings) as accessors to values. Take these examples. -- # An ordered list. (table) local groceries = { [1] = 'apples', [2] = 'oranges', [3] = 'cereal', [4] = 'frozen pizza' } print( groceries[1], groceries[3] ) -- # output:>> 'apples' 'cereal' -- # A table with properties. Usually a good reason to use properties is so we can describe objects of our own. i.e. local Player = { name = 'Molinko', health = 75, isAdmin = false, inventory = { 'pickaxe', 'golden apple', 'keyboard', 'some other items...' } } print( Player.name, Player.health ) -- # output:>> 'Molinko' '75' If I'm understanding you then what you're looking for is this... -- # Assuming the table 'output' is the object with information.. print( output.name ) -- # print the value to console. local player_name = output.name print( player_name ) -- # Same as 'print( output.name )'
  4. Make robot use Sieve (Ex Nihilo Adscensio mod)

    I believe @Gorzoid is probably right. In case he's not, have you tried using the duration parameter on the call to robot.use()? robot.use(sides.front, nil, 1) -- # call the 'use' method for 1 second.
  5. Javascript for Open Computers

    This is looking really cool!!! Great work. I couldn't tell which version of the ECMAScript/Javascript language is embedded here? ES4, ES5..???
  6. Twire - Unit testing made easy

    I dig it mang. Nice job, this is really cool
  7. Event

    event.pullMultiple is a "blocking" call, meaning it waits until an event has happened. Supply it with a timeout in seconds as the first argument to resume every so often. event.pullMultiple(1, 'interrupted', 'touch') -- # 1 is the number of second to wait for an event before resuming.
  8. Asynchronous while true loop

    I imagine there is more to do than just printing a line so I'll assume the Thread library is what you're looking for.
  9. term.read() problems

    term.read with dobreak option is in the later versions of OpenOS. It may have not been available to you yet. The older version of term.read takes a list of option arguments instead of an options table. It can be used like so.. term.read(nil, false) Dobreak is the second arg here, set to false, nil will default to dobreak bring true.
  10. term.read() problems

    term.read returns the input as a string with a newline character at the end. If you want to compare words after taking input without cleaning the string use io.read instead of term.read. Or with term.read({dobreak=false})
  11. term.read() problems

    io.read and term.read both return a string. Use tonumber(a)==2
  12. what am i doing wrong?

    The screenshot resolution is hard to read. Could you post the full code in 'code' tags?
  13. thread question #2

    Please post all your code. In code tags please.
  14. Break not exiting while loop

    Thanks. It's always referenced as 'the' newline char
  15. Lost mount after installing OpenOS

    Start from scratch. Install OpenOS on fresh hardware. Reboot. Then create your directories and whatnot.