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

MrabEzreb

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by MrabEzreb

  1. I am currently working on an operating system (mostly to prove to myself that I can) but have come up against a wall of knowledge.

    How and where do event handlers registered with event.listen get called?

    It doesn't seem like it should be the main loop of the OS (or how would you do anything else), but where should it go?

     

    EDIT:

    Asking about how OpenOS does it

  2. I currently have a tier 1 everything, powered by a stirling engine.

    The stirling engine gets hot and burns out

    I want to stop that

    I have a redstone card in the computer, and I thought, "hey, what if I made the computer control it's own engine!"

    so I tried, and failed, many, many times.

    Things I have tried:

    • Using an autorun.lua file in the root directory
    • Using a coroutine within said autorun.lua file
    • using RC (the little bit that I could figure out, which was basically nothing)

    all of these things had the same problem: they run as the main thread, meaning that the computer is unusable whenever it is running.

     

    My next idea was to use events, but there's a problem there too, I don't see any "power_changed" events.

     

    What do you wonderful humans (sorry if you aren't human, I guess that's very inconsiderate of me) think that I could do to make this work?

     

    Thanks in advance.

    Ezreb out.

×
×
  • Create New...

Important Information

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