- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
172 -
Joined
-
Last visited
-
Days Won
14
Reputation Activity
-
payonel got a reaction from chyakii in Unrecoverable Error, Computer Halted on all systems
1.7.2 had some serious bugs - not sure why you're not using latest builds.use our latest release build on curse ,or even better, try our latest dev builds
https://minecraft.curseforge.com/projects/opencomputers/files
https://ci.cil.li/
-
payonel got a reaction from CptMercury in High Precision computer.pull/event.pull
for a polite server load, we let the minecraft server runtime decide when to pick back up our threads, and thus we cannot give lower precision that we currently have.
-
payonel got a reaction from isdflash in Keep getting error when running
you need to return your library object from your library file, i.e. add "return move" at the end of "move.lua"
-
payonel got a reaction from Quisquid in nexDHD - SG-Craft Stargate Control Program
can you write in english on this forum? use translate.google.com if you must
-
payonel got a reaction from Quisquid in nexDHD - SG-Craft Stargate Control Program
Thanks for the translation! I don't mean to offend, I wish I spoke German! I just want more people who come here to find answers or help. English is the common language for most visitors here. I wasn't trying to single you out
-
payonel got a reaction from Hagis in HDD corruption every reattaching
there was a regression caused by updates to JAVA that appears to have possibly broken OC in previous versions. Truth is we were likely misusing a nonblocking file handle, and we were vulnerable to this issue for a long time. But with recent java updates, this issue is causing this serious bug that you have encountered.
We have patched our official release of OC to deal with this. You will need to do one of the follow
1. disable bufferChanges in the oc settings. you said you did this, this is actually how to protect yourself from the bug. I suspect you actually hit the bug when bufferChanges was set to true
or
2. update to our latest 1.7.4 version ( https://minecraft.curseforge.com/projects/opencomputers/files )
There is no way to recover lost data, short of your own backups. I am very sorry for this frustration I know this has caused
-
payonel got a reaction from Molinko in remote shell by payonel, psh
I've developed a remote shell client and rc daemon called psh (payo-sh, like ssh but without the "secure" part)
It's still a work in progress, but at this point should be quite usable for basic operations. You can find it via oppm, just `oppm install psh`
On your hosts that should accept psh connections, run the rc daemon: `rc pshd start`. To have pshd running every boot, make sure to enable it: `rc pshd enable`
From the client, run `psh -l` or `psh --list` to scan/search for available pshd hosts
`psh -f` or `psh --first` to connect to the first host to respond, or `psh -f <address_prefix>` to connect to the first pshd host whose modem address string starts with the address_prefix you specify (this gives a quick short hand mechanism for connecting to remote hosts by just a prefix). No, I don't (yet) have hostname-like support
`psh <full_remote_adddress>` saves you from any broadcast/scan calls, and connects directly to the specified host.
At this time, psh only works stricly with standard io only, it does not intercept nor fake gpu calls.Most programs will assume you can read and write via the gpu, and psh tells the remote shell that a natural tty (and gpu) is available, thus fooling some programs (such as edit).
psh also takes an optional additional argument to run as a command on the remote host (just like ssh does). So `psh -f "" ls` is a fast way to run ls on the remote machine without starting an interactive shell (and close the connection immediately)
In the future I'll be adding `pcp` to the same `psh` oppm package, which will support cp calls (inspired by scp), but for now `psh ... "cat file" > file` works reasonably well. Note though at this time stderr is being communicated to psh as stdout, and thus trying to copy a file in this manner may produce a file with a shell error message (such as if a file doesn't exist). Again, in the future, pcp will be the reliable solution for copying files and folders.
-
payonel got a reaction from J_E_Mc in filesystem.read is returning 2048 character strings
local fs = component.proxy(component.list("filesystem")()) local handle = fs.open("init.lua") local buffer = {} repeat local data = fs.read(handle, math.huge) table.insert(buffer, data) until not data fs.close(handle) local entire_contents_of_file = table.concat(buffer) stream handles naturally don't returns ALL of what you ask for, it can take multiple reads. read returns nil when the stream has ended (e.g. eof)
-
payonel reacted to Fingercomp in Drone usage?
Of course there is. Assembling a drone with a leash upgrade produces a drone that can transport cows, horses, sheeps, and pigs. Like this:
Or... like this:
Besides, drones are entities. They move in straight lines; they don't get stuck in the fence and can actually enter a house through a door. They move pretty fast — about 6 blocks a second (robots are at least 2 times slower). Drone's movement is asynchronous, so the machine can execute some other code in the middle of the flight. Drones can fly above the block height limit. The screenshot above was made while enjoying the flight at a height of 260 blocks, for example. Oh, they can fly below the bedrock, too.
Also, drones look cool.
Jobs at which drones clearly outperform robots include player transportation (thanks to the leash upgrade) and item transportation (due to their mobility). And, if used with robots, drones can be useful for crop farming, autocrafting, and construction, for example.
-
payonel got a reaction from LORD MJ in Help with wireless redstone
https://github.com/MightyPirates/OpenComputers/issues/2987
-
payonel got a reaction from ZefTheFox in No Bootable Medium Found
that is a ComputerCraft disk drive, not the OpenComputers disk drive
-
payonel got a reaction from Forecaster in No Bootable Medium Found
I need to see how your disk drive is "connected" to this computer
-
payonel got a reaction from Forecaster in No Bootable Medium Found
that is a ComputerCraft disk drive, not the OpenComputers disk drive
-
payonel got a reaction from Totoro in Are there any tutorials or doumentations for plan9k OS?
OpenOS has absolutely proper pipes now, such as those you invoke with `cat file | grep foobar`, and a kick butt threading library (read https://ocdoc.cil.li/api:thread )
As for virtual components? No, there is nothing built into OpenOS for virtual components, but gamax92 has written a nice vcomponent library you can add via oppm, `oppm install vcomponent`
Plan9k is retired, to be honest. It was ahead of its time, but is now outdated. OpenOS is faster, lower memory, has gobs of great libraries, super awesome command line parsing, and is ACTIVELY developed. I might be biased....
-
payonel got a reaction from SpaceBeeGaming in Are there any tutorials or doumentations for plan9k OS?
OpenOS has absolutely proper pipes now, such as those you invoke with `cat file | grep foobar`, and a kick butt threading library (read https://ocdoc.cil.li/api:thread )
As for virtual components? No, there is nothing built into OpenOS for virtual components, but gamax92 has written a nice vcomponent library you can add via oppm, `oppm install vcomponent`
Plan9k is retired, to be honest. It was ahead of its time, but is now outdated. OpenOS is faster, lower memory, has gobs of great libraries, super awesome command line parsing, and is ACTIVELY developed. I might be biased....
-
payonel got a reaction from standinonstilts in Multi Threaded Send and Receive
> I want to create a server that pulls the modem_message event and prints to the console
Cool, you can `listen` or `pull` for that event
> but I also want the computer to be able to send messages (based on io.read()) while waiting for a message.
`listen` works well for background handling, while in the foreground you are doing other work (such as io.read). However, you want your background to also print to the console? That'll obscure/interfere (visually) with the io.read getting user input. But okay
> I tried using threads
Sure, threads can do this job too. With threads, your event handling can be designed in a more selfish manner. You can `event.pull` and such without worrying about blocking the rest of the system
> but I think I am using them wrong.
Feel free to share some code!
> As far as I know there is no thread.sleep() so I'm not sure how to suspend a thread for a short period of time
No, there isn't. But, calling `os.sleep` from inside the thread is identical to what you would expect from `thread.sleep`. **HOWEVER** (please keep reading)
> so that you can still type messages, but still have that thread automatically continue. How would I go about doing this?
I wouldn't call `os.sleep` in THIS program because you want your thread to handle specific messages. `os.sleep` is a RUDE sleep, it DROPS events in the garbage. If any modem_messages occur during the sleep, you missed them. Instead, just pull with a timeout, `event.pull(.5, "modem_message")` in fact, I don't see the point of giving a timeout at all. Is your modem_message thread doing anything else or just waiting for modem_messages? Just call `event.pull("modem_message")` in your thread, done
local thread = require("thread") local event = require("event") local t = thread.create(function() while true do local pack = table.pack(event.pull("modem_message")) print(table.unpack(pack)) end end) while true do local command = io.read() if command == "quit" then break end end t:kill()
BTW: os.sleep *does not* rob events from any other thread or process, it only throws away events of its own process
-
payonel got a reaction from Molinko in Are there any tutorials or doumentations for plan9k OS?
OpenOS has absolutely proper pipes now, such as those you invoke with `cat file | grep foobar`, and a kick butt threading library (read https://ocdoc.cil.li/api:thread )
As for virtual components? No, there is nothing built into OpenOS for virtual components, but gamax92 has written a nice vcomponent library you can add via oppm, `oppm install vcomponent`
Plan9k is retired, to be honest. It was ahead of its time, but is now outdated. OpenOS is faster, lower memory, has gobs of great libraries, super awesome command line parsing, and is ACTIVELY developed. I might be biased....
-
payonel got a reaction from XyFreak in Big Reactors Grid Control
yep, should always require("bit32"), it is not intended to be global (we aren't clearing it from _G in boot). I'll fix in dev. sorry
-
payonel got a reaction from XyFreak in Big Reactors Grid Control
Read, "where the call takes at least one server tick"
Here: https://github.com/MightyPirates/OpenComputers/blob/f5c19e9e7e0006d3403c7bf0b44dfb970cee8a2f/src/main/java/li/cil/oc/api/machine/Callback.java#L43-L59
-
payonel got a reaction from Vexatos in Big Reactors Grid Control
Read, "where the call takes at least one server tick"
Here: https://github.com/MightyPirates/OpenComputers/blob/f5c19e9e7e0006d3403c7bf0b44dfb970cee8a2f/src/main/java/li/cil/oc/api/machine/Callback.java#L43-L59