Installing and running LÖVE on OS X Snow Leopard

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
k.smithdesin
Prole
Posts: 4
Joined: Thu Feb 11, 2010 3:34 pm

Installing and running LÖVE on OS X Snow Leopard

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

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

Post 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.
Help us help you: attach a .love.
k.smithdesin
Prole
Posts: 4
Joined: Thu Feb 11, 2010 3:34 pm

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

Post 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)
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

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

Post 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.
k.smithdesin
Prole
Posts: 4
Joined: Thu Feb 11, 2010 3:34 pm

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

Post 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?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post 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.
Help us help you: attach a .love.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

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

Post 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.
k.smithdesin
Prole
Posts: 4
Joined: Thu Feb 11, 2010 3:34 pm

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests