• Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Welcome to OpenComputers

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

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

Forums

  1. OpenComputers

    1. Announcements

      OpenComputers official announcements.

      115
      posts
    2. Feedback

      Tell us what you think.

      297
      posts
    3. IRC

      #OC channel discussion
      irc.esper.net #oc

      25
      posts
  2. Code Central

    1. Support

      Ask for support from the OpenComputers community

      1977
      posts
    2. Showcase

      Showcase what you have created for OC. No 'malware' or other junk!

      850
      posts
    3. Tutorials

      Help other users out. Please no 'false tutorials'

      91
      posts
  3. General

    1. Lounge

      Just lounge around or have an open discussion.

      273
      posts
    2. Forum Games

      Fight boredom!

      58
      posts
    3. Showcase

      Show off your creations! (not for your programs)

      103
      posts
    4. Servers

      A place to advertise your servers

      126
      posts
  • Topics

  • Posts

    • i knew i couldnt do it, at least multiplayer... the  debug card is a creative item  instead, i played a little around with your hologram editor    
    • This is a duplicate post. I do not know how to delete post. The real post is https://oc.cil.li/index.php?/topic/1185-pse-protected-script-environment/
    • The PSE will run any code you give it and will run it in it's own sandbox environment. What this means is that code will run with absolutely no functions or variables except for what you give it. This means, unless you say so, the PSE will run code without any of the lua standard functions. However, any code the PSE runs cannot affect anything other than the functions and variables you give it.   I named my function by putting an underscore in between words, however, I also provided functions named in camel case that do the same thing. For example: new_sandbox() and newSandbox() do the same thing.   Functions new_sandbox()     Returns a sandbox that is ready to run your code in debug_sandbox(sandbox)     Will print some debug data to the screen add_code(sandbox, name, code)     Will add code the the sandbox using name as the index     Returns the modified sandbox add_argument(sandbox, argument)     Adds the argument to the sandbox as a command line argument     Returns the modified sandbox add_file(sandbox, name, path)     Will add whatever the file at path returns when it runs to the sandbox using name as the index     Returns the modified sandbox add_global(sandbox, name)     Adds any global functions or variables with the index of name to the sandbox using name as the index     Returns the modified sandbox run_string(sandbox, name, data)     Will run data as name in the sandbox     Returns false,reason if the code failed to run     Returns what the code returns run(sandbox, name, path)     Will run the file at path as name in the sandbox     Returns false,reason if the code failed to run     Returns what the code returns   Example local sandbox = pse.new_sandbox() sandbox = pse.add_global(sandbox,"print") sandbox = pse.add_file(sandbox,"my_lib","/path_to_lib/my_lib.lua") pse.run_string(sandbox,"my_code","my_lib:add_2_to_2()") Download pastebin get 3bt1LuFW pse.lua
    • The PSE will run any code you give it and will run it in it's own sandbox environment. What this means is that code will run with absolutely no functions or variables except for what you give it. This means, unless you say so, the PSE will run code without any of the lua standard functions. However, any code the PSE runs cannot affect anything other than the functions and variables you give it.   I named my function by putting an underscore in between words, however, I also provided functions named in camel case that do the same thing. For example: new_sandbox() and newSandbox() do the same thing.   Functions new_sandbox()     Returns a sandbox that is ready to run your code in debug_sandbox(sandbox)     Will print some debug data to the screen add_code(sandbox, name, code)     Will add code the the sandbox using name as the index add_argument(sandbox, argument)     Adds the argument to the sandbox as a command line argument add_file(sandbox, name, path)     Will add whatever the file at path returns when it runs to the sandbox using name as the index add_global(sandbox, name)     Adds any global functions or variables with the index of name to the sandbox using name as the index run_string(sandbox, name, data)  
  • Popular Contributors

    Nobody has received reputation this week.