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
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-firstoption to the
ocracall. (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['*']to a file on the desktop to inspect what's going on, or pass
ocraand inspect which files are being included - see the README on GitHub: https://github.com/larsch/ocra
--chdir-firstoption 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-firstoption 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