Page 1 of 1

[HELP] Can't find my main.lua file

Posted: Mon May 25, 2015 1:56 pm
by nice
Hello boys and girls!

I have been away from Löve2D for some months and have just recently decided to get back into my projects.

There's a side project that I'm working on to understand how canvases works and Löve says it can't find it when I launch my test program; I can see my code project (I call it main.lua), I can open it up in Sublime Text 2 and I can launch it via the Terminal (Mac) but still it can't find it for some reason.


Thanks for your patience!

Re: [HELP] Can't find my main.lua file

Posted: Mon May 25, 2015 2:05 pm
by kikito
In your case, I would open it with Sublime and save it (with "Save as...") to a known location. Then you can probably find a way to make Sublime tell you where the files are.

Re: [HELP] Can't find my main.lua file

Posted: Mon May 25, 2015 2:07 pm
by Robin
You're probably launching LÖVE with the wrong argument. You gotta be more specific for us to be able to help you. What is the path your main.lua is in? What argument do you pass to LÖVE? What steps, exactly, did you follow?

Re: [HELP] Can't find my main.lua file

Posted: Mon May 25, 2015 2:09 pm
by nice
kikito wrote:In your case, I would open it with Sublime and save it (with "Save as...") to a known location. Then you can probably find a way to make Sublime tell you where the files are.
Worked without a hitch, just curious why it didn't worked the normal way..
Robin wrote:You're probably launching LÖVE with the wrong argument. You gotta be more specific for us to be able to help you. What is the path your main.lua is in? What argument do you pass to LÖVE?
I saved my main.lua file under Documents in a folder called "testCanvas", like this:

Code: Select all

/Applications/love.app/Contents/MacOS/love /Users/Samuel/Documents/testCanvas