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

Slamakans

Members
  • Content Count

    16
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Slamakans

  1. A modified version of edit.lua that I made for personal use. It has syntax highlighting and when you open a file you can specify which line to jump to.

    It has a few issues where it misses cases, but generally works quite well. The colors are easily modifiable near the top of the file.

    I don't think it has any breaking bugs right now. A bit performance heavy perhaps, but that's it.

    Download:

    pastebin get LYy2u6HL edit.lua

    link

  2. I'm taking into account the max resolution based on the screens as well, not sure were you think I should use that instead of something else?

    The current resolution doesn't matter much since I'm setting the resolution anyways. If you mean that I should use it instead of monitor.getResolutionFromTier, I guess I should've named it getMaxResolutionFromTier cuz that's what it does

     

    Forgot to say that monitor.fill() would be what you'd use to fill the screen but maybe you got that

     

    Edit: I forgot that gpu.maxResolution() returns the lowest of the two. A bunch of the code can be removed if that is used instead: https://pastebin.com/1jtwLRQA (untested)
    Amazing how you never learn not to code when tired af :rolleyes:

  3. I can get my robot to craft a recipe once, then it can't craft that recipe anymore.

    It's on a creative singleplayer server, I tried restarting it and I also tried destroying it and placing it again.
    Is this a (known even?) bug, or am I missing something? I tried searching for it here and on github.

    wMxi723.png

  4. I gave this a whirl and it proved to be a bit more challenging than I thought it would be, and I'm not really content with it.

    It works to a certain degree, works better for some ratios than others and whatnot. I couldn't seem to find an algorithm that would work properly.

    https://pastebin.com/Wq60vHuy

    I tested with all tier screens and a tier 3 graphics card. It should work with tier 1 and 2 graphics cards as well.
    You can run monitor.test() and break/add some screens to see it in action.
    If there's any code you're wondering about, feel free to ask ^_^

    Edit: It feels like it should be a lot simpler but idk

×
×
  • Create New...

Important Information

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