- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
172 -
Joined
-
Last visited
-
Days Won
14
Everything posted by payonel
-
Filesystem API reports back one more filesystem than there really is
payonel replied to Missingno50's question in Programming
yep, that's the tmpfs -
we don't have any bold, italic, underlined formatting in OC - sorry
-
Thread and Userinput problems with a IC² Fluid reactor script [GTNH]
payonel replied to blade8895's question in Programming
lua doesn't have preemptive threads, you have to have all threads (including the main thread) play cooperatively, everyone has to yield and place nice. plus, your code has some mistakes 1. heatget() calls heatget, it does not return a function pointer. thread.create(ptr) takes a function ptr. I think you meant thread.create(heatget) 2. heatget() never yields, you need something like os.sleep(0) in it. 3. having one thread print and a different thread read user input will cause the cursor to print over itself, and it'll look messy. you want your printing thread to be sleeping whi -
the community has made two OCEmu: https://github.com/gamax92/OCEmu lua 5.2, luarocks, cross platform (windows/mac/linux) with sdl libraries OCVM: https://github.com/payonel/ocvm lua 5.2 or 5.3, linux only, command line interface only
-
go ahead and read about vt100 codes. openos supports the 8 color scheme (8 for background, 8 for foreground), i.e. codes 30 through 37. 37 is gray (and 47 for background)
-
the bug fix is in `event.lua` of openos, I'll have an update for 1.7.5 soon
-
you can also use vt100 codes for color io.write("\27[31m", "hello ", "\27[33m", "world", "\27[m")
-
OC 1.5 is ancient. definitely not supported anymore `computer halted` happens when the system returns from the lua state. more info is needed. it can happen when there is bad code on the drive
-
Unrecoverable Error, Computer Halted on all systems
payonel replied to chyakii's question in Programming
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/ -
nope, 1.8 and 1.9 are no longer supported
-
if you dont understand the compile error message (specifically, a lua load error message), then remove code until you pinpoint where the problem. anyways, `term.clear print("asdf")` is not valid lua, try `term.clear() print("asdf")`
-
As an alternative option to `flash`, you can also (in openos) run `edit /dev/eeprom` to edit the eeprom itself.
-
also a navigation upgrade in the robot can give you relative coordinates
-
@TheGamingOtaku it is a bug in openos that is fixed in our dev builds ( https://ci.cil.li/ ), will be in our next release (1.7.5) on curseforge, and you can you patch it manually per machine if you can't/don't want to update your mod version to our dev builds. Review this comment I left discussing this:
-
you have an internet card?
-
How to get access form microcontroller to MFE(from ic2)?
payonel replied to Crafter38's question in Programming
there is not global method named "list". There is, however, a method "list" on the "component" table: component.list("mfe") -
index out of bounds errors when using some functions
payonel replied to sane's question in Programming
I can't get this to repro. can you open a github issue and provide this info? also (in the github issue) can you paste the steps you are taking? the exact code? -
index out of bounds errors when using some functions
payonel replied to sane's question in Programming
oc version please also, looks like you've set your hostname on that robot - which only tells me this isn't a minimal repro please provide minimal repro steps (also, if you have a bug, github is the place to report it) -
like molinko said, we dont have parallel execution, but we do have concurrency. https://ocdoc.cil.li/api:thread
- 5 replies
-
- if else
- statements
-
(and 3 more)
Tagged with:
-
file system wiping after each server restart/ reloading chunks
payonel replied to tough_guy_toby's question in Miscellaneous
But 1.7.2 is not latest :/ Please update to either our official release builds on curseforge, or even better, our dev builds https://minecraft.curseforge.com/projects/opencomputers/files http://ci.cil.li/ -
noob questions about mounting drives automatically and autorun.lua
payonel replied to purpleFinatic's question in Miscellaneous
@purpleFinatic can i join your world? I'd like to troubleshoot this you can share mod info and server info privately to me via this forum, or email me on hotmail, email username is just `payonel` also, come chat with us on discord ( https://discord.gg/bYqKv7h ) or irc ( #oc on esper.net ) -
it looks like my password reader reads enter as a key...
payonel replied to 3XC4L1B3R's question in Programming
test things like `term.read()` in the lua shell, it'll help you see what is returned from it io.read() does not return a newline (nor does io.stdin:readLine(true)) term.read() includes the newline in the return string (same as io.stdin:readLine(false) local pw = (term.read({pwchar='*'}) or ""):gsub("\n$", "") my use of {pwchar='*'} gets the same job done as your term.read(nil, false, nil, '*'), i just dont like the long param form of calling term.read now, why is it this way? because it has been this way for years. -
Hello - sorry I don't have 1.7.5 out yet. That should be soon. In the meantime, rather than downgrading OC, I would recommend you just patch openos manually on each machine (tedious, sorry) (with an internet card, do this from your OC machine on the command line) wget -f https://raw.githubusercontent.com/MightyPirates/OpenComputers/master-MC1.12/src/main/resources/assets/opencomputers/loot/openos/lib/event.lua -O /lib/event.lua reboot
- 852 replies
-
- gui
- controller
-
(and 2 more)
Tagged with:
-
what OC version? what host operating system is running the server? or client if single player
-
noob questions about mounting drives automatically and autorun.lua
payonel replied to purpleFinatic's question in Miscellaneous
strange. i just followed the tutorial and every part of it worked. what version of oc are you using (use the full version name) can you try to provide more details about what you are doing and what is happening? screenshots are welcome