Compiling .rb script with Ocra standalone

PiaCRT

Orange Dev
  • 958
    Posts
    14
    Years
    Hello there. I've been trying to figure out how to use ruby to no avail. I have a script for a game developing software in which I need to compile this .rb script into an .exe

    This is the script:
    Spoiler:

    I am using the Ocra standalone from here: https://rubyforge.org/frs/?group_id=8185

    If anyone could compile it for me I would be so thankful, I just can't get my laptop to co-operate with me.

    Thanks for looking,
    Pia Carrot
     
    Hello there. I've been trying to figure out how to use ruby to no avail. I have a script for a game developing software in which I need to compile this .rb script into an .exe

    This is the script:
    Spoiler:

    I am using the Ocra standalone from here: https://rubyforge.org/frs/?group_id=8185

    If anyone could compile it for me I would be so thankful, I just can't get my laptop to co-operate with me.

    Thanks for looking,
    Pia Carrot

    If you install the native Windows version of Ruby using the Ruby One-Click Installer, then the installer has setup Windows to automatically recognize your Ruby scripts as executables. Just type the name of the script to run it.

    $ hello-world.rb
    Hello world
    If this does not work, or if you installed Ruby in some other way, follow these steps.

    1. Log in as an administrator. 2. Run the standard Windows "Command Prompt", cmd. 3. At the command prompt (i.e. shell prompt), run the following Windows commands. When you run ftype, change the command-line arguments to correctly point to where you installed the ruby.exe executable on your computer.

    $ assoc .rb=RubyScript .rb=RubyScript

    $ ftype RubyScript="c:\ruby\bin\ruby.exe" "%1" %* RubyScript="c:\ruby\bin\ruby.exe" "%1" %*

    For more help with these commands, run "help assoc" and "help ftype".
     
    I seem to have gotten this far, but even as an administrator I get a new error regarding the fact my computer cannot recognize the win32api, thus not allowing it to compile. I have come to believe I need a 32 bit system to compile this specific script.

    I am not extremely tech-savvy, I'm more of a Jack-of-all-trades, ok at everything master of nothing, so I apologize if I am wrong.
     
    I seem to have gotten this far, but even as an administrator I get a new error regarding the fact my computer cannot recognize the win32api, thus not allowing it to compile. I have come to believe I need a 32 bit system to compile this specific script.

    I am not extremely tech-savvy, I'm more of a Jack-of-all-trades, ok at everything master of nothing, so I apologize if I am wrong.

    'Win32api' doesnt exist, its Win32API

    API needs to be all caps, change that and it should run. let me know if you have any problems
     
    Back
    Top