Page 2 of 5

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 2:05 am
by slime
I forgot to install a version of NSIS which properly supports unicode. My bad. :(

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 6:26 am
by Santos
Spooky ghosts of dead bugs! :o

Congrats slime and bartbes!


If anyone else thought "why would you need love.event.quit("restart") instead of calling love.load() or whatever?", I certainly don't have the definitive answer, but what I came up with was: A quick way to reset a game where there might be stuff declared outside of love.load, and it also resets internal LOVE/Lua state.

For example, calling love.load() would do nothing to reset the number declared outside of love.load or clear the global Image created outside of love.load or reset the background color.

Code: Select all

local number = 0

function love.keypressed()
    number = number + 1
    image = love.graphics.newImage('image.png')
    love.graphics.setBackgroundColor(255, 255, 255)
end
I'm probably missing other things here.


And if anyone else thought "why is it love.event.quit("restart") instead of love.event.restart() or something, why is restarting a variant of quitting?":

love.event.quit takes an exit status as an argument (which is the number that LOVE returns to the command line once it finishes, and it defaults to 0 which typically means "this program didn't error", I think).

This exit status is returned from love.run. If love.run returns "restart" then the game is restarted instead of quit.

So just like love.event.quit(1) is a shortcut to love.event.push('quit', 1), love.event.quit('restart') is a shortcut to love.event.push('quit', 'restart').

So, if there was a convenience function for restarting, there would be three ways of restarting (love.event.restart(), love.event.quit('restart'), and love.event.push('quit', 'restart').


I guess lovec.exe means that the t.console setting can be removed in the next backwards-compatibility-breaking release?

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 8:59 am
by srcn
Oh great!

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 9:27 am
by sherpal
First time I witness a LÖVE update, this is beautiful :nyu:

Sorry for being stupid though, but on the Home page I still see the 0.10.1 version, where can I find the .2 ? :(
Thanks

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 9:49 am
by bartbes
You may have to use ctrl+f5, or something similar to clear the cache. I noticed you may need to do the same on the wiki to get the version picker to show 0.10.2.

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 10:18 am
by sherpal
bartbes wrote:You may have to use ctrl+f5, or something similar to clear the cache. I noticed you may need to do the same on the wiki to get the version picker to show 0.10.2.
You're right, it now shows 0.10.2. Thanks :)

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 10:40 am
by Fenrir
Just updated to this version and everything is working perfectly, great job guys!

Re: LÖVE 0.10.2 released

Posted: Tue Nov 01, 2016 7:27 pm
by Ref
Maybe video will be fixed on 10.3.
On Windows 7 and Love 10.1, Video:rewind followed by Video:play (after playing the video once) would replay video once and the second time, only rewind the audio and while displaying the first frame of the video while playing the audio again.
On Love 10.2, only the audio is played and rewound - no video displayed.
Anyone have an example of a script that actually works?

Re: LÖVE 0.10.2 released

Posted: Wed Nov 02, 2016 9:05 am
by bartbes
Ref wrote:Maybe video will be fixed on 10.3.
Perhaps it could've been fixed in 0.10.2 if there had been a bug report...

Re: LÖVE 0.10.2 released

Posted: Wed Nov 02, 2016 12:57 pm
by kikito
Thanks for the good job guys :)