Lua Challenges

  • Sylvi
    3rd Sep 2013 Moderator 0 Permalink

    Hello,

    I've got a few Lua challenges for people who want to take them and turn them into reality. There is no reward, but it just makes TPT with more usability.

     

    Connector Pixel

    Essentially a pixel in one TPT window is set to take in SPRK. When it detects that, it'll send a note to an external file. Then on another TPT window a pixel set to grab notes from that external file will output it into a series of SPRKs.

     

    This would allow multiple windows to run electronics interconnected. These pixels would have corresponding serials to allow for more than one connector between saves.


    That's about it right now. Check back for more later on!

  • mniip
    3rd Sep 2013 Developer 0 Permalink
    meh
    EDIT: how do you imagine synchronizing the simulation, windows has no file locking, so there can't be any kind of mutex
    Edited once by mniip. Last: 3rd Sep 2013
  • xetalim
    3rd Sep 2013 Member 2 Permalink

    @mniip (View Post)

     probably too easy for you:O

  • boxmein
    3rd Sep 2013 Former Staff 0 Permalink
    @mniip (View Post)
    Some other form of interprocess communication? :O
    I mean you could have two processes talking to each other via luasocket...?
    Edited once by boxmein. Last: 3rd Sep 2013
  • MiningMarsh
    3rd Sep 2013 Member 0 Permalink

    Linux can use the fifo API, and windows can use its named pipe API.

  • mniip
    4th Sep 2013 Developer 0 Permalink
    @boxmein (View Post)
    @MiningMarsh (View Post)
    indeed this is easy, as far as you don't try to make it proper and glitchless