- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
65 -
Joined
-
Last visited
-
Days Won
4
Everything posted by SpaceBeeGaming
-
@neocromicon You have too old version of OpenComputers (the mod) update to 1.7.3 (you are using 1.6.1) . The thread library only exists in 1.7.x builds of the mod.
-
How to get the number of files in a directory?
SpaceBeeGaming replied to SpaceBeeGaming's question in Programming
The thing is that the directory has only files and no directories. The files contain binary data (sha256 hashes), so how would I actually iterate through them for comparing with a fresh value. -
How can I get the number of files in a directory?
-
Not correct, there is x=x+1 line near the bottom.
- 4 replies
-
- help
- nanomachine
-
(and 1 more)
Tagged with:
-
I have developed a sort of DNS server/client system. This is the fifth iteration of this system and finally, one which works and I'm happy with. Here is the link: https://github.com/SpaceBeeGaming/OC-DNS I know there was another "DNS" posted recently but it has not influenced mine (sounds selfish, I know; but true).
-
If this is the case, it needs to be addressed in the wiki.
-
@LORD MJ You do have t2 Redstone card in the computer, right? Could you also give us some details on what mod versions you have. MC version, of version and wr-cbe version numbers. I'm suspecting a incompatibility between mods, if it isn't the a problem with Redstone cards missing.
-
https://ocdoc.cil.li/tutorial:custom_oses Here is some information regarding custom OS.
-
@etria You are using the wrong disk drive block.
-
How to implement IPv4 using modem.
SpaceBeeGaming replied to SubhumanPotato's question in Miscellaneous
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). -
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.
-
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"))
-
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_p
-
What do you mean with "capacity"? free space left? How many items you have? Be more specific!
-
Oops! That's a silly mistake on my part. Happens when one has syntax form multiple languages get mixed.
-
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.
-
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
-
What other networking protocalls Can opencompiters use?
SpaceBeeGaming replied to Ta©ti Tac0Z's question in Programming
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. -
What other networking protocalls Can opencompiters use?
SpaceBeeGaming replied to Ta©ti Tac0Z's question in Programming
I think that you can, in theory, code a TCP based protocol (HTTP, SMTP, FTP,... ), but I'm not sure. -
What other networking protocalls Can opencompiters use?
SpaceBeeGaming replied to Ta©ti Tac0Z's question in Programming
It supports tcp and http (based on the wiki page for internet component). -
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.
-
How do I use a variable as a pastebin code?
SpaceBeeGaming replied to PcStack's question in Programming
@PcStack Please mark Molinko's anwer as the best one. So this thread shows on the topic list as answered. -
@Slideri812 The modpack you are playing has an outdated version of opencomputers. You have to update the mod and reinstall OpenOS then it will work without problems.
- 852 replies
-
- gui
- controller
-
(and 2 more)
Tagged with:
-
First, what program are you using? Second, the program has to be specifically made to work with multiple screens.
-
That was part of the problem, also the issue might have been some typos, which I fixed before. It now works as expected.