DILDo

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Updater

Post 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).
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Updater

Post 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).
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Updater

Post by bartbes »

Oh, right, well lube-demo is now on githost. Thanks anyway.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Updater

Post 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.
Updater.love
Based on 2.0
(2.24 KiB) Downloaded 112 times
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)
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: Updater

Post by bartbes »

I will release a new, improved, rewritten version soon.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Updater

Post 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.
Help us help you: attach a .love.
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: Updater

Post 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'
:?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Updater

Post by Robin »

kalle2990 wrote:
Error
:?
Whoops.

This is what I get for not testing this with a server. :P

Fixed version:
Updater.love
This should work -- famous last words
(2.43 KiB) Downloaded 106 times
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Updater

Post by Jasoco »

I get the same error as above with the current version.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Updater

Post by bartbes »

That's why my version is going to be better :P
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests