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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

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

Leaderboard


Popular Content

Showing content with the highest reputation since 10/18/17 in all areas

  1. 2 points
    ZeroNoRyouki

    Big Reactors Grid Control

    Hi there! So, I've run the "test" program in my 1.10.2 devenv and got the same bunch of 1s. I then changed getEnergyStored() to always return a fixed values without querying the reactor and tested again: same result. This is good, as it's not the reactor code that it's slowing thigs down What I basically have, code wise, is an OC'Enviroment with a bunch of @Callbacks (getEnergyStored, getFuelAmount, etc). DE also implement an Enviroment but it use a string lookup (from ManagedPeripheral) to call the methods. If OC is using reflection to find the correct method on every method invocation we could have and explanation of the delay. I'll have to look around a bit more in OC code Z
  2. 2 points
    Dustpuppy

    New ultimate Gui

    Here we are!!! I am finished for the first release....(i hope) If you want to test it, just do "pastebin run Kz9E2JGL" on the computer in your minecraft world. You need an internet card for this. This will install all needed files in /usr/lib/windowmanager and /etc/windowmanager. During the installation you will be ask for the admin user name and the password. You can choose, whatever you want, but best is to use your mc username, because the software will add user to the computer using (funny sentence), like useradd in OS does. After finishing the installation just start it with "windowmanager" Minumum requirements for the computer are, a tier 2 screen, a modem, a keyboard 640k ram and a user who use it. I will do a proper documentation, how to make own programs, after i got some response and when i find the time. For now, just have a look into /usr/lib/windowmanager/programs/program_frame.lua. It's a frame work for making new programs. Or have a look into the other files in this directory. Here's a list of functions that are available. Not complete, but i am working on the documentation. Enjoy and have fun.
  3. 1 point
    XyFreak

    Big Reactors Grid Control

    Unfortunately, this is not correct. Running the controller in larger intervals would devastate its ability to keep the reactor output leveled. For smaller to medium sized passive reactors this wouldn't really be an issue. Active reactors however would constantly overproduce steam - then get their output cut and underproduce steam. Something similar would happen to larger passive reactors. My point was that in the past you could run BRGC litterally every tick with no additional lag introduced by outside factors whatsoever I've run my test program (last post) against turbines and they have the same issue, unfortunately. They require a lot less API calls to control though (BRGC sets each fuel rod individually to achieve finer grained control over the output capabilities). Recap: Reactors + Turbines are affected. ER is not the only mod with this behavior (-> computronics) There are mods without this behavior (-> draconic evolution, mekanism) We have a very small program to check on ... lets call it: API call latency The issue has been observed on 1.10.2 at least (I've not yet tested 1.12) This is pretty much everything we can do without diving into the mods code and comparing how the OC API is implemented here vs DE or mekanism to figure out what's going on. If this goes on for a bit longer I might end up doing that this weekend.
  4. 1 point
    Ben85

    Mekanism HUD with OpenGlasses

    Mekanism HUD for my OpenGlasses fork (needs at least version 3.3.3) https://github.com/ben-mkiv/OCGlasses/releases images from the setup => https://imgur.com/a/dx8Yf the script monitors the mekanism reactor, induction matrix, 2 input tanks for deuterium/tritium and one laser amplifier (use the closest to the reactor) supports remote ignition and setting of injection rate the code isn't cleaned up or optimized a lot so... (may update it later) haven't tested it with a steam reactor yet, but the stats should appear when water or steam is in the reactor setup with (the glasses need database upgrades to handle all the widgets (~90 Widgets used) so add a Tier3 DB Update on Anvil and it should work ) pastebin run 9NJ3E5kG the blur effect is archived by this mod and only visible when the Overlay is active (hotkey for openglasses) https://minecraft.curseforge.com/projects/blur
  5. 1 point
    feldim2425

    Websocket Client API

    A simpe API to connect to a Websocket Server / Endpoint Forgot to mention: This API requires a Internet Card and Lua 5.3 Example Code: local ws = require("websocket_client"); local event = require("event"); local cl = ws.create(function(ev ,var1) print(ev .. "->" .. var1) end); cl:connect("localhost", 12345, "/"); while true do local ev = {event.pull()}; if ev[1] == "interrupted" then cl:disconnect(); return; elseif ev[1] == "touch" then cl:send("HI"); end end Full API documentation here: https://github.com/feldim2425/OC-Programs/blob/master/websocket_client/API.md To download and install the API simply run this command: pastebin run xnXssAtH
  6. 1 point
    the first argument of computer.pullSignal is the max timeout. Use deadline - computer.uptime() instead of 0 and that should give a more desired output. The lua sleep function doesn't work because OpenComputers requires you to manually halt your code every.
  7. 1 point
    marcin212

    [MC 1.7.10][OC 1.4.0] OpenGlasses

    Hello everyone! This is Direwo... wait, no... But, since I've caught your attention now, I'd like to show you a mod that I've been creating for some time now. The Mod is called OpenGlasses ans is an extension to OpenComputers.It is analogous to glasses from the OpenPeripherals add-on for ComputerCraft, but adds a few more nifty features. Download: LINK Wiki: LINK Issues: LINK
  8. 1 point
    Dustpuppy

    My gui (Now with visual editor)

    BIG UPDATE! I've worked out some updates and a new visual editor for the gui system. To use the gui just download http://pastebin.com/Dfgc6z0T to a computer as /lib/gui.lua and try your best. If you don't want to fight with the placing of elements on the screen, then you want to use the visual editor. It's alpha state, but i hope it will make no errors. The editor will create a full lua code as frame work for your own program in resolution 80x25 like for a tier 2 screen. But you need a tier 3 screen to use the editor it self. The program you can run then on a tier 2 or tier 3 screen. Please try it and let me know, what you think. It's a bit flickry when updating the screen, but i hope i get this fixed. You can download the editor at https://pastebin.com/jdaM8FKG If you like it, let me know and tell me, what i could change, or what you want me to put into the gui or the editor. Have fun
  9. 1 point
    Dustpuppy

    My gui (Now with visual editor)

    And one more. As you see, i have nothing to do at the moment ;-) Insert radio buttons. Now it's enough. I have no idea what else is missing. If you have ideas let me know.
  10. 1 point
    Starwolf

    Sleepless Nights

    Well, in short, I play on a survival server running the infitech2 modpack. It's a gt-themed modpack, and everything's been "gregified", so opencomputers was chosen as the primary computer mod, very little minetweaker needed as it was already balanced. I'm a noob at programming, I haven't touched the stuff since I was a kid with a commodore 64 (with no drive) so was "peeking and poking" those little memory bits for hours on end. Life took me in another direction however, and I've not had an opportunity to get my tootsies wet until now. I've had computercraft in modpacks before, but it always felt "cheaty", I play minecraft for the survival aspect, and a magical box that you toss some redstone dust into and makes a computer just seemed... wrong. So again I missed an opportunity to learn Lua. Now, with infitech one of the more unique methods of getting around is usuing SGCraft Stargates. As a complete noob to any computer mod in minecraft or to programming in general I've been fumbling about trying to program a "dialer" using the SGCraft opencomputers interface http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/SGCraft/doc/ComputerCraft.html. I decided to use this because stargate components (namely DHD) are insanely expensive in this modpack (like everything else). After a full day of stumbling about learning both the very VERY basic tenants of Lua and OpenComputers, I was finially able to close the iris in a creative test world. Yay. That being said, Awesome mod, CC never really interested me, this one does. I noticed the blocks looked abit... under par though when compared to the awesome monitors displaying text, so after getting tired I started doing something else to take my mind of my failures at programming, and started making some 128x textures for Opencomputers with an early 80's theme (I based textures off of Xerox altos, Apple II, IBM 5150, commodore 64, all the things that this mod brings back memories of lol) Fans/Lights are fully animated and functional, only got some of the main blocks retextured, again it was just a sleepless night, but I've got the theme down and I could continue for the rest of the mod if there's interest. Thanks again guys for rekindling my interest at looking at lines of code.
×