Page 1 of 1

Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 3:41 pm
by k.smithdesin
Hi there guys,

after struggling to get LUA to work on my MacBook I am completely lost
on how to install LÖVE. I have downloaded the .dmg, put the app in my
app folder ... but when I bring up the console there's nothing ... plus, although
all the games launch in LÖVE, their screens are either black or they produce
an error.

attempt to index global 'love' (a nil value)
stack traceback:
helloworld.lua:1: in main chunk
[C]: ?

Any help?

Kind regards
Kevin

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 4:08 pm
by Robin
Are you running it with Lua? Because that doesn't work. See http://love2d.org/docs/getting_started.html.

One of the Mac guys might answer your question better.

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 5:19 pm
by k.smithdesin
I tried the following:

Double-Click the *.love-File (90% black screen, 10% blue error screen)
Drag & Drop the *.love-File onto Love.app (same as above)
Terminal → love *.love-File (bash-error: command not found)

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 6:23 pm
by bmelts
What .love files are you using? The demos that come with the DMG should work just fine, but if you're using one written for 0.5.0, that won't work.

Running it from Terminal won't work unless you explicitly point it to the executable inside the .app bundle, but double-clicking .love files, or dragging/dropping them, should work.

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 6:26 pm
by k.smithdesin
ah, well! you're right, the examples shipped with the .dmg are working properly,
but I wanted to have a glance at an actual game. :) Is there any game working
under 0.6?

So there is no command-line-support for Snow Leopard / OS X as for now?

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 6:28 pm
by Robin
k.smithdesin wrote:ah, well! you're right, the examples shipped with the .dmg are working properly,
but I wanted to have a glance at an actual game. :) Is there any game working
under 0.6?
Yes, but no large game has been finished yet that works under 0.6 (AFAIK).

You could take a look at LovelyBigPlanet. Development on LBP is frozen for the moment though.

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 6:33 pm
by bmelts
Well, LÖVE is designed to work like a standard app on OS X. If you want command line support, though, the easiest way is probably a symbolic link:

Code: Select all

ln -s /Applications/love.app/Contents/MacOS/love /somewhere/in/your/PATH
You should be able to run love from the command line then without having to worry about long paths.

Re: Installing and running LÖVE on OS X Snow Leopard

Posted: Thu Feb 11, 2010 6:39 pm
by k.smithdesin
Nice! I was just confused that there was no command-line support because the "getting started"
said something about firing up the command-line, so there's defenitely room for some clarification.

Anyhow, thanks for your support! I'll have a look at this little gem. Haven't written a single line of
LUA until know ... we will see. :D