Page 2 of 4
Re: Updater
Posted: Sun Mar 22, 2009 7:02 pm
by bartbes
Sorry, but why? This is just the 'lib'. Anyway, for lube-demo I just use github, works.. (was going to say great, but it could be easier, assembla is better).
Re: Updater
Posted: Sun Mar 22, 2009 7:24 pm
by osgeld
bartbes wrote:Well, I don't have the webspace to do that, but I hope the first game using it will be released soon (as it isn't hard to implement).
Re: Updater
Posted: Mon Mar 23, 2009 6:43 am
by bartbes
Oh, right, well lube-demo is now on githost. Thanks anyway.
Re: Updater
Posted: Fri Mar 05, 2010 9:53 pm
by Robin
I've ported Updater to work with LÖVE 0.6, and made various other changes that I think are an improvement.
However, I have not tested this with a real game, so I'm not sure if this version will work.
These are some of the changes I've made:
- Now produces and uses significantly less clutter files: only a .version that stores the current version as a string.
- Automanaged is now the default, the example main.lua included show how to avoid it: call Updater.selfcheck() in love.load().
- Fixed the 2.0 bug that automanaged games don't download the initial copy.
- This version doesn't download files that have been removed later on.
- Many improvements "under the hood".
Also, note that there is no love.system anymore, so lovers have to soft-restart the game themselves (or notify the player to restart the game)
Re: Updater
Posted: Sat Mar 06, 2010 4:41 pm
by bartbes
I will release a new, improved, rewritten version soon.
Re: Updater
Posted: Sat Mar 06, 2010 4:53 pm
by Robin
In the mean time, I have updated my port:
- Updater.love
- Yay, new version
- (2.43 KiB) Downloaded 115 times
Highlights:
- Converted main table name to lowercase (Updater->updater), to conform to the convention used by Lua in general, and LÖVE in particular.
- Fixed updater.selfcheck() and everything it calls.
- Improved updater.dialog.
- Made the example act like an update was found.
- Files removed in an intermediate version and recreated in a later version are no longer removed after downloading them.
Re: Updater
Posted: Sat Mar 06, 2010 5:31 pm
by kalle2990
Error
updater.lua:46: attempt to index field 'result' (a nil value)
Traceback
updater.lua:46: in function 'download'
updater.lua:58: in function 'checkforupdates'
updater.lua:166: in function <updater.lua:162>
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
Re: Updater
Posted: Sat Mar 06, 2010 5:47 pm
by Robin
kalle2990 wrote:Error
Whoops.
This is what I get for not testing this with a server.
Fixed version:
- Updater.love
- This should work -- famous last words
- (2.43 KiB) Downloaded 106 times
Re: Updater
Posted: Sun Mar 07, 2010 2:36 am
by Jasoco
I get the same error as above with the current version.
Re: Updater
Posted: Sun Mar 07, 2010 8:02 am
by bartbes
That's why my version is going to be better