LÖVE 0.6.0

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
ido
Prole
Posts: 26
Joined: Mon Mar 16, 2009 10:34 am

Re: LÖVE 0.6.0

Post by ido »

bartbes wrote:Ah thanks, I'm revising the deb anyway, will fix it now.

EDIT: It already does, it depends on libopenal1
Still doesn't work for some reason:

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ls /usr/lib/libopenal*
/usr/lib/libopenal64.so  /usr/lib/libopenal.so.1
/usr/lib/libopenal.so    /usr/lib/libopenal.so.1.8.466
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post by Robin »

netghost wrote:So why was Color removed? It seems pretty useful to me.
Dunno why it was removed, but you can use a table for the same effect.

Code: Select all

c = love.graphics.newColor(100, 0, 255)
love.graphics.setColor(c)
c = love.graphics.getColor()
--becomes:
c = {100, 0, 255}
love.graphics.setColor(unpack(c))
c = {love.graphics.getColor()}
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post by bartbes »

ido wrote:

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ls /usr/lib/libopenal*
/usr/lib/libopenal64.so  /usr/lib/libopenal.so.1
/usr/lib/libopenal.so    /usr/lib/libopenal.so.1.8.466
Could you tell me the output of

Code: Select all

ldd love
and

Code: Select all

ls -l /usr/lib/libopenal.so.1
?
I myself recently found one of my lib symlinks became corrupted.
If both are normal you can try

Code: Select all

LD_LIBRARY_PATH=/usr/lib love
User avatar
ido
Prole
Posts: 26
Joined: Mon Mar 16, 2009 10:34 am

Re: LÖVE 0.6.0

Post by ido »

bartbes wrote: Could you tell me the output of

Code: Select all

ldd love
and

Code: Select all

ls -l /usr/lib/libopenal.so.1
?

Code: Select all

ido@ido-laptop:~$ love
love: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
ido@ido-laptop:~$ ldd love
ldd: ./love: No such file or directory
ido@ido-laptop:~$ ls -l /usr/lib/libopenal.so.1
lrwxrwxrwx 1 root root 14 2009-12-22 13:38 /usr/lib/libopenal.so.1 -> libopenal64.so
User avatar
Sslaxx
Citizen
Posts: 57
Joined: Sat Feb 14, 2009 8:54 pm
Location: Malvern, Worcs, UK
Contact:

Re: LÖVE 0.6.0

Post by Sslaxx »

Love is installed in /usr/bin so you need to do

Code: Select all

ldd /usr/bin/love
to find out about the libraries it uses/needs.
User avatar
ido
Prole
Posts: 26
Joined: Mon Mar 16, 2009 10:34 am

Re: LÖVE 0.6.0

Post by ido »

http://pastebin.com/mae2943e

The main point of interest is the line:

Code: Select all

libopenal.so.1 => not found
Even tho

Code: Select all

$ ls -l /usr/lib/libopenal.so.1
lrwxrwxrwx 1 root root 23 2009-12-29 13:15 /usr/lib/libopenal.so.1 -> /usr/lib/libopenal64.so
(i relinked it myself to be on the safe side)

LD_LIBRARY_PATH doesn't seem to help either:

Code: Select all

$ LD_LIBRARY_PATH=/usr/lib lovelove: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
Last edited by ido on Tue Dec 29, 2009 12:18 pm, edited 1 time in total.
User avatar
Sslaxx
Citizen
Posts: 57
Joined: Sat Feb 14, 2009 8:54 pm
Location: Malvern, Worcs, UK
Contact:

Re: LÖVE 0.6.0

Post by Sslaxx »

Have you made sure you've installed OpenAL?

Code: Select all

sudo apt-get install libopenal1
(Ubuntu 9.10)
User avatar
ido
Prole
Posts: 26
Joined: Mon Mar 16, 2009 10:34 am

Re: LÖVE 0.6.0

Post by ido »

Sslaxx wrote:Have you made sure you've installed OpenAL?

Code: Select all

sudo apt-get install libopenal1
(Ubuntu 9.10)
Yes, otherwise I wouldn't have had the file to begin with:

Code: Select all

$ sudo apt-get install libopenal1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libopenal1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LÖVE 0.6.0

Post by Jasoco »

Trying to port my engine over, but can't remember all the new stuff. Like how do I do the main loop now? I saw an example before but I have no idea where it went now. My code is complex. But after removing the love.filesystem. from the require() functions I now get a black screen instead of a blue error. So I'm on my way. But where do I go from here? I would have hoped for another error screen to guide me. I guess not since it is now acting like a blank .love file with no code.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: LÖVE 0.6.0

Post by bmelts »

If you're getting a black screen, you probably haven't fixed your callbacks. All the callbacks are now in the love table - e.g. instead of update(dt) and draw(), it's love.update(dt) and love.draw().

That should get LÖVE to run said callbacks, so you can debug all the other inevitable errors that will crop up.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 6 guests