Results 1 to 5 of 5

Thread: Lich and Rubygems

  1. #1

    Default Lich and Rubygems

    Does anyone know if it is possible to use Rubygems with Lich? I want to use the win32-sound gem so that I don't have to force open Windows Media Player whenever I want it to play a sound.

    I tried including an actual ruby script (.rb file) which includes the gem in it to play it from there, but that certainly didn't work.

  2. #2
    Join Date
    Nov 2004
    Location
    Upstate NY
    Posts
    428

    Default

    Any pure Ruby script can be run by Lich, but if the gem includes a compiled binary file (.dll or .so file), it probably won't be compatible.
    I visualize a time when we will be to robots what dogs are to humans, and I'm rooting for the machines. -- Claude Shannon

  3. #3

    Default

    Hm. That's probably the problem then. I tried to have the lich script itself include the rubygem, but ended up having to use the SYSTEM command to open up a separate ruby script. It works--but it opens up a window to play the sound. That makes me sad.

  4. #4
    Join Date
    Nov 2004
    Location
    Upstate NY
    Posts
    428

    Default

    If you used the one-click Ruby installer, you have two executables: ruby.exe and rubyw.exe -- ruby.exe will open a console window, rubyw.exe will not. So if your command is
    Code:
    system("ruby someScript.rb")
    or something, change it to "rubyw" instead.
    I visualize a time when we will be to robots what dogs are to humans, and I'm rooting for the machines. -- Claude Shannon

  5. #5

    Default

    omg <3

Similar Threads

  1. Welcome to Lich - A New Users Guide to GS 4.Lich
    By NoOnesShowMonkey in forum The Lich Project
    Replies: 39
    Last Post: 11-30-2015, 11:55 PM
  2. lich crashing when lich window out of focus
    By gilchristr in forum The Lich Project
    Replies: 5
    Last Post: 05-31-2015, 04:21 PM
  3. Lich and Avalon... where to extract lich to?
    By Mighty Nikkisaurus in forum The Lich Project
    Replies: 5
    Last Post: 08-07-2014, 05:02 AM
  4. Replies: 2
    Last Post: 01-06-2014, 07:14 PM
  5. Replies: 9
    Last Post: 10-29-2012, 09:05 PM

Posting Permissions

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