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

All Activity

This stream auto-updates     

  1. Yesterday
  2. Lizzy Trickster

    Wiki down

    Weird, lemme know if it happens again. I'll poke Sangar
  3. Sizzlefist

    Wiki down

    Yes it's working now. As I said, I used different computers and networks in both my home and work, and also cell phone. None worked for the last two days. This also occurred last week as well. No big deal, just reporting it so you're aware.
  4. Lizzy Trickster

    Wiki down

    @Sizzlefist looks up for me, could you try again? Might have been a blip on Sangar's servers
  5. Molinko

    Wiki down

    Not an issue for me. Perhaps you need to clear browser cache or even see if your router is somehow blocking the domain?
  6. Last week
  7. Sizzlefist

    Wiki down

    The wiki has been down for two days now. ERR_CONNECTION_TIMED_OUT from ocdoc.cil.li Same issue on multiple computers and networks. Is anyone aware of this?
  8. BrisingrAerowing

    Give component With NBT

    Quotation marks you mean?
  9. GeekyMeerkat

    Energy Tester Question

    I'm thinking about trying to write up a program for open computers that would do the following: Detect a connected power generator such as a dynamo or coal generator. Detect a connected power storage unit such as an energy cell. Control the activation of the generator so that it can: Take note of when the generator starts, Display how full the power storage unit is, Display how much time has elapsed with the timer stopping when the storage is full. Display how much "fuel" has been used with the count stopping when the storage is full. (With fuel being whatever the generator requires to work.) The reason I want to do this is there are a number of generators that use the exact same fuel or generators that are in theory better because they are a higher tier but where there just isn't much information on what ones are actually better. Worse many of the mods that exist in the popular packs adjust their numbers and recipes every now and then, so even if there is a wiki that says X generator produces 40 RF per tick, that may be entirely off in the current or next version.
  10. XanderRadio

    constant program running in background as service

    this was just what i was looking for, thanks
  11. Molinko

    constant program running in background as service

    You might want to look into something like event.listen or event.timer. Basically every time an event occurs you can have a block of code run. Here's a small example. local event = require "event" local function printComp(ev, addr, ctype) print(string.format("component added: [type] %s [address] %s", ctype, addr)) end event.listen('component_added', printComp) -- some time later event.ignore('component_added', printComp) Here's a timer example. local event = require "event" local count = 0 local handle = event.timer(1, function() count = count + 1 print(string.format("timer tick #%d", count)) end, 10) -- # (how often, callback(), how many times)
  12. XanderRadio

    constant program running in background as service

    98.3% of opencomputers seems to be a constant stream of errors... this is one of those times, this means that i will have to look for alternate solutions.... technically all i want to do is have a computer run a piece of code every so often but in a way that doesn't interfere with other programs i have running, in short i need a loop that won't act as while true do in the sense that it won't prevent me from doing anything else but it still runs in a loop. i've been overcomplicating things..
  13. Molinko

    constant program running in background as service

    Sorry but it would take a ton of work.. Basically the thread library is a fancy coroutine library that let you do fancy things.. like detach a process from the current process and attach it to the parent.. One possible option is to update OpenOS itself. A newer version of the OS should work with an older version of OC. Check out this thread .... (OpenOS updater)
  14. XanderRadio

    constant program running in background as service

    rather annoyingly Opencomputers got threads added in an update later than 1.7.10 meaning that i can't use threads, any chance it could work with coroutines in a similar way?
  15. Molinko

    constant program running in background as service

    Seems you're on an older version of OpenOS. Sorry, but my example would require the thread library in order to function. If you update your OC version and reinstall OpenOS It should fix the issue.
  16. XanderRadio

    constant program running in background as service

    it gave this error: i have no clue what the problem is...
  17. Molinko

    constant program running in background as service

    Could you clarify what exactly you expect?? I showed you one option in another thread for a service that launches programs into the background. Was that not what you're looking for?
  18. i want to control something using opencomputers that requires it to constantly check something and act based on that input but i want to be able to do other things as well so it needs to run in the background and run constantly without using a while true do loop as i don't want it to interfere with any other background programs i have running, please help if you can.
  19. The Simon

    Give component With NBT

    Thank you! This works fine! Had no idea you could have parenthesis in the NBT tag like that!
  20. Elektron72

    Give component With NBT

    Try this command: /give @p opencomputers:storage 1 1 {"oc:data":{"oc:fs.label":"openos"},"oc:color":2,display:{Name:"OpenOS (Operating System)"},"oc:lootFactory":"opencomputers:openos"}
  21. The Simon

    Give component With NBT

    Hi! I have some questions about how to get OpenComputers' items with NBT through commands. I would like to give players the OpenOS Floppy Disk when they run a command block, but when I'm trying to give the floppy any of the OC attributes I'm getting an error: Data tag parsing failed: Expected '}' but got ':' at: {oc:data:<--[HERE] This is the command I'm currently using: /give @p opencomputers:storage 1 1 {oc:data:{oc:fs.label:"openos"}, display:{Name:"OpenOS (Operating System)"}}
  22. Elektron72

    Auto farm crops

    Here is a farm program I wrote that should work with most robots: local robot = require("robot") function moveToStart() -- modify this if the charger is in a different place end function moveToCharger() robot.turnAround() for i = 1, 25 do robot.forward() end robot.turnRight() for i = 1, 4 do robot.forward() end robot.turnRight() end function plant() robot.forward() robot.swingDown() robot.suckDown() robot.placeDown() end function plantRow() for i = 1, 25 do plant() end end function reverseRight() robot.forward() robot.turnRight() robot.forward() robot.turnRight() end function reverseLeft() robot.forward() robot.turnLeft() robot.forward() robot.turnLeft() end while true do moveToStart() plantRow() reverseRight() plantRow() reverseLeft() plantRow() reverseRight() plantRow() reverseLeft() plantRow() moveToCharger() os.sleep(2400) end You can also download it from pastebin: https://pastebin.com/RxNB6bjC Note: For some reason, the robot will only pick up items properly if there is an item in the tool slot. (It can be any item, such as a block of dirt, a stick, etc.) Video: https://youtu.be/xRiBUSI-1TM
  23. Sim

    Player Tracking

    Elektron72: Thank you, i did not see that the name was included in the data stream. that makes life even easier.
  24. i want to have multiple screens connected to the same computer but i want to be able to type a command and it will switch the screens displaying the computer or even have all the screens showing the same computer, is this possible, if so please help. thanks in advance -XanderRadio
  25. Elektron72

    Player Tracking

    Although this approach would work, the debug card is not necessary because the sensors can tell what player triggered them. The player's name is part of the signal that is sent to the connected computer.
  26. Elektron72

    Running the OpenOS Editor from a program

    Changing from io.input() to io.open() fixed the problem.
  27. Sim

    Player Tracking

    I want to build a player tracker for a labyrinth. The purpose to is minimize the ability of players to use waypoints to bypass all/most of the labyrinth.. require they actually walk it. I am new to OC, and want to be sure i'm thinking things correctly before i get totally lost. My idea is to have several motion sensors spread throughout the labyrinth. When a sensor is tripped, it sends a signal to the computer. The computer uses the debug card to find the location of every player on the server ( usually < 25). it uses that information to determine who was 'near' the tripped sensor. the player name and sensor number is saved in a table/database. only when all required sensors have 'tripped' for a particular player, they would be deemed to have completed the labyrinth. Am i making this more complicated then it needs to be? Will this work with OC ? Sim
  1. Load more activity
  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up
×

Important Information

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