Search found 47 matches

by rxi
Fri Mar 07, 2014 10:30 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume & Lurker : Utility functions and auto-hotswapping

https://love2d.org/imgmirrur/cM12GAT.gif Lurker update Added a protected mode to lurker , by default this mode is enabled (it can be disabled by setting the lurker.protected variable -- see the readme). Any error which is raised by a love callback function (love.update(), love.draw() etc.) is now c...
by rxi
Fri Mar 07, 2014 1:28 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume : A Collection of functions geared towards gamedev

@Zarty55 I think you may be misunderstanding what's going on. Here's a step by step of what happens in your example: The program starts You add your lurker.postswap assignment into the love.update() function The change is detected, lurker.preswap is called The hotswap occurs, main.lua is loaded and ...
by rxi
Thu Mar 06, 2014 8:38 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume : A Collection of functions geared towards gamedev

Oh, playing a little bit with lurker.postswap I've noticed a kinda strange behavior. When I change lurker.postswap and lurker reloads(The game, not that I changed it inside the lurker.lua), it calls a old version of the postswap function. Any workaround to this? That does sound strange, would you b...
by rxi
Thu Mar 06, 2014 8:14 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume : A Collection of functions geared towards gamedev

Did you take a look at the way Cupid (https://love2d.org/wiki/Cupid) handles errors? I don't understand anything about what's going on under the hood in either Cupid or your library, but in Cupid the error handling is done pretty nicely I think. Ah, just had a peek at it. It looks like it's wrappin...
by rxi
Thu Mar 06, 2014 7:24 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume : A Collection of functions geared towards gamedev

Haha, I'm liking the enthusiasm @Zarty55. One thing that would be nice, is that it could have a "catchChange" and "applyChange". Then we could detect changes inside love.errhand and restart the game when there's a change in the code. Could you try and expand on what you meant by ...
by rxi
Thu Mar 06, 2014 1:01 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Re: Lume : A Collection of functions geared towards gamedev

@adnzzzzZ Really nice to see it in someone else's project (on a different platform, too)! Though my little demo video just focused on the love.update() function, I did write the lume.hotswap() function with larger projects in mind; I tested it on a couple of the proper-sized LÖVE projects and didn't...
by rxi
Wed Mar 05, 2014 10:20 pm
Forum: Libraries and Tools
Topic: Lume & Lurker : Utility functions and auto-hotswapping
Replies: 58
Views: 34792

Lume & Lurker : Utility functions and auto-hotswapping

Lume is a library containing a collection of functions geared towards game development. Check out the Readme file for a list of what it includes. lume.lua Readme Github repo I've also written a small module named lurker which makes use of the lume.hotswap() function. The module detects changes in l...