Page 1 of 4

DILDo

Posted: Sun Feb 15, 2009 10:32 am
by bartbes
Here it is, have fun with it!

Features:
  • Check if there are new updates on startup
  • NO code changes
Planned features:
  • None, requests welcome
Manual:
It's pretty easy, in your main.lua you do:

Code: Select all

require "DILDo"
updater.gameid = "<name of the game>" --also used for identity, so setIdentity won't be needed
updater.url = "<url of update definition>"
updater.method = "http"
Downloads:
  • DILDo.lua
    Version 3.0
    033010
    (4.73 KiB) Downloaded 171 times
  • Updater.love
    Version 2.0
    22 March 2009
    (3.18 KiB) Downloaded 217 times
  • Updater.love
    Version 1.5
    8 March 2009
    (2.95 KiB) Downloaded 158 times
Please leave a message when using Updater.
If any help is needed you are free to ask, preferred communication method: IRC.

This is released under the terms of the license included in main.lua and license.txt in the package.

Re: Updater

Posted: Sun Feb 15, 2009 12:22 pm
by osuf oboys
Awsome. Some clarifications from IRC discussions follows.

Your game is kept as a directory with a .love file which is the Updater. The updater checks for updates and downloads files as necessary. When it's done, it runs the game in the directory as normal.
Your game version starts at 1 and each subsequent update is an increment of one (or more) to the current version. On the server side, you just store a text file (a lua file), containing the current version and a list with what files were changed/added or removed in the new version. If you wanted to, you could just have one big list containing every file of your project, like the follwing.

Code: Select all

version = 12
changedFiles[12] = {"abc.lua", "cde.lua", ...}
However, if you write a list of the new files for each version, then Updater will download only the new files. So it's (hopefully?) not a problem if you got 12 MB of data and wish to release a new version with a fixed bug in sprite.lua, you just add "changedFiles[13] = {"sprite.lua"}" and "sprite.lua" will be the only file downloaded for users already at version 12.

Re: Updater

Posted: Sun Feb 15, 2009 1:49 pm
by bartbes
Isn't the wiki meant for that kind of things? Well, I'll add it to the wiki.

Re: Updater

Posted: Mon Feb 16, 2009 11:52 am
by Skofo
Neato. :ultraglee: A ready example would be nice.

Re: Updater

Posted: Mon Feb 16, 2009 1:45 pm
by bartbes
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: Sun Mar 08, 2009 5:47 pm
by bartbes
New release, fixed some bugs, added cross-host downloading and added an Updater update system (meaning: you can update Updater).

Re: Updater

Posted: Sun Mar 08, 2009 11:46 pm
by SiENcE
why you don't take an simple svn client?

-> http://luaforge.net/projects/luasvn/

Re: Updater

Posted: Mon Mar 09, 2009 6:41 am
by bartbes
Because I want more than SVN, and this is just the way I designed it.

Re: Updater

Posted: Sun Mar 22, 2009 3:47 pm
by bartbes
New release, features:
  • Made it easier to do application-control, see wiki
  • Warns when there is no local version, instead of crashes
  • Fixed the patching system
  • No longer errors when there is no internet connection
  • Description of version
EDIT: forgot the last feature

Re: Updater

Posted: Sun Mar 22, 2009 5:38 pm
by osgeld
if you want web space, ive got plenty