LÖVE 0.6.2

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE 0.6.2

Post by rude »

smartazz: It's probably because of the fix for the (epic) double-transform bug, but if you PM me that file I can confirm it. :)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE 0.6.2

Post by rude »

smartazz: In LevelTileset.lua:166

Change:

Code: Select all

self.tileSetBatch:addq(self.tileQuads[self.map[y + math.floor(my)][x + math.floor(mx)]], x * self:getTileSize() / 2, y * self:getTileSize() / 2)
To:

Code: Select all

self.tileSetBatch:addq(self.tileQuads[self.map[y + math.floor(my)][x + math.floor(mx)]], x * self:getTileSize(), y * self:getTileSize())
pekka
Party member
Posts: 206
Joined: Thu Jan 07, 2010 6:48 am
Location: Oulu, Finland
Contact:

Re: LÖVE 0.6.2

Post by pekka »

Please set the issue tracker version options (in the dropdown menu) to include 0.6.2. It only has 0.6.1 and earlier in it at the moment.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE 0.6.2

Post by rude »

pekka: Done.
User avatar
devyn
Prole
Posts: 12
Joined: Tue Dec 29, 2009 5:56 am

Re: LÖVE 0.6.2

Post by devyn »

bartbes wrote:
devyn wrote:The right side is not stroked. In LÖVE 0.6.1 it is correctly stroked.
Correct, there was a size issue in 0.6.1, which has been fixed in 0.6.2, thus producing different results. It should be correct now.
But it isn't. As you can see, the line on the right has disappeared suddenly in 0.6.2. In 0.6.1, the whole rectangle displays correctly.

In 0.6.1, it looks like this:
Image
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LÖVE 0.6.2

Post by Jasoco »

bartbes wrote:
Jasoco wrote:Is this stdout file created automatically
It is not a file, stdout is the name of the standard output, which means it now has console output. On windows you're still going to have to enable the console, but on linux and OSX (as you use) you can just start it from any terminal emulator to see the output.
How do I do that? i.e. what do I type in the Terminal window to get my whatever.love to open in Löve? And then what do I do inside my Löve game to print the stuff?
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: LÖVE 0.6.2

Post by bmelts »

Quickest way, assuming you have love.app in Applications:

Code: Select all

/Applications/love.app/Contents/MacOS/love /path/to/my/game.love
Alternatively, if you want to save your fingers:

Code: Select all

ln -s /Applications/love.app/Contents/MacOS/love /somewhere/in/your/PATH/
EDIT: this isn't actually working for me, it complains of an incorrectly packaged .love. Even when I run it with no argument. Dunno why, but you can instead try

Code: Select all

alias love=/Applications/love.app/Contents/MacOS/love
[/b]
At which point every time you want to run something, you can just type

Code: Select all

love /path/to/my/game.love
love works with plain folders, too, not just .love files.

Printing to Terminal works the same way it always has - just use print() (not love.graphics.print, just the built-in Lua print() function). The only difference with 0.6.2 is that errors are automatically dumped there too.
Last edited by bmelts on Sun Mar 07, 2010 10:52 pm, edited 1 time in total.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: LÖVE 0.6.2

Post by kikito »

Yipee!
devyn wrote: But it isn't. As you can see, the line on the right has disappeared suddenly in 0.6.2. In 0.6.1, the whole rectangle displays correctly.
Devyn, I think that what Bartbes means is that on 0.6.1 the rectangle dimensions was wrong.

Your rectangle probably "got around this" and calculated the dimensions so it looked "good". But it was not "correct".

Can you paste the code you are using?
When I write def I mean function.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LÖVE 0.6.2

Post by Jasoco »

That works really well. Thanks! Sadly it doesn't seem to dump anything there when the game actually crashes like I've been encountering. (i.e. hard crash where it just quits with no warning or error screen. Seems to do it when the wrong parameters are passed to Löve functions. Like when you pass an older 0.5.0 style love.whatever instead of a 0.6.x style "constant".)
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: LÖVE 0.6.2

Post by kikito »

Hi Jasoco,

In order to hunt down where the error is, I suggest that you put some print statements:

Code: Select all

function f(..)
print('Entering f')

print('Exiting f')
end
print will output text to the console, even if LÖVE crashes. You can start debugging inwards - start printing traces of the "exterior" functions, and you will get to the troublesome line in no time.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: No registered users and 252 guests