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 01/22/20 in all areas

  1. Due to quarantine, I got a bunch of time in my hands, I remember that since I first used this mod, back in MC 1.7 we had this phrase on Geolyzer description "It is theoretically possible to eliminate this noise by scanning repeatedly and finding an average. (Unconfirmed, needs further testing.)" Now, many years later, i do know quite some about statistics and got plenty of time So, lets begin We begin our dive in Statistics with an hypothesis, Does this number measured relate to an ore or stone, putting it in hardness terms, does the true number of hardness equal to
    5 points
  2. 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
    5 points
  3. FlatDB is an implementation of SQL (or SQL-like) commands for manipulating databases on the hard drive itself. This post covers: Available commands and overview. How to use the API. Limitations. Performance. Future plans. 1. Available commands and overview. The following commands are available within the API: SELECT DELETE UPDATE INSERT WHERE AND OR Tables are human-readable and a single-row table will typically look like this: #$ID|param1|param2 1|value1|value2 Tables are created as files, with t
    3 points
  4. There is an interesting device in the OpenComputers mod that allows you to determine the block hardness at a distance. But the trouble is, the data it gives out is rather noisy and the greater the distance, the more noise. To determine the true hardness of a block, we can scan it several times and average the result. The noise that interferes with scanning is of a probabilistic nature. And after several scans, you can statistically find what the most likely hardness of the block is. In one tick, we can scan 64 blocks. To analyze the entire available area (65 x 65 x 64) with hundred of
    2 points
  5. Zen1th

    Minecraft server on OC

    Last demo video: No, it does not currently run modded minecraft (albeit it runs plugins made for this server), but one experiment i want to do for later is recreating a bit of OC mod in Lua, to make it run in this server, so that you can run Minecraft server in Minecraft server in Minecraft server in Minecraft server in ... until it crashes your PC lol.
    2 points
  6. Anything not impossible is possible, and this feature doesn't even require much perseverance to implement. Right now we're using owner to store the nickname of one player. We are going to replace it with a table, and therefore the name owner is no longer satisfactory. Let's rename it as trustedPeople and populate it with some test names. local trustedPeople = {"player1", "player2", "player3"} A table is the universal record type in Lua, that is, the type that stores multiple values. But we still need to choose the correct data structure. The table trustedPeople is a sequence. This
    2 points
  7. I am sorry, but unless I'm misreading your code, it can't possibly throw an "attempt to index a nil value" error, with any people in proximity or without. And the question is contradictory, stating both that the program crashes and that it freezes (the latter is correct, however). Actually, I'm unsure what the actual question is. Therefore, I'll do the only thing I can here: that is, explain what your code does wrong and how to fix it. Before I can proceed to fix the actual issues in the program's logic, I have to get rid of some minor problems. The first such problem is that the code is
    2 points
  8. I just finished the first version of bundle - a rc application which virtually merges multiple filesystems into a bigger one. You can use it whenever a RAID full of tier 3 HDD isn't enough for your needs. On the picture above, for example, you can see 10 RAIDs with 30 tier 3 HDDs which yield a virtual HDD that can store over 200MB of data. You can also use filesystems of different size and create files bigger than any of the used filesystems since bundle is capable of storing a file on multiple HDDs. If you encounter any bug, please report it on my github repository. Also check out the wi
    2 points
  9. 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 =
    2 points
  10. How to Write an OpenComputers Operating System This is the kind of guide I wish I had had 9 months ago when I started developing operating systems for OpenComputers. It will walk you through writing a very basic OpenComputers operating system. EDIT: The guide I followed (the only one I found) is here: WARNINGS: -- This post assumes basic knowledge of programming, such as: what a string is, what a table or list is, what a function is, what a variable is, etc. I am NOT attempting to teach you Lua-- see warning #3 -- This operating system is not intended to have many featur
    2 points
  11. Hi, now i'am getting complicated :-) Here's my security system. It's based on opensecurity and oc. ------------------------------------------------------------------------------------------------------------------------------- What's needed? The server Start it before starting any door computer or the card writer system. The server will handle all user accesses. The card writer This is the main system. It's with gui to setup all users. It needs an opensecurity card writer connected. You can setup new user, edit user or delete user. A user can be blocked to stop him usi
    1 point
  12. SGCX - SGCraft Stargate Controller Stargate controller based on GML library. Showcase: Installation steps: First download the package manager that will be used to download the application and all required dependencies: wget https://pastebin.com/raw/iAH5xC3b arpm_downloader.lua arpm_downloader Use the package manager do download SGCX: arpm install sgcx Run SGCX with an additional argument - init. This will allow you to pick a stargate interface address from list. It is required only during th
    1 point
  13. 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
    1 point
  14. Log

    Robot-miner with geolyzer

    I present you a program for a robot that allows you to mine ore without going down into the caves. Robot, using a geolyzer, can find and mine ore. All features are not yet implemented, so I ask you to test and inform me about a bugs. Requirements: Computer case (tier II or III) Inventory Upgrade (more the better) Inventory Controller Upgrade Hard Disk Drive EEPROM with Lua BIOS Geolyzer RAM (tier I or higher) CPU (any) Hover Upgrade (tier I) Diamond pickaxe or equivalent tool Optional: Crafting Upgrad
    1 point
  15. Fuchas Fuchas in a Nutshell Fuchas uses drivers instdead of component access and support UAC (with new OS separate permissions!) ! Programs don't need to maintain integration with different components, the OS now does it! The driver library will try automatically choosing the best driver, but it can be configured by user. Meaning programs adapt to components with no effort (e.g. Computronics cards) Notice about security: Fuchas is currently alpha and "security" (if we can even call that security) isn't done at all, however the UAC is functional. Fuchas also has a permission
    1 point
  16. First post here, hi. For the past few months, I’ve been working on an operating system for OpenComputers. It’s a monolithic, UNIX-like operating system. Note that Monolith will not currently work in OCEmu due to the lack of support for`computer.getDeviceInfo`. First, the advantages over OpenOS: - Monolith supports dynamically adding and removing screens, GPUs, and keyboards - it’ll automatically spawn a shell on an available combo and will try to match by tier. - Monolith’s userspace is properly sandboxed - there’s no way to completely crash the kernel from userland
    1 point
  17. There's software for importing/exporting components included with the Minitel RPC library (on oppm as mtrpc) tl;dr oppm install mtrpc exportcomponent <component address> [component address...] importcomponent <host> <component type> <component address> Doesn't work properly with components that return functions, like the internet card, but it works nicely with stuff like redstone cards and storage devices.
    1 point
  18. Zen1th

    Minecraft server on OC

    Not a Minecraft server about OC, but a Minecraft server running on OC. More specifically an 1.15.2 Minecraft server. (btw sorry for low video quality, but 2 Minecraft instances with one modded is CPU-intensive, so..) Installing Just look at the github: https://github.com/zenith391/OCMCS
    1 point
  19. Nexarius

    Minecraft server on OC

    Wait what? How? You did what? But can it run modded minecraft? How deep is the rabbit hole?
    1 point
  20. CptMercury

    Wireless and Relays

    There is some issue with the tier 1 card. I usually use tier 2 anyways, therefore I didn't notice. Tried with a tier 1 card and I was able to replicate your findings. So for now, I would simply use a tier 2 card in the robot and computer and everything will work just fine without a relay. I'll probably have a look in the tier 1 card's source code later and file a bug report on github (unless you want to do that)
    1 point
  21. CptMercury

    Wireless and Relays

    Hey If done correctly, you don’t need the relay. Communication between multiple computers/drones etc works just fine without. The way your setup behaves is somewhat strange, I can try to replicate this later. Anyways, do you have a wireless network card in both the computer and the robot? (I assume by drone you mean the machine called EDI in your screenshot, right) Also, the code you showed looks somewhat fine I guess, but it would be helpful if you could post both as full program, preferably not as screenshot but as snippets.
    1 point
  22. CptMercury

    Options?

    Just add this to your code: local shell = require "shell" local args, ops = shell.parse(...) You can read more on the shell.parse function here. But basically, options following a single '-' is split into single characters (that means -test sets the options t, e, s, t and NOT a single option called "test). To have an option name with more characters, use the double '--' following the name (--test will set a single option called "test") So, if you have a file test.lua, you could add the following (of cause also adding the 2 lines above as well) if args.o then -- do some s
    1 point
  23. zag kalidor

    Options?

    have a look into the /bin/echo.lua, maybe something like this ?
    1 point
  24. 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
    1 point
  25. 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.
    1 point
  26. Okay thanks for the reports. I reverted the last update so it should be back to normal.
    1 point
  27. Seems like this small script is gone, removed by codepen robots, and i cant find it in my archives. This script was cutted version of .vox converter. You can use it instead, but will need extra work on output. Your comment is my award! Thank you for using it and telling me this.
    1 point
  28. local function list_files(dir) local files = {} for path, err in filesystem.list(dir) do assert(path, err) if not filesystem.isDirectory(path) then table.insert(files, path) end end return files end -- # use local files = list_files '/home' -- # example result -- { -- 'test.lua', -- 'poop.cfg' -- }
    1 point
  29. Thank you. Honestly, neither did I. Until I decided to make a Point of Sale system and realized that I needed a database. If I'm gonna do it once, I might as well make a library.
    1 point
  30. Log

    unrecoverable error prank

    That is mighty easy. computer.pullSignal = nil
    1 point
  31. 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).
    1 point
  32. I had this problem quite a long time ago, and I think I fixed it by also updating the settings client-side to match those on the server.
    1 point
  33. There is a new Stargate mod AUNIS that is looking very good,. and has added in Open Computers support. I was wondering if there would be a way to port this program to work with the new mod? Curse forge: https://www.curseforge.com/minecraft/mc-mods/aunis Git hub: https://github.com/MrJake222/AUNIS/wiki
    1 point
  34. Fingercomp

    IRC library

    There was no IRC library for OpenComputers, so I've made one. Here's a demo bot that uses it: local com = require("component") local event = require("event") local thread = require("thread") local gpu = com.gpu local irc = require("irc") local events = irc.events local env = setmetatable({ irc = irc, events = events, }, {__index = _G}) local client = irc.builder() :connection { host = "irc.esper.net:6667", throttling = { maxDelay = 2, maxThroughput = 5, }, } :auth { nickname = "oc-finger-irc", username = "fingercomp", realname = "OpenComput
    1 point
  35. A while back, I've quietly released an unofficial, experimental OpenComputers fork called OC-Staging, available here. The key features as of writing include: Optimized GPU rendering code, providing up to 2x better performance (in terms of frame rendering time), LuaJ and JNLua bugfixes and updates, Native Lua performance improvements, Lua 5.4 support! (currently on lua-5.4.0-beta) This is the feedback thread for this fork, as input is sought before merging the changes back into OpenComputers due to their potentially invasive nature (for bug reports, please use th
    1 point
  36. 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
    1 point
  37. What is STEM? Did you ever want to have a linked card, but without this pair-to-pair limitations? Well, you have internet card. And that is already half of the solution. The other half is to use Stem. Stem is a message transmitter for your OpenComputers devices with internet cards. Using a small OpenOS library you can use Stem to send and receive messages. Unlike the standard `modem` component, Stem-messaging uses not addresses, but `channels`. You can send messages to any channels, and you can subscribe to any number of channels to listen for messages from them.
    1 point
  38. ProjectOC has moved on! POC2 has got a reboot and is no longer active. The only reason this thread is still here is for historical reasons. Of courese not all the progress POC2 players have done is gone. But more infos about that on our discord server. ProjectOC 3 page: Discord server: https://discord.gg/v927kk7 ProjectOC 2 is a small 1.12.2 survival server with focus on OpenComputers. With weekly events like coding contests, game jams etc. we want to guarantee the long time motivation. Of course, you can't code directly in OC so why we provide an FTP acces
    1 point
  39. Program I wrote to monitor my Draconic Evolution Energy Core: -- Original by Merung (October, 2018) local component = require("component") local term = require("term") local gpu = component.gpu -- Setup components if not component.isAvailable("draconic_rf_storage") then print("Draconic Energy Core not connected. Please connect computer to Energy Core with an Adapter") os.exit() end storage = component.draconic_rf_storage if not component.isAvailable("screen") then print("How do you expect to view this?") os.exit() end -- Set Resolution res_x = 120 res_y = 25 gpu.setRe
    1 point
  40. Log

    Clock - displays ingame time

    I make is with pseudographics pastebin get wA3Nz2YC clock.lua
    1 point
  41. mpmxyz

    The Debugging Guide

    Content Introduction Reproducing an Error Error Messages Debug Output Appendix List of Error Messages Using a Debugger Ad alert: cbrowse Introduction Writing code is one thing, making it work is a completely different story. More often than not something is not working as intended and sometimes your program just crashes the instant you run it. This can be fun and inspiring but most often it is just frustrating. This guide is meant to introduce you to several useful debugging techniques with the primary focus being Open
    1 point
  42. Not really. Lua uses 64-bit signed integers as long as possible (unless you force floating-point numbers by writing 4265.0 instead of 4265) and switches to double-precision floats for anything outside of that range. And if you exceed that range, then you get float infinity. If you're doing cryptography, you might want to look at the Data Card though. If I remember correctly the higher tiers provide some cryptographic functions too.
    1 point
  43. Thank you. Now it looks like something a ten year old can do. (Not joking nor being Sarcastic) But it should be easily done with something like 1. Make special X Block and put EEPROM Into it 2. Enter something like "edit (EEPROM Add)" 3. Enter code then remove EEPROM With Arduino the coding is "simple" much like OpenComputers. Snippet of Arduino code int hour11 = 1; int hour21 = 2; int hour22 = 3; int hour23 = 4; int hour24 = 5; int minute11 = 6; int minute12 = 7; int minute13 = 8; int minute21 = 9; int minute22 = 10; int minute23 = 11; int minute24 = 12; int hour1 = 0; in
    1 point
  • 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.