auto update

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

auto update

Post by jjmafiae »

can you use luasocket to creating an auto update system??? because im creating a spacegame were it could be good with that?
User avatar
Petunien
Party member
Posts: 191
Joined: Fri Feb 03, 2012 8:02 pm
Location: South Tyrol (Italy)

Re: auto update

Post by Petunien »

It's possible.

I'm working on a system for my game.

It basically compares its own version with the latest version and if the latest version is newer, it downloads a .zip with the updated files. Then it extract those, so you have a folder called "0.0.5" or so in the appdata.

In the game, you require the files using
love.filesystem.load("path/to/maybe/updated/version" or "path/to/origin/version")

That's only one solution and surely not the best, though.

And by the way, anyone knows a good Zip library for lua? One that works on all OS...
"Docendo discimus" - Lucius Annaeus Seneca
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: auto update

Post by josefnpat »

You guys should check out what thelinx did: https://love2d.org/wiki/LoveUpdate
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests