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


  • Content Count

  • Joined

  • Last visited

  • Days Won


payonel last won the day on July 16

payonel had the most liked content!

1 Follower

About payonel

  • Rank
    Leading Member

Profile Information

  • Gender
  • Location
    Portland, Oregon
  • Interests
    Coding and Gaming

Contact Methods

  • Minecraft
  • GitHub
  • IRC
    payonel on esper.net

Recent Profile Visitors

1744 profile views
  1. 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 while you're taking user input. This might not be a multi-threaded program you need 4.I dont see a reason to call event.pull() before io.read() -- event.pull is going to block until ANY event, and io.read will then read key events. You could lose the first key press this way. I would just have io.read alone
  2. 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)
  3. the bug fix is in `event.lua` of openos, I'll have an update for 1.7.5 soon
  4. you can also use vt100 codes for color io.write("\27[31m", "hello ", "\27[33m", "world", "\27[m")
  5. 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
  6. 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/
  7. nope, 1.8 and 1.9 are no longer supported
  8. 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")`
  9. As an alternative option to `flash`, you can also (in openos) run `edit /dev/eeprom` to edit the eeprom itself.
  10. also a navigation upgrade in the robot can give you relative coordinates
  11. @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:
  12. you have an internet card?
  13. there is not global method named "list". There is, however, a method "list" on the "component" table: component.list("mfe")
  14. 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?
  15. 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)
  • Create New...

Important Information

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