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

payonel

Developer
  • Content Count

    172
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by payonel

  1. payonel

    How to move text?

    you first move the cursor to the location you want, then you print local term = require("term") term.setCursor(x, y) term.write("foobar")
  2. 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.
  3. you need to return your library object from your library file, i.e. add "return move" at the end of "move.lua"
  4. it is better to think of these string functions as raw byte array methods, and our unicode methods as utf8 sequence methods string.len is not a count of glyphs rendered on the screen, rather it is the number of chars in the string. a utf8 sequence may be one or more chars for a single glyph string.sub selects a sequence of chars in a byte stream from [1, string.len] unicode.len can be used for all utf8 strings to measure the number of logical utf8 sequences/glyphs unicode.wlen measures the physical rendered width of a rendered utf8 string unicode.sub deals with positio
  5. font is rendered on each client -- the same for all gpus on all screens this would be a per gpu call, and we'd have to update our glyph table for all clients - which we have built in such a way for fast rendering, we'd lose some of that to do dynamic lookups
  6. Can you please provide a repro, with steps, as I demonstrated?
  7. repro is short for reproduce A good bug report provides a minimal set of steps required to reproduce the bug. A minimal set of steps also means a minimal set of dependencies. If your bug does not need survival, don't use survival, make a creative world. If your repro doesn't need multiplayer, don't use multiplayer. If your repro doesn't need other mods installed, repro with only OC installed. If your bug doesn't need default world, use a flat world. Here is an example repro of a made up bug:
  8. please provide a repro keep in mind, repro means: minimum set of steps from an empty flatworld test environment, everything you create and do in order to reproduce the issue
  9. i'm going to guess you have a /etc/oppm.cfg that lists oppm is installed (maybe copied from another computer?) and i'm going to guess you don't have a /bin/oppm.lua which should be created when you install oppm anyways, seems you have a mix of files needed. try removing your /etc/oppm.lua and run the install again
  10. payonel

    Hep with my code?

    @Molinko https://github.com/OpenPrograms/Sangar-Programs/blob/master/print3d.lua#L70 and https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/common/tileentity/Printer.scala#L182 but from a quick scan of the ranges given, i don't see any 0-width values I would test with fewer values, like a binary search, to find the specific bad range
  11. Sounds great. Also, I recommend using latest dev builds, especially if you are planning on testing things in general. https://ci.cil.li/job/OpenComputers-MC1.12/ We're now 2 builds after the 154 I linked
  12. fixed in our next dev build: https://ci.cil.li/job/OpenComputers-MC1.12/154/ please test a bunch. there are a LOT of things you can do with robot.use, and it is difficult to test everything it will be helpful to know if this looks good for everything so we can push out a new release sooner
  13. change the `timeout` in the config ` opencomputers { computer { timeout = 5 } } `
  14. 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
  15. can you write in english on this forum? use translate.google.com if you must
  16. .shrc is run as a list of shell commands, not lua code when you are running the file directly, the shell interpreter is guessing it is lua code, even though the extension is not .lua to accomplish what you want, store your lua code in a separate file, for example a file named test.lua, and in your .shrc write the line: ./test.lua (or just test)
  17. @XyFreak becuse you've given it such thought, please consider my PR: https://github.com/MightyPirates/OpenComputers/pull/3059 this change also reduces memory load by another ~100 bytes Also, fyi, calling computer.uptime() is direct, you can call it roughly 17k times without any thread yielding. so the increase in calls to uptime() will not have any negative impact
  18. yeah. my tests and the kernel system in general doesn't use blocking pulls in this manner, i see how i missed this. I'll add some tests for this type of usage.
  19. this is a good investigation. sorry for this regression. I will fix this (and yes, I'm the right one to ping)
  20. 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 buffer
  21. this issue has been resolved, please update to our latest release
  22. if you set LS_COLORS (an environment variable in the shell) it'll use that as a rule for highlighting ls results it is a colon separated list of rules. {TAG}={COLOR}:{TAG}={COLOR}:{TAG}={COLOR} ... etc TAG can be: di for directory fi for file ln for symbolic link TAG can also be a glob rule, like *.lua COLOR is a vt100 color code, "36" for example is the default blue dir color see /etc/profile.lua where it sets the system default for LS_COLORS you can change your current shell env var using `set` like `set LS_COLORS="....."`
  23. please add your modlist to this bug report https://github.com/MightyPirates/OpenComputers/issues/2793
  24. thanks for reporting, can you copy a list of the mods you are using?
×
×
  • Create New...

Important Information

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