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

Je06

Members
  • Content Count

    7
  • Joined

  • Last visited

About Je06

  • Rank
    Junior Member

Contact Methods

  • Minecraft
    je06

Recent Profile Visitors

571 profile views
  1. Point3D Point3d is a simple proof of concept program. It is design to render points in 3d space. It does this in a similar way to how opengl or directx would render. Point3d can be ran on pretty much any computer with openos, but it is recomended that a tier 2 gpu is used. It does need at least one 1.5 tier memory stick. Download pastebin get AGLr9F7Q points3d
  2. 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/
  3. 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)
  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 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
  5. I found a way!!! computer.pullSignal() works enough for my os
  6. I'm writing a custom OS for educational purposes and I'm having issues getting keyboard input. Everything completely works in OpenOS so everything is hooked up correctly. My init.lua code Here is my keyboard code I've copied the dofile function from OpenOS so it should work with my code.
×
×
  • Create New...

Important Information

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