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

SpaceBeeGaming

Members
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    2

SpaceBeeGaming last won the day on October 28

SpaceBeeGaming had the most liked content!

About SpaceBeeGaming

  • Rank
    Junior Member
  • Birthday 01/30/2000

Contact Methods

  • Minecraft
    SpaceBeeGaming
  • GitHub
    SpaceBeeGaming

Profile Information

  • Gender
    Male
  • Location
    Finland
  • Interests
    Technology, cats

Recent Profile Visitors

319 profile views
  1. SpaceBeeGaming

    What to I need for a custom OS to run?

    https://ocdoc.cil.li/tutorial:custom_oses Here is some information regarding custom OS.
  2. SpaceBeeGaming

    No Bootable Medium Found

    @etria You are using the wrong disk drive block.
  3. SpaceBeeGaming

    How to implement IPv4 using modem.

    Not sure it it helps you, but I do have a sort of DNS server (and client api) in the making and mostly finished. Basically a computer which holds a table of ip-hardware address pairs in a table. To which other computers can add or ask values via network messages. You can find it from my github: https://github.com/SpaceBeeGaming/OC-DNS It doesn't have any documentation or testing done yet (I will get to it soon).
  4. SpaceBeeGaming

    When to use Microcontrollers

    They can be used for a sort of "GPS" beacon. (Triangulating a position on a tablet with wireless network cards.) In essence, something really basic and specific.
  5. SpaceBeeGaming

    Table saver/loader

    I wrote this simple library for saving and loading tables from files as I needed such functionality for my program. (Useful for saving program settings between reboots.) Requirements: OpenOS Documentation: load(string: path) Returns the table stored in given path. save(table, string: path) Saves the table in a file located in path local serialization = require("serialization") local tableToFile = {} function tableToFile.load(location) --returns a table stored in a file. local tableFile = assert(io.open(location)) return serialization.unserialize(tableFile:read("*all")) end function tableToFile.save(table, location) --saves a table to a file local tableFile = assert(io.open(location, "w")) tableFile:write(serialization.serialize(table)) tableFile:close() end return tableToFile Usage: local ttf=require("tableToFile") --Saving local data={"a","b"} ttf.save(data,"/tmp/dataTable.txt") --loading local data=ttf.load("/tmp/dataTable.txt") If you have suggestions on how to improve it, please comment. (or make a pull request/issue in the GitHub repo.) This can also be found from here: https://github.com/SpaceBeeGaming/OC-Script-Collection/blob/master/lib/tableToFile.lua
  6. SpaceBeeGaming

    control door piston

    The program as I wrote it starts with the door open (Redstone signal off) There were also a few mistakes (forgetting to change the internal tracking of the door state when closing/opening the door), so here is a (mostly) fixed version. Edit: Tested: works. local component = require("component") local r = component.redstone local term = require("term") local text = require("text") ---- config section local password = { pw_open = "openMe", --pasword for opening pw_close = "closeMe" --pasword for closing } local side = 5 --side of the door ----- local open = true local input_password local function checkPassword(i_password) if (i_password == password.pw_open and open == false) then return true elseif (i_password == password.pw_close and open == true) then return true else return false end end term.clear() while true do print("Please enter the password:") input_password = text.trim(term.read({pwchar = "*"}) or "") if (checkPassword(input_password)) then -- *) reverse if runnig throug redstone torch (inverted) if (open == true) then -- Close the door if open. print("Closing the door.") r.setOutput(side, 15) --set redstone signal high. *) open = false else -- Open the door if closed. print("Opening the door.") r.setOutput(side, 0) --set redstone signal low. *) open = true end else print("Password was wrong, try again") end end
  7. SpaceBeeGaming

    Simple Refined Storage Script

    What do you mean with "capacity"? free space left? How many items you have? Be more specific!
  8. SpaceBeeGaming

    control door piston

    Oops! That's a silly mistake on my part. Happens when one has syntax form multiple languages get mixed.
  9. SpaceBeeGaming

    Best answers on support forum

    Could we have a better way of notifying people to mark the best answer as best? Currently, almost no one remembers to do that. It is somewhat annoying that a question which supposedly doesn't have a solution actually does.
  10. SpaceBeeGaming

    control door piston

    This should do what you want. I didn't test it so it may not work. Just reply with the error message if it doesn't work. local component = require("component") local r = component.redstone local term = require("term") local text = require("text") ---- config section local password = { pw_open = "openMe", pw_close = "closeMe" } local side = 5 --side of the door ----- local open = false local input_password local function checkPassword(i_password) if (i_password == password.pw_open & open == false) then return true elseif (i_password == password.pw_close & open == true) then return true else return false end end term.clear() while true do print("Please enter the password:") input_password = text.trim(term.read({pwchar = "*"}) or "") if (checkPassword(input_password)) then if (open == true) then -- Close the door if open. print("Closing the door.") r.setOutput(side, 15) else -- Open the door if closed. print("Opening the door.") r.setOutput(side, 0) end else print("Password was wrong, try again") end end
  11. SpaceBeeGaming

    What other networking protocalls Can opencompiters use?

    I have no experience on this subject matter. And I'm not sure if it is even possible withing OpenComputers. So I can't help.
  12. SpaceBeeGaming

    What other networking protocalls Can opencompiters use?

    I think that you can, in theory, code a TCP based protocol (HTTP, SMTP, FTP,... ), but I'm not sure.
  13. SpaceBeeGaming

    What other networking protocalls Can opencompiters use?

    It supports tcp and http (based on the wiki page for internet component).
  14. SpaceBeeGaming

    Component to Use

    The simplest solution is to have only one screen with a keyboard. That way it boots to that screen every time. As for multiple keyboards, I can't help.
  15. SpaceBeeGaming

    How do I use a variable as a pastebin code?

    @PcStack Please mark Molinko's anwer as the best one. So this thread shows on the topic list as answered.
×

Important Information

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