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

feldim2425

Members
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    5

feldim2425 last won the day on May 21 2018

feldim2425 had the most liked content!

About feldim2425

  • Rank
    Junior Member
  • Birthday 03/27/1998

Profile Information

  • Gender
    Male
  • Location
    Austria

Contact Methods

  • Minecraft
    feldim2425
  • GitHub
    feldim2425

Recent Profile Visitors

3320 profile views
  1. This issue is likely caused because of a issue that was already discussed here are a few links: https://github.com/MightyPirates/OpenComputers/issues/3696 https://github.com/MightyPirates/OpenComputers/issues/3717 https://www.reddit.com/r/OpenComputers/comments/1d7xrsu/oppm_wont_install_even_with_network_card_inserted/ Because OC is on 1.12.2 and that Minecraft version uses Java 8 the cacerts file is outdated. This causes all TLS connections that depend on newer root certificates to fail. The Minecraft Launcher comes with it's own version of Java so would recommend inst
  2. Oh that can also happen, if somewhere the error, generated from os.sleep() or event.pull(), gets catched. In this case the program won't stop, at least not with the first try. Timers and Coroutines / Threads might also survive the Interrupt. To handle that you should check for the "interrupted" event (Fired by pressing Ctrl+C) and stop everything correctly.
  3. Programs usually won't just switch to background. You can try to kill it with CTRL+ALT+C .... this should throw an error and kill the program If you say that it keeps running in the background, how did you find that out? Just asking because it might be some other issue.
  4. I don't think this is possible and I also don't know why you want to pause the computer for that. I think its better if you enforce the limit by returning false or throw an error. But by pausing the computer it will not be able to handle other events like network or touch events. So this would not make much sense.
  5. 1. Require looks if the library has been loaded before and if so it just returns the cached version, otherwise it searches in some predefined paths (usually the current directory, /lib and /usr/lib) for the library, reads the content of the file and uses the load() function to parse and execute the lua code, it caches the returned value from the executed lua / library file (so it is faster if the library is required again) and returns it. You can find the OpenOS implementation in /lib/package.lua 2. You don't have to make any library for a custom filesystem. In theory you can do ev
  6. Some people told me they didn't get a confirmation mail. I tried to reset my passwort to test if the email system of the form is dead and the reset email also never got it into my mailbox. The spam folder is empty so I think oc.cil.li can't send emails.
  7. Hello. So you know how to make a program in ComputerCraft and you want to switch to OpenComputers or just want to know OC better, this tutorial shows you how to use OpenComputers. 0. Some concepts you have to know You can think of Components like Peripherals in CC. They are basically the same require is a function in Lua that returns a module. It can be compared to ComputerCrafts os.loadAPI. But require doen't load an API global like loadAPI, instead it returns the API and it doesn't return the _G table that the api defines. It returns what the loaded File returns like a
  8. The error was a Nullpointer Exception in mods.ocminecart.common.inventory.ComponentInventory in the method getComponentSlot().
  9. 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:14
  10. 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.
  11. 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
  12. 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"
  13. 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.
  14. 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/w
  15. 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)
×
×
  • Create New...

Important Information

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