supertuxkart-sourceforge-migration / stk-migration-test

0 stars 0 forks source link

Make STK 'updateable' in game #794

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk

It would be a nice feature to be able to update stk (or parts of stk) in game. Some thoughts:

1) data files: they could be updated by making the file manager a bit more intelligent: if it tries to open a file X in the data package, it would first check if there is a file in '.../addons/update/X', and if so transparently load that newer file. Some work would be required to enable this feature for textures loaded from b3d models. 2) Executable: STK should be started from a script. This script will check for a new binary in '.../addons/update/bin' - and if so start that binary instead of the installed one. If STK exits with a certain return code, that script would automatically restart (which is used to download a new binary in game, then restart STK with the new binary). Security would be crucial, i.e. it should get a hash sum from a different server to make sure it is really an official binary.

The current addon server can then be used to install new updates in '.../addons'.

Some care must be taken of inconsistencies (e.g. some data is loaded from the installed directory, then an update is installed --> there might be some incosnsitencies now between updated and already loaded files). Also there must be a way of removing files (not from the install location, but from a previous update) to avoid taking up too much space on disk.

This is more of a long term goal, or a potential GSOC project.

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/1115

supertuxkart-sourceforge-migration commented 10 years ago

Author: deveee I'm not sure if it really has a sense.

All major releases should be installed in /usr, Program Files etc. It's too easy to remove it accidentaly from local files and it makes a mess.

Minor release every month? Sounds like release of Firefox number 3976 :P

It could be really useful to fix some critical bugs after release. But ideally version with bugs shouldn't be released ;)

But other thing...

This update system would be useful to create mods for STK. Without destroying my installed files, I could download for example a non-official skin, modified track or different nitro effect and install it to local folder.