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.2 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.2. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)


  • Content count

  • Joined

  • Last visited

  • Days Won


feldim2425 last won the day on November 21 2017

feldim2425 had the most liked content!

About feldim2425

  • Rank
    Junior Member
  • Birthday 03/27/1998

Contact Methods

  • Minecraft
  • GitHub

Profile Information

  • Gender
  • Location

Recent Profile Visitors

921 profile views
  1. [Addon Mod] java.lang.Nullpointer on startup [SOLVED]

    The error was a Nullpointer Exception in mods.ocminecart.common.inventory.ComponentInventory in the method getComponentSlot().
  2. I'm rewriting OC-Minecarts for 1.10.2. But the Carts won't boot. If I insert no BIOS it works as intended and tells me, that I have to insert a BIOS EEPROM, same if I insert a BIOS but no OpenOS, but if I insert a OpenOS disk and power the computer cart up. The Startup routine crashes with "Unrecoverable Error java.lang.NullPointerException" I don't know where this is coming from. The log doesn't tell me anything, even if I enable "logCallbackErrors" (and also some other options in debug category). Debugging with breakpoints also didn't help. Forcing LuaJ it printed "machine:1447: machine:631: java.lang.NullPointerException stacktrace traceback: [Java] in ?" OpenComputers: Source: https://github.com/feldim2425/OC-Minecarts/tree/master-1.10 EDIT: Didn't open a github issue because i'm pretty sure I did something wrong. EDIT2: After some testing I figured out, that a method in the /lib/core/boot.lua or below the loading of boot.lua in the init.lua file leads to that error. Didn't figured out what method or where.
  3. Working Web Browser

    A very simple webbrowser might be possible but one that supports videos, chrome plugins, javascript and styles not. Remember: OpenComputers can't draw pixel per pixel, only characters. And supporting videos would mean that you have to implement flash and html5. Even if it is possible it might take month or years to implement all that and i think the limited memory of oc wouldn't allow that.
  4. Can't Turn on Server

    First. You can use an analyzer to see the error message Second. if you open the gui of the rack (not of the server itself) you can connect the component network to one of the 5 sides (front not counted). You have to make sure the Screen is connected to the corresponding side. EDIT: You can open the Rack gui if you click anywhere except the places on the from where you can see a server. In my case the first slot / row
  5. Network Debugger

    If you read the Item Tooltip of the network debugger, it says that it debuggs the internal network of OC. And is made for Devs. The Network debugger is not even craftable and will only output messages to the log. EDIT: I think this is the wrong Forum section for this. This thread should be in "Support" and not in "Tutorials"
  6. Problem with the server, modem.send() and modem.broadcast

    Hi. If you use a Server make sure that you configured the rack correctly. As you see in the screenshot below a server with a network card has two connections. One for the Component network and one for the Network Card itself, while a server without network card only has one connection. Also make sure that the cable is connected to the correct side.
  7. 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
  8. BIOS equivalent of 'require'

    Yeah. The "require" method is part of OpenOS. But there are some ways around that. 1) I think the component-Library is native (At least for eeproms in a computer case) so you don't have to require it. 2) component.filesystem is a link to the first filesystem found by OpenOS when it starts. So you can find it yourself local fs = component.list("filesystem", true)(); 3) Instead of using the filesystem-Library you should use the filesystem-Component (link to the docs)
  9. Download and upload programs

    You can't download directories. I checked the Pastebin API and it doesn't look like they added directories to the API. And 'wget' uses the same download as your browser does and this method doesn't support downloading folders.
  10. Player detection

    Yes. If you look in the Wiki about signals (ocdoc.cil.li/component:signals) you can see, that the "key_down" event and the "touch" event gives you the playername.
  11. It does not define the item as an upgrade.

    You return null in createEnvironment() but you have the return a ManagedEnvironment. The ManagedEnvironment also needs a Network Node with a component. public class TeslaUpgrade extends li.cil.oc.api.prefab.ManagedEnvironment{ public TeslaUpgrade(){ this.setNode( Network.newNode(this, Visibility.Neighbors).withComponent("teslaUpgrade").create() ); } } I do not know if you have seen the example on GitHub If the upgrade is only for robots you should check in worksWith() if the host class is li.cil.oc.common.tileentity.Robot because there are also upgrade slots in drones, microcontrollers and in the adapter block
  12. Using an Adapter to get JABBA Barrel info

    You have to get the inventory controller component not the component of the Jabba barrel. local component = require("component") local inv = component.inventory_controller local stack = inv.getInventorySize(sides.west) print(stack)
  13. [MC 1.7.10][OC 1.5+] OC-Minecarts

    Hello everybody! This is the official forum thread for OC-Minecarts. This addon mod adds computer carts and more to OpenComputers. Some features in this mod: Computer carts with an build-in engine and a break. Remote module for railcraft locomotives Network rail to send network messages and power to a computer cart. Interaction with Railcraft: Computer carts can take energy from electric rails. Carts are linkable. Signal for cart lockdown (holding tracks). Linking Upgrade for Computer Carts You can put railcraft emblems on Computer Carts Screenshot: Download and more informations on Curse. Please report any issues. Github
  14. Multiple screens - set which displays shell

    I think Plan9k is Multiscreen compatible. If you want to use OpenOS remove the lines 31 to 36 in init.lua and replace them with: local screen = "<SCREEN ADDRESS HERE>"
  15. Real life time (at least server time) in OC

    local fs = require("filesystem") function os.dateRL(format) if not fs.get("/").isReadOnly() then local time = io.open("/tmp/.time", "w") time:write() time:close() os.sleep(0.01) return os.date(format, fs.lastModified("/tmp/.time") / 1002.7) else return os.date(format) end end It works. Just require filesystem and "only" in isReadOnly starts with an uppercase letter