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

Leaderboard


Popular Content

Showing content with the highest reputation since 06/05/20 in Posts

  1. 3 points
    BrightYC

    Cyan BIOS

    The world as I knew it had a problem. A plenty of bootloaders had already existed, and they'd all shared the same flaw: it wasn't me who made them. I've decided to put an end to that. Cyan is a multi-bootloader and a replacement for the plain Lua BIOS. The features it encompasses include: a whitelist to prevent random strangers from tampering with the computer a Lua interpreter to test your sudden ideas support for hot-plugging filesystems if you've forgot to insert a floppy the ability to format or label a filesystem, while we're at it loading the boot payload from the internet when you can't afford an HDD and a gorgeous, minimalistic design Pictures: To install on OpenOS, run the following: wget -fq https://raw.githubusercontent.com/BrightYC/Cyan/master/installer.lua && installer.lua Or, if you're a MineOS user, look for the program (bearing the same name) at your local AppMarket. Here's how the whitelist works. You add trusted users to the list when the installer asks you. Then the bootloader will ignore any signals from other people. That's it. Oh, and you can also choose a less restrictive option: the Cyan BIOS can wait for input from a trusted user. Before that an authorized person can't access the bootloader. Lastly, a couple of words about the Lua interpreter. It doesn't wrap the output, and the input command must be less than the screen width. The last restriction can be circumvented by copy-pasting the command. In addition to that, the bootloader defines the following functions: os.sleep([timeout: number]) proxy(componentName: string): table or nil — returns a component proxy by its name (cf. component.proxy, which takes an address) read(lastInput: string or nil): string or nil — a primitive io.read() print(...) The source code for the curious: https://github.com/BrightYC/Cyan P. S. Big thanks to @Fingercomp for his lecture about string escapes and writing this text.
  2. 1 point
    The inconsistency comes from you pulling events twice and storing them to separate variables. That can mess up the different senders in your network. So what you need to do is pull an event once, check the sender's address and then perform some tasks based on the addresses. local event = require "event" while true do local _, _, addr, port, _, message = event.pull("modem_message") if addr == "one address" then -- # do some stuff elseif addr == "the other address" then -- # do some other stuff -- # you can add as many addresses in elseif statements as you want end end Or you use a a table to map functions to addresses. local event = require "event" local addresses = { ["address1"] = function (msg) -- # do stuff end, ["address2"] = function (msg) -- # do other stuff end -- # you can add as many addresses and functions as you want } while true do local _, _, addr, port, _, message = event.pull("modem_message") if addresses[addr] then addresses[addr](message) end end
  3. 1 point
    I don't know securitycraft or opensecurity but you can put a redstone card into the computer and get a redstone signal on incoming wormholes.
  4. 1 point
    Okay thanks for the reports. I reverted the last update so it should be back to normal.
  5. 1 point
    A while ago i made a JVM in Lua with the first goal of running Java on OC, just because i like Java and we all know it's a good programming language. So here's the JVM running a program that fills GPU: Oops, made a typo. Ok at first this might not seem impressive at all, but now you can interact with components using Java! That's an awesome thing for Java-ers like me! Race to first Java OS in OC? Anyone? Here's the (simple) code i used above import lukyt.oc.Component; public class ComponentTest { public static void main(String[] args) { String gpu = Component.getPrimary("gpu"); Component.invoke(gpu, "setBackground", new Object[] {0x2D2D2D}); Component.invoke(gpu, "fill", new Object[] {1, 1, 160, 50, " "}); System.out.println("Filled screen with RGB 0x2D2D2D"); } } Here's GitHub page (to download and use on your favourite OC computer): https://github.com/zenith391/lukyt
  6. 1 point
    I've modified this to be able to remove either a specific filesystem or the last added filesystem by either passing an address or '.' (for the last added) as the first parameter to the remove command. The second parameter is the forcefully option. so 'rc bundle remove ad432df3 true' (yes, short addresses are allowed).
  7. 1 point
    MineOS is half the operating system and half the graphical environment for OpenOS, which comes in OpenComputers mod by default. Oringinally it was developed in Russian, but it supports several languages. MineOS has following features: Multitasking Windowed interface with double buffered graphics context Animations, wallpapers, screensavers and color schemes Language packs and software localization User authorization by password and biometrics Support for file sharing over the local network via modems Support for client connection to real FTP servers Error reporting system with the possibility to send information to developers App Market with enormous amount of wonderful applications and possibility to publish your own programs for every MineOS user An internal IDE with syntax highlighting and debugger Open source system API and detailed illustrated documentations Custom EEPROM firmware with the possibility to select/format the boot volume and Internet recovery Almost complete compatibility with OpenOS software How to install? First, you need to install OpenOS from floppy disk to your HDD. After that you'll be able to run MineOS installer via single command: pastebin run 0nm5b1ju System requirements: Internet Card OpenOS installed on Tier 3 HDD Tier 3 GPU 2x Tier 3 RAM Tier 3 CPU (not really matters, just speed up) Troubleshooting: Are there any problems, suggestions? I'll be glad to see you on the operating system repository: https://github.com/IgorTimofeev/MineOS
  8. 1 point
    MisterNoNameLP

    ocCraft v0.1.2

    ocCraft is a little videogame originated trough a very little OpenComputers game jam. It is currently not much more as the engine but should be easy to modify as long as you have a little practice with lua. Modding You can install/create your own texture packs (also with different resolution) as well as mods with new blocks, entities and biomes (world gen)*. *(technically you can change nearly anything at runtime because the most data are stored in a local table named global which will given to any script at loading.) GitHub: https://github.com/MisterNoNameLP/ocCraft Pastebin (installation script): https://pastebin.com/7h1xNZgt Gameplay: I hope you like the project and have a little bit fun :>
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
×
×
  • Create New...

Important Information

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