Page 1 of 1

Getting started on MacOS

Posted: Sun Feb 05, 2017 5:20 pm
by sdeban
Love looks like a great way to develop games using an easy language. However, I followed the installation instructions on the Love wiki site to the letter and created the minimal program as instructed, but when I run it, the app says there is nothing to run:

"boot.lua : 433 : no code to run"

My code is, as instructed on the getting started section of the wiki,

Code: Select all

function love.draw()
    love.graphics.print("Hello World", 400, 300)
end
Am I missing something? It looks like I am making a function but not calling it, however I can't find anything about how to call a function.

Any help would be appreciated.

Re: Getting started on MacOS

Posted: Sun Feb 05, 2017 5:32 pm
by bartbes
Did you name your file main.lua? And, did you start love by passing the directory to it on the command line, by dropping the directory on it (or a shortcut to it), or by making a .love file? That error indicates love found neither conf.lua nor main.lua.

Re: Getting started on MacOS

Posted: Sun Feb 05, 2017 8:05 pm
by Positive07
If you created a zip/love file make sure that when you open it you see main.lua and not a single folder, if you see the folder then it's packaged incorrectly

Re: Getting started on MacOS

Posted: Sun Feb 05, 2017 8:21 pm
by sdeban
It was within a folder, so that was the problem. Works now. Thanks!