ERROR: Error installing releasy:
The 'libxml-ruby' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
ocra main.rb scripts/gameWindow.rb scripts/player.rb resources/backgrounds/bg_01.png resources/characters/char_01.bmp
"resources/bg_01.png"
. One thing you can try is to add the --chdir-first
option to the ocra
call. (I'm not sure if that will set the current directory to the folder containing the EXE file, or to the temporary folder into which images are extracted, but it's worth a short.)Dir.getwd
or Dir['*']
to a file on the desktop to inspect what's going on, or pass --debug-extract
to ocra
and inspect which files are being included - see the README on GitHub: https://github.com/larsch/ocra--chdir-first
option solved it. I did use relative paths in my project I suspect the problem was that ocra didn't set the directory containing the main.rb script as the root folder (which I think it was what the chdir-first
option did) and that caused the paths to the resources not to behave correctly in the executable. also the debugger has shown that the resources were added even without the option which indicates that the problem was indeed in the paths.Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill