compiled love project can´t find folders (i guess)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Wombat
Prole
Posts: 31
Joined: Mon Oct 03, 2011 8:38 pm

compiled love project can´t find folders (i guess)

Post by Wombat »

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 ;)
User avatar
felix24
Party member
Posts: 163
Joined: Tue Jul 26, 2011 4:51 pm
Contact:

Re: compiled love project can´t find folders (i guess)

Post by felix24 »

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?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: compiled love project can´t find folders (i guess)

Post by Boolsheet »

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.
Shallow indentations.
Wombat
Prole
Posts: 31
Joined: Mon Oct 03, 2011 8:38 pm

Re: compiled love project can´t find folders (i guess)

Post by Wombat »

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?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: compiled love project can´t find folders (i guess)

Post by Boolsheet »

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?
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. :P

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
Make sure you disable the LÖVE console if you activated it or this won't work.
Wombat wrote:EDIT: Is it allowed to use white spaces and "-" in Filenames?
Those should be fine as far as I know.
Shallow indentations.
Wombat
Prole
Posts: 31
Joined: Mon Oct 03, 2011 8:38 pm

Re: compiled love project can´t find folders (i guess)

Post by Wombat »

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 ;)
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: compiled love project can´t find folders (i guess)

Post by qaisjp »

I should say it's bad practice to keep special characters, spaces and multilingual characters for filenames.
Lua is not an acronym.
Wombat
Prole
Posts: 31
Joined: Mon Oct 03, 2011 8:38 pm

Re: compiled love project can´t find folders (i guess)

Post by Wombat »

That is clear. I began with my project when i was a newbe. But time has changed...
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests