Page 1 of 1

Cannot use LÖVE after installation

Posted: Wed Jul 23, 2014 5:16 pm
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

Re: Cannot use LÖVE after installation

Posted: Wed Jul 23, 2014 6:50 pm
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.

Re: Cannot use LÖVE after installation

Posted: Thu Jul 24, 2014 5:41 am
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.

Re: Cannot use LÖVE after installation

Posted: Thu Jul 24, 2014 5:53 am
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.

Re: Cannot use LÖVE after installation

Posted: Thu Jul 24, 2014 6:09 am
by marare
Correct. I started code from Lua interpreter.
Will try your advice later back at home :3

Re: Cannot use LÖVE after installation

Posted: Thu Jul 24, 2014 2:32 pm
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 ?

Re: Cannot use LÖVE after installation

Posted: Thu Jul 24, 2014 2:37 pm
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 !!!