• 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)

All Activity

This stream auto-updates   

  1. Yesterday
  2. 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
  3. 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/
  4. 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)
  5. 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
  6. Good luck
  7. yeah, I was thinking the same... a big holographic map of my base thanks! i will try, with tears in my eyes, because im sure i will not be able to get everything work lol... wish me luck im in the serverpack spaceastronomy from ftb playing multiplayer, and the hologram editor give me problems crashing sometimes the whole minecraft.. anyway, i love risk thanks again for answering you'ret the beast!
  8. This is my old attempt to create holographic map. Like in sci-fi movies. Debug card (or AMI block from Immibis's Peripherals) scanned the map, and collected the data. A grid of projectors under the floor was responsible for rendering. The color of any map point depends on it altitude. Thank you!
  9. hello, good day. How can one change with the robot Creatrix(opencomputers) the upgrade with a command? I would like to change the hover upgrade against the piston upgrade. Thank you. Greeting
  10. Last week
  11. help iget a message OS.lua:505: attempt to index field 'localization' (a nil value.) please help
  12. Thanks Brisingr that worked like a charm. Can you help with the addressing part as well I cant seem to get it to recognize the dial command thanks
  13. While starting with Opencomputers scripting (and learning some lua), I found out that while not much, there computers still need some power. So here came my idea to build a powercheck script (deamon) to show my power level of the computer (or network) and be ready to save my files before the computer shuts down mid editing a script. this version is only a visual aid for knowing your energy leven, executing some functions if the power is to low to continue aren't implemented. Requirements: not much, the openOS should be enough, and a valid computer with screen. script & installation: http://pastebin.com/0112kJVN after downloading this script: copy or move it to /etc/rc.d/<your chosen filename> then rc <yourchosenfilename without .lua> enable once you reboot your system you should have an indicator of the power level in the right bottom corner of the screen. hope this is usefull for someone
  14. Привет! Могу ли я перевести MineOS на Турецкий? Спасибо!
  15. just wanted to make a mention on your GL engine and congrat you on it you're actually using proper "Z = Depth" standards, rather than what soooooooooo many developers follow being "Y = Depth". I'm amazed by just how little code you actually have, but then again, it is only an extension of OpenOS, rather than what I intend to do. still, congrats on all of your work
  16. draft

    They should be atomic, because they do not contain other Values. (If I have understood the question correctly.)
  17. After messing up a hard drive I spent a long time trying to reinstall the OS. It seems that there is a hidden file on the hard drive that must be manually deleted before you can reinstall an OS to it or you get this error. Use rm /mnt/"*"/.prop Where are the "*" is should be the name of the mounted device.
  18. and amazing your hologram editor and viewer and amazing your hologram editor and viewer!
  19. explain, pls
  20. As I told you in the ticket, you CAN. NOT. print(keypad) that is *NOT* how events work. event = require("event") _,_, button, button_label = event.pull("keypad") print(button)
  21. How i can read the event of keypad number when presed, when i trigger the event with "event.pull("keypad") and press a number, when i try to print it with print(keypad) i recive a null or nil name, how i can only output the number that i press? Pls hal1
  22. no 3dm-exporter in the menü from blender 2.7.8 for the opencomputers. greeting
  23. No Export in the menü from Blender 2.7.8 greeting
  24. I think this is what you mean...? local term = require 'term' local component = require 'component' local gpu = component.getPrimary 'gpu' -- text color palette color? (true or false) (optional) -- Takes ( 'some string to color', number_color, [isPaletteColor] ) local function cWrite( text, fgc, pIndex ) local old_fgc, isPalette = gpu.getForeground() pIndex = ( type( pIndex ) == 'boolean' ) and pIndex or false gpu.setForeground( fgc, pIndex ) write( text ) gpu.setForeground( old_fgc, isPalette ) end -- Usage: cWrite( 'Hello colorfully', 0x2E86C1 ) -- Or with a palette color.. cWrite( 'Hello colorfully', 1, true )
  25. Hi Zinne91, you connect your Reactor Computer Port with your computer by using a OpenComputer cables. No adapters required. Just connect it directly. If you're using servers (the in-game one) then don't forget to connect the server to the proper side in the server rack gui. -XyFreak
  26. load is a function that's a part of the Lua standard library. This means that you can use it even in EEPROM programs. The signature of the function is load(chunk[, chunkname[, mode[, env]]]). The first argument is either a string of code you want to run, or an iterator function that returns a Lua code. The second argument is the name of the chunk. It's used for error messages. The third argument is the mode: either "bt" (both binary and text), "t" (text), and "b" (binary). In standard Lua implementations, "b" mode is used to load pre-compiled code returned by string.dump. In OpenComputers, however, this feature is disabled by default for security reasons. The fourth argument is the environment to run the code with. The environment is a table that contains some values that can be used in the code. If you make {hello=function(name) print("Hello, " .. tostring(name) .. "!") end} the environment, the hello function can be called from within the code: load("hello('world')", nil, nil, {hello=function(name) print("Hello, " .. tostring(name) .. "!") end}) prints "Hello, world!" when run. load doesn't run the code. It checks it for syntax errors, and returns a function that, when called, runs the code. Here's an example. load([[ print("Hello") local x = math.sin(45 / 180 * math.pi) print("The sine of 45° is " .. x) ]])() --> Hello --> The sine of 45° is 0.70710678118655
  27. I am building an OS and i am not going to use the filesystem library. I am going to write my own filesystem for unmanaged drives. To boot i need to be able to run programs. The default libraries will not support my custom filesystem how can i run programs? Is is possible to compile and run a string as a program using EEPROM accessible libraries?
  1. Load more activity