Page 2 of 2

Re: Heavy newb questions I need to get off my chest..

Posted: Mon Feb 15, 2010 6:43 pm
by Xoria
OHHH... you can keep things OUT of the file and call them? That 's so next.

Re: Heavy newb questions I need to get off my chest..

Posted: Mon Feb 15, 2010 9:27 pm
by Robin
Xoria wrote:OHHH... you can keep things OUT of the file and call them? That 's so next.
?

Re: Heavy newb questions I need to get off my chest..

Posted: Mon Feb 15, 2010 11:34 pm
by Xoria
Can you put files out of the love file, and use them?

Re: Heavy newb questions I need to get off my chest..

Posted: Tue Feb 16, 2010 3:23 am
by Jasoco
I guess kind of. Can't you? As long as the files are placed in the support folder for the current game. I don't know enough. But I would guess if anything, the files must be put in the same working directory Löve writes to. I'll have to do a test.

Re: Heavy newb questions I need to get off my chest..

Posted: Tue Feb 16, 2010 2:39 pm
by Robin
Xoria wrote:Can you put files out of the love file, and use them?
With LÖVE, you can use files from two locations:
  1. The .love (or otherwise the same location main.lua is)
  2. The write directory
Both are treated as the "current directory".

Re: Heavy newb questions I need to get off my chest..

Posted: Wed Feb 17, 2010 5:11 pm
by Jasoco
What happens if both the Löve directory and the write directory have a file with the same name? Which gets loaded and which gets ignored?

Re: Heavy newb questions I need to get off my chest..

Posted: Wed Feb 17, 2010 6:16 pm
by bartbes
The write dir one gets loaded.

Re: Heavy newb questions I need to get off my chest..

Posted: Fri Feb 19, 2010 5:26 am
by bmelts
bartbes wrote:The write dir one gets loaded.
Really?
the wiki wrote:Files that are opened for read will be looked for the game root folder, and then in the save directory (in that order). So if a file with a certain filename (and path) exist in both the .love-file and the save folder, the one in the .love-file takes precedence.
If this is wrong, it should be changed...

Re: Heavy newb questions I need to get off my chest..

Posted: Fri Feb 19, 2010 9:54 am
by Someguy
Does this really work?
I am trying to use "love.filesystem.enumerate" and I have to put the files I am looking to read in the .zip, if I want to use a .love file (or deployment exe).

Re: Heavy newb questions I need to get off my chest..

Posted: Fri Feb 19, 2010 10:21 am
by bartbes
Yes, anjo, really, and this has been this way for 3 versions. I always wondered who was ignorant enough to keep lying.