Largo / ocran

Turn ruby files into .exe files on windows (supported safe fork of ocran)
MIT License
57 stars 5 forks source link

The converted in .exe game doesn't launching #16

Closed Alihusejn closed 4 months ago

Alihusejn commented 5 months ago

Hi, I tried to convert this game https://github.com/dtcristo/raycaster in standalone executable and got this: C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/gemhome/gems/gosu-1.4.6/lib/gosu/compat.rb:71:in 'initialize': While opening C:/Users (RuntimeError)ocal/Temp/ocr474E.tmp/assets/texture.png, the following error occured: The system cannot find the path specified. from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/gemhome/gems/gosu-1.4.6/lib/gosu/compat.rb:71:in 'initialize' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster/camera.rb:14:in 'new' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster/camera.rb:14:in 'initialize' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster/window.rb:12:in 'new' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster/window.rb:12:in 'initialize' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster.rb:13:in 'new' from C:/Users/usr/AppData/Local/Temp/ocr474E.tmp/src/raycaster.rb:13:in '

'

The .rb file itself was converted successfully.

preetpalS commented 5 months ago

You probably did not include the assets directory when you used this gem. Try appending "assets/texture.png" to the command you used already (see https://github.com/Largo/ocran?tab=readme-ov-file#additional-files-and-resources).

Alihusejn commented 4 months ago

Yeah, it worked after "ocran lib/raycaster.rb assets/texture.png". Thank you!