Hi community,
today i wanted to compile my love project to an .exe file. No problems so far. But when i want to open it, the program shuts down when it has to load image files from subfolders.
My current folder structer is as follows:
root directory
main.lua
other lua files
images folder
images.png
I guess the .exe has problems with subfolders. The same problem encounters when i want to open the .love file of the project.
I would be so happy if get an answer^^.
regards
Wombat
PS: Sorry for my bad english
compiled love project can´t find folders (i guess)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: compiled love project can´t find folders (i guess)
hey there. the compiled exe has no problems with subfolders are the image names in your image folder exactly the same as the way you name them when you call love.graphics.newImage ?
what's the error message you get when it crashes?
what's the error message you get when it crashes?
Re: compiled love project can´t find folders (i guess)
Like felix24 said, you have to be aware that the names in the ZIP archive are going to be case sensitive. Make sure you spell the names of the files and directories in the code exactly as the appear in the filesystem.
If that doesn't help, then show us the .love that fails. It doesn't have to be your project, even though that would make it easier, a small example that shows the same behaviour may help too. We can then point out the error very fast.
If that doesn't help, then show us the .love that fails. It doesn't have to be your project, even though that would make it easier, a small example that shows the same behaviour may help too. We can then point out the error very fast.
Shallow indentations.
Re: compiled love project can´t find folders (i guess)
Hi, thanks for your answers so far. Unfortunately i don´t get error messages. Neither with the .exe nor with the .love.
Is it possible to aktivate an errorlog or sth. like that int the config file?
EDIT: Is it allowed to use white spaces and "-" in Filenames?
Is it possible to aktivate an errorlog or sth. like that int the config file?
EDIT: Is it allowed to use white spaces and "-" in Filenames?
Re: compiled love project can´t find folders (i guess)
No errors? That is odd. Have you changed the value of the global 'print' by any chance? LÖVE is kind of sensitive to that.Wombat wrote:Hi, thanks for your answers so far. Unfortunately i don´t get error messages. Neither with the .exe nor with the .love.
Is it possible to aktivate an errorlog or sth. like that int the config file?
LÖVE prints the error to the standard output. You can redirect it to a file by using the IO redirection. Start LÖVE from the command prompt like this:
Code: Select all
c:\path\to\love.exe your_project.love > myErrorLog.txt
Those should be fine as far as I know.Wombat wrote:EDIT: Is it allowed to use white spaces and "-" in Filenames?
Shallow indentations.
Re: compiled love project can´t find folders (i guess)
Thanks for your answers. I will try to get the log files running and i ´ll write back if i find out sth. new.
My next post could take a while ´cause i´ve a lot to do.
lg
Wombat
My next post could take a while ´cause i´ve a lot to do.
lg
Wombat
Re: compiled love project can´t find folders (i guess)
I should say it's bad practice to keep special characters, spaces and multilingual characters for filenames.
Lua is not an acronym.
Re: compiled love project can´t find folders (i guess)
That is clear. I began with my project when i was a newbe. But time has changed...
Who is online
Users browsing this forum: No registered users and 9 guests