Cannot use LÖVE after installation

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
marare
Prole
Posts: 5
Joined: Wed Jul 23, 2014 5:10 pm

Cannot use LÖVE after installation

Post by marare »

Hi
I'm new to LÖVE. Installation from version 0.91 under Linux Mint 17. When I start LOVE from terminal I get a comic screen messaging "no game!". The "Hello world"-example under LUA 5.2.3 ends in "attempt to index global 'love' (a nil value)...". Is LÖVE installed correctly ? What do I have to do ?
marare
Last edited by marare on Thu Jul 24, 2014 6:10 am, edited 1 time in total.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Cannot use LÖVE after installation

Post by slime »

marare wrote:Is LÖVE installed correctly ? What do I have to do ?
Yep! Check out the [wiki]Getting Started[/wiki] wiki page.
marare
Prole
Posts: 5
Joined: Wed Jul 23, 2014 5:10 pm

Re: Cannot use LÖVE after installation

Post by marare »

Thanks for your quick answer.
But I followed "wiki: Getting started" step by step without success :? Error "Nil" may mean that LÖVE is not correctly installed ?! Please help.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Cannot use LÖVE after installation

Post by slime »

It sounds like you're trying to run your code through a separate Lua interpreter. Normally you'd run the love binary directly, e.g.

Code: Select all

love /path/to/my/game_folder/
Where game_folder has main.lua inside.
marare
Prole
Posts: 5
Joined: Wed Jul 23, 2014 5:10 pm

Re: Cannot use LÖVE after installation

Post by marare »

Correct. I started code from Lua interpreter.
Will try your advice later back at home :3
marare
Prole
Posts: 5
Joined: Wed Jul 23, 2014 5:10 pm

Re: Cannot use LÖVE after installation

Post by marare »

Sorry, but I have still no success.
I created a file "main.lua" on the desktop containing the "hello world"-example. If I try to execute it by terminal

Code: Select all

me@mint ~/Desktop $ love
I still get the comic screen messaging "no game!". What is my mistake ?
marare
Prole
Posts: 5
Joined: Wed Jul 23, 2014 5:10 pm

Re: Cannot use LÖVE after installation

Post by marare »

... aaah
Now it works :megagrin:
Starting from root directory by

Code: Select all

me@mint / $ love /home/me/Desktop/
Strange behavior...
Many thanks for your help !!!
Post Reply

Who is online

Users browsing this forum: YaCy [Bot] and 11 guests