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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
nice
Party member
Posts: 191
Joined: Sun Sep 15, 2013 12:17 am
Location: Sweden

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

Post 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!
:awesome: Have a good day! :ultraglee:
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

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

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

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

Post 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?
Help us help you: attach a .love.
User avatar
nice
Party member
Posts: 191
Joined: Sun Sep 15, 2013 12:17 am
Location: Sweden

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

Post 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
:awesome: Have a good day! :ultraglee:
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests