Page 1 of 1

[SOLVED]Error: ***** Does not exist

Posted: Sun Apr 13, 2014 10:24 pm
by Kend2000
I am trying to set a image for a player but I always get an error. Everything is spelled correctly.

player.SpriteImage = love.graphics.newImage("assets/images/red.png")

ERROR:

bin/player.lua:8: Could not open file assets/images/red.png. Does not exist

Re: Error: ***** Does not exist

Posted: Sun Apr 13, 2014 11:09 pm
by Robin
Could you upload a .love of your game?

Re: Error: ***** Does not exist

Posted: Sun Apr 13, 2014 11:28 pm
by Kend2000
Robin wrote:Could you upload a .love of your game?
https://www.mediafire.com/?ab7vc9cnciq5731

Re: Error: ***** Does not exist

Posted: Sun Apr 13, 2014 11:50 pm
by Karai17
You have your assets folder in /bin, for whatever reason. LOVE's paths always start where main.lua is, so you need to use "bin/assets/images/red.png".

I suggest not having a /bin folder though, since it makes no sense. None of your lua or png files are compiled binaries.