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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.1 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)

Slamakans

Members
  • Content count

    16
  • Joined

  • Last visited

  • Days Won

    1

Slamakans last won the day on December 4

Slamakans had the most liked content!

1 Follower

About Slamakans

  1. ShEdit - edit.lua, but with syntax highlighting

    u've got some tabs there
  2. To be honest I actually just screenshotted my editor and colorpicked hahahahha There's the issue with having to change the palette if you want the exact color, though.
  3. I wasn't really trying to mimic it, it happened to be the scheme I was using so I just nabbed most (all?) of the colors from it. I'm rewriting it all now though, so I'm going to add it in.
  4. ShEdit - edit.lua, but with syntax highlighting

    I guess that there's competition now... Time to polish my editor, I'll be taking inspiration from your code
  5. 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
  6. Formula for screen aspect ratios

    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
  7. Can only craft an item once

    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.
  8. Formula for screen aspect ratios

    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
  9. Trouble with robots and chests

    I copypasted your code and tried it, seems to work for me on OpenComputers-MC1.12.1-1.7.0.20.jar
  10. does thread's interrupt

    What do you mean by interrupt? That they block execution of code, that they eventually die, or something else? If you could show the code you used to test to show what you mean that'd be spiffing.
  11. As you can see in the second image, the block isn't really 2 blocks straight above the computer. This is because the getX/Y/Z functions return the computer's block position + 0.5 for some reason. Just saying that in case you didn't know, because I definitely didn't I hope I could help.
  12. Getting tier of component

    Thank you
  13. Getting tier of component

    Is there currently a way of getting the tier of a component?
  14. Sending PUT and DELETE requests [Solved]

    Thank you, it worked! I will probably create a modified version of OC's HTTPRequest later on because of the huge delay since it's for an interface, but definitely a great help, thanks again.
×