I've just made my first (very simple, ugly) game in Love2D. The game works fine when run directly off my hard drive. However, when I package it up as a .love
file, I get the following message:
Error: Could not open file resources/stormclouds.bmp. Does not exist.
stack traceback:
[C]: ?
[C]: in function 'newImage'
[string "main.lua"]:46: in function 'load'
[string "boot.lua"]:304: in function <[string "boot.lua"]:302>
[C]: in function 'xpcall'
The "resources" folder does exist within my directory structure (resources/stormclouds.bmp), and the game runs fine when its not packaged up.
The line of code responsible for this is:
bg = love.graphics.newImage("resources/stormclouds.bmp")
How can I make this line work for my packaged file?
zip ../${PWD##*/}.love *
), but this doesn't seem to include sub folder contents. Zipping using a different method did solve this problem. \$\endgroup\$ – a_m0d Sep 22 '11 at 10:23