Page 5 of 5 FirstFirst ... 345
Results 41 to 49 of 49

Thread: Could Plugins be written in LUA?

  1. #41
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    Mark,

    I thought I would let you know that I have released and add on for NetRemote that now requires the LUA Events plugin (http://www.netremote.org/phpBB2/view...hp?p=1099#1099). So far all responses have been positive - no problems.

    One question - is the LUA Events plugin going to show up on the "official" Girder plugins list some time?

    Thanks again for your help.

    Gavin

  2. #42
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    That is good news. Congratulations!

    Yes, LUAEvents will show up on the plugin list. I must still finish testing but I'm getting closer.

    I have 5 plugins that I have updated in the last 3 weeks. I let 3 plugins work together most of last weekend. This was betweeen 2 machines, unattended, ~36 hours. When I stopped the test, I had no memory leaks or failures.

    I feel compelled to do this type of testing before updating or releasing these things because people depend on this stuff to not only work the first time but 24/7.

    Anyway, I need to devise and run the same type of test to exercise the LUAEvents plugin and then I will release it formally.
    Mark F

  3. #43
    Join Date
    Apr 2003
    Posts
    23

    Default Plugin Open failed

    Hi. I've just tried installing the LUA Event plugin, but when I click Apply I after selecting it, I receive a message that Plugin Open failed. I've tried it with and without the Logger loaded, and get the same message either way. Any thoughts? I'm running Windows XP Pro SP1. Nothing really unique about the hardware or software config. Thanks.

  4. #44
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    391

    Default

    I've not seen this (or heard reports of this). What version of Girder are you using?

    One bug I have come across is that if you are saving on shutdown and restoring on startup the Girder "registers", the LUA Events plugin does read teh LUA files properly.

    Cheers,

    Gavin

  5. #45
    Join Date
    Apr 2003
    Posts
    23

    Default

    I'm using Girder version 3.2.8. I've tried disabling all plugins and i still get the same error. All other plugins I've tried work fine. The Lua Events version that I downloaded was 1.0.0.

    Just for the heck of it I tried it on my 2nd machine, and it reports the same error. I have debugging tools on this machine though, so if you'd like to send me the source I can try stepping through the code. Or if you have another way for me to help out I'm all for it.

  6. #46
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    From the readme file:
    THIS PLUGIN REQUIRES Girder v3.2.9 OR ABOVE.
    Mark F

  7. #47
    Join Date
    Apr 2003
    Posts
    23

    Default

    My bad. Guess I didn't RTFM :wink:

    Thanks for the help. Loads up fine now. Sorry for the false alarm.

  8. #48
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Mark, can an eventstring have wildcards in it.

    ie. I want to only match disc events in dvd spy.

    they are disc.insert, disc.contents, disc.eject.

    BUT using "disc*" doesn't work...

  9. #49
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    It is either all ("") or one ("disc.insert"). Sorry.

    For those three events, you would need to register three handlers (all could be the same or different).

    Something like
    Code:
    DVDSpyDeviceID = 215 -- I think this is right
    
    function DiscHandler()
         print("Example Disc Event handler") 
         print(EventDeviceID) 
         print(EventString)
         print(pld1) 
         print(pld2) 
         print(pld3) 
    end
    
    AddEventHandlerName(DVDSpyDeviceID, "disc.insert", "DiscHandler") 
    AddEventHandlerName(DVDSpyDeviceID, "disc.contents", "DiscHandler") 
    AddEventHandlerName(DVDSpyDeviceID, "disc.eject", "DiscHandler")
    Mark F

Page 5 of 5 FirstFirst ... 345

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •