pr-downloader (cross-platform console downloader)

pr-downloader (cross-platform console downloader)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

pr-downloader (cross-platform console downloader)

Post by abma »

see the wiki page for up to date info:

http://springrts.com/wiki/Pr-downloader
Last edited by abma on 20 May 2012, 15:41, edited 5 times in total.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: console downloader for win32

Post by knorke »

did not test but i guess this is more for being integrated with ie lobbies, not so much for players?
like you have a launcher then you could add a "check for updates" button which would then run this downloader?
if so it might be usefull if it could return stuff to the calling programm ie "downloaded game version 1.23", "download failed", "file already exists" etc
tragic
Posts: 4
Joined: 08 May 2011, 12:00

Re: console downloader for win32

Post by tragic »

Are the engine core files stored anywhere in downloadable form? I'd be interested in adding the ability to install the spring engine of a specific version.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: console downloader for win32

Post by hoijui »

abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: console downloader for win32

Post by abma »

new release (0.1.2):

notable change: supports partial downloading with verification + fastest mirror selecting

currently working on an c-api to make it usable for other programs: https://github.com/abma/pr-downloader/b ... wnloader.h
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: pr-downloader (cross-platform console downloader)

Post by abma »

released 0.3:
- use atomic writes for the rapid downloader
- unknown parameters are downloaded, allows "pr-downloader zk:stable"
- don't use 100% cpu on http-download
- set exit code to 1 if something failed
- ...
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: pr-downloader (cross-platform console downloader)

Post by Forboding Angel »

That this please be added to the linux installs?
varikonniemi
Posts: 451
Joined: 03 Jul 2011, 11:54

Re: pr-downloader (cross-platform console downloader)

Post by varikonniemi »

Forboding Angel wrote:That this please be added to the linux installs?
Pardon my ignorance, but how does this differ from rapid which is already in the spring repos?
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: pr-downloader (cross-platform console downloader)

Post by koshi »

wiki wrote:pr-downloader is a console cross-platform download tool for spring. it can download games and maps supporting currently all main download systems, including rapid, plasma and upq.
varikonniemi
Posts: 451
Joined: 03 Jul 2011, 11:54

Re: pr-downloader (cross-platform console downloader)

Post by varikonniemi »

Does this mean that it has all these tools functionality built-in, or is it just a frontend to use all these three tools if available from one interface?

I am wondering should i install this and learn to use a new tool just as i have got some kind of grip over how to use rapid. If this is just a frontend i see no benefit, if this is a much more advanced 3-in-1 standalone c++ program, then i can see the benefit.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: pr-downloader (cross-platform console downloader)

Post by abma »

varikonniemi wrote:Does this mean that it has all these tools functionality built-in, or is it just a frontend to use all these three tools if available from one interface?
all functionality is built in. the plan is, to make a lib from it and it can be hopefully used everywhere then... (lobbies/autohosts/...?!)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: pr-downloader (cross-platform console downloader)

Post by Forboding Angel »

linux weblobby...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: pr-downloader (cross-platform console downloader)

Post by AF »

UPQ?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: pr-downloader (cross-platform console downloader)

Post by abma »

@Forb:

thats up to the packagers, if libcurldev is available, pr-downloader is compiled...

@AF:

if you mean, that pr-downloader supports upq... yes.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: pr-downloader (cross-platform console downloader)

Post by CarRepairer »

Would I need to bug hoijui to make a jna java wrapper for this too, like he did with unitsync?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: pr-downloader (cross-platform console downloader)

Post by hoijui »

last time i looked at it, there was no propper/usable C interface yet (which is what i would need for a wrapper).
is this now done, abma?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: pr-downloader (cross-platform console downloader)

Post by abma »

hoijui wrote:is this now done, abma?
no, but i think i've now a plan: https://github.com/abma/pr-downloader/issues/6

i never made a interface before, this is why prefer(ed) doing other things :-/

also there are/were still some other issues / feature requests in pr-downloader. meh... as you all know, a day should have 48 hours ;)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: pr-downloader (cross-platform console downloader)

Post by abma »

update to 0.6:
-parallel http downloads (because of this, progressbar is gone, will be fixed later)
-7zip support added
-engine download (currently windows / linux only, for mac support some zip lib has to be added)

for example

Code: Select all

pr-downloader --download-engine 89.0
should download the engine to ~/.spring/engine/89.0 (on linux) or My Documents\My Games\Spring\Engine\89.0 on windows.

its badly tested again... please report bugs! fixes are welcome :)
Post Reply

Return to “Engine”