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

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.
Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria »

OHHH... you can keep things OUT of the file and call them? That 's so next.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post by Robin »

Xoria wrote:OHHH... you can keep things OUT of the file and call them? That 's so next.
?
Help us help you: attach a .love.
Xoria
Citizen
Posts: 61
Joined: Sun Jan 31, 2010 1:24 am

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

Post by Xoria »

Can you put files out of the love file, and use them?
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post 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".
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes »

The write dir one gets loaded.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

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

Post 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...
Someguy
Prole
Posts: 3
Joined: Tue Feb 09, 2010 10:50 am

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

Post 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).
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes »

Yes, anjo, really, and this has been this way for 3 versions. I always wondered who was ignorant enough to keep lying.
Post Reply

Who is online

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