Unvanquished / updater

QML based updater to install, update and launch the Unvanquished game.
https://unvanquished.net/download
15 stars 7 forks source link

Feedback on 982b53b. #30

Closed Viech closed 3 months ago

Viech commented 9 years ago
DolceTriade commented 9 years ago

Default install dir

This is the directory it is launched from. I will prepopulate it in the install box.

Changing the install location in the menu doesn't trigger any direct reaction, only after restarting the updater there is a reaction.

I haven't seen this in my tests. Could you explain how to reproduce this further, perhaps in a separate issue?

Changing install location and moving content

You cannot change the install location mid download. The prompting to move the stuff for them seems like something that I wouldn't target for the initial alpha release.

Feedback when not writable

There is feedback (a very generic error message), but it could be better. I will fix this.

Admin prompt on windows

I get an admin prompt on windows to run the app. I haven't tried writing to a system location (ie, Program Files). I will fix it if it errors out.

Force install location and allow changing it via command line only

Maybe once we're stable. During alpha, I think it is a bad idea for users to not be clear where the game is installed.

Uninstaller

Yep, TODO

Launcher part of the updater

TODO. I wasn't targeting it for the initial release. I wanted to get the download and updater part down first.

Merge buttons

Good idea.

Download bar to print messages

While the updater is still in development, I think seeing a download history is good so the user can help me debug issues. In the future, I think this is a good idea. The top area will instead be for news and such.

Re-checksuming

The updater does this if you press updater. I could add a menu option for this, but it would basically do the same thing as updating.

Rate limiting

Fairly simple, but I wanted to keep the options minimal. If you want to rate limit, pause it and start it again later. If it becomes a heavily requested feature, I can add it however.

Actually install (ie, desktop entries/start menu/registry/register handlers on linux/etc)

TODO, definitely not for this release, but will be there in future releases.

Shipping with the torrent

Yes, but not until its a little further along.

yo dawg I heard you want to update your updater so you can update while you update

Yeah. Problem is on Windows, you cannot overwrite a running application, so I think the best solution would be an updater updater...

Viech commented 9 years ago

Default install dir

This is the directory it is launched from. I will prepopulate it in the install box.

No, installations shouldn't go to where you download files to, they should go to the locations that are standardized for user-privilege installations, i.e. to ~/.local/share/Unvanquished/ under linux or wherever steam and unprivileged game launchers install games under windows. If you run any launcher for a game released on linux it won't drop the game to ~/Downloads/ either. This is simply nonstandard and purpose-defeating behaviour for a launcher that manages your game installation, not a small area of your messed up, purged-once-in-a-while downloads folder.

Changing the install location in the menu doesn't trigger any direct reaction, only after restarting the updater there is a reaction.

I haven't seen this in my tests. Could you explain how to reproduce this further, perhaps in a separate issue?

I will when I get around to that.

Feedback when not writable

There is feedback (a very generic error message), but it could be better. I will fix this.

The generic error message doesn't catch an existing non-writable folder under linux. Try with /root.

Re-checksuming

The updater does this if you press updater. I could add a menu option for this, but it would basically do the same thing as updating.

There are two types of verification for torrents. One is fast and probably looks at file modification timers to not re-checksum the entire download again (I don't know the exact method though, timers is juts a guess). That's the one you correctly use whenever the launcher checks for updates. The other is a complete re-checksuming of the entire download to look for broken files, which can take a long time. I'm not sure when this is necessary (i.e. what errors aren't catched by the fast approach) but every torrent client offers this option and I wouldn't be surprised if existing launchers offer this too for similiar reasons. I know that steam has this option.

yo dawg I heard you want to update your updater so you can update while you update

Yeah. Problem is on Windows, you cannot overwrite a running application, so I think the best solution would be an updater updater...

Can you maybe fork and disown a process that does this, then starts the new binary? I think there must be some way to achieve that "your application has updated and needs to be restarted now" effect. I mean, if not on Windows where else?

Rate limiting

Fairly simple, but I wanted to keep the options minimal. If you want to rate limit, pause it and start it again later. If it becomes a heavily requested feature, I can add it however.

I'm fine with both a pause button and a rate limit. I'm pretty sure most proprietary launchers don't even bother to implement either. If a user is on a really low bandwith link, a pause button doesn't do anything for them as they just want to be able to watch videos/play games/etc. during their mutliple hour download. It's merely the "Can you stop downloading, I'm ingame for another ten minutes!" situation where a pause button makes any sense but even then a rate limit does the trick as well. Both are kind of optional in my opionion but the limit is certainly more powerful.

Viech commented 9 years ago

Unticked

Changing the install location in the menu doesn't trigger any direct reaction, only after restarting the updater there is a reaction.

as it isn't actually implemented. Note that changing the download location doesn't even trigger a re-download on next launch, you would need to hit the verify button. (Quick verification on startup by timestamp or so doesn't seem to be implemented yet?)

Viech commented 9 years ago

It doesn't even continue an unfinished download anymore. It just tells you the game was up to date…

slipher commented 3 months ago

The menu could offer a download and upload speed limit setting. A drop down menu with "unlimited" and a few options (a range/selection of powers of two) is sufficient.

I don't recall ever seeing this in any other installer, so I think we are doing well enough by having a "Pause" button. This should be sufficient if you are in a video call or something and need to stop the updater to free up bandwidth.

Other remaining items have been moved to dedicated issues.