auto update
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
auto update
can you use luasocket to creating an auto update system??? because im creating a spacegame were it could be good with that?
Re: auto update
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...
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
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: auto update
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
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
Who is online
Users browsing this forum: No registered users and 2 guests