Page 1 of 1

LDK - File system and usage?

Posted: Fri Aug 31, 2012 12:35 am
by Phobos001
Hello! I've setup LDK for use with LOVE, and I setup subfolders in the project (audio, graphics, lua, etc...).

However, when I do "love.graphics.newImage("maingame/graphics/test.png") and run, it says it couldn't be found.

How would I get this to work properly? Or am I doing something horridly wrong?

Here is a picture:

Image

Re: LDK - File system and usage?

Posted: Fri Aug 31, 2012 7:49 am
by T-Bone
You're on Windows, aren't you? Maybe it doesn't understand the / in the path. If I remember correctly, you can use dots. Like this: "maingame.graphics.pic.png". Otherwise, you probably need backslashes (\)

Re: LDK - File system and usage?

Posted: Fri Aug 31, 2012 7:53 am
by Nixola
Dots can be only used inside 'require'

Re: LDK - File system and usage?

Posted: Fri Aug 31, 2012 8:08 am
by Boolsheet
And the love.filesystem only works with forward slashes.

Do these folders really exist or are those just tags/subcategories/filters that do not actually affect the position of the file in the filesystem?

Re: LDK - File system and usage?

Posted: Fri Aug 31, 2012 3:14 pm
by kikito
I see a small arrow on the lower right of test.png's icon. Have you copied the real test.png there, or have you created a "direct access" (or whatever windows calls them now) instead? The image should work, the direct access should fail.

Re: LDK - File system and usage?

Posted: Sat Sep 01, 2012 7:35 am
by T-Bone
I think Windows added proper symlink support in Win7 (or was it Vista?), but I don't think it's used by default from the GUI. So that's probably a "link" (as in a .lnk file) and yeah, that doesn't work.