How to get pr-downloader to download into an archive?

How to get pr-downloader to download into an archive?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

How to get pr-downloader to download into an archive?

Post by Jools »

abma wrote:
Forboding Angel wrote:
abma wrote: to convert .sdp to .zip use MakeZip from RapidTools:

http://springrts.com/wiki/RapidTools#MakeZip

(very likely compiles only on linux atm)
No offense, but how in the hell is that supposed to be useful/helpful to a windows user?
a windows user can compile/fix it. i guess i don't understand the question.
This is still not clear to me. How do I get something usable out of the stuff that pr-downloader downloads?

This is no longer about lups in case anyone thought that. I just want to test a beta version of my game and that can not be found on http://packages.springrts.com/builds/

I don't understand how the question is not clear? I want to commit something with rapid and download it into a form that can be shared to other people in a simple way. A zip file is a simple way. A pool of data is not.

Since the game is already synced with rapid it would be convenient to use that, as a test version is already made in each commit. I do not want to make own zipped versions that are distributed on various third party download sites.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: How to get pr-downloader to download into an archive?

Post by gajop »

Is it not possible to use pr-downloader directly like the old Python "rapid" program?
Have you tried "pr-fownloader --dump-sdp <name>"? If that doesn't work this functionality should be added much like the list/search install/available packages that's also not present afaik.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: How to get pr-downloader to download into an archive?

Post by Jools »

C:\Users\Jools>pr-downloader --filesystem-writepath U:tmp --dump-sdp xta:test
pr-downloader 0.7-159-gd9842d7
[Info] Using filesystem-writepath: U:tmp
[Error] ../../tools/pr-downloader/src/FileSystem/FileSystem.cpp:87:parseSdp(): C
ould not open xta:test
[Info] Download complete!

C:\Users\Jools>pr-downloader --filesystem-writepath U:tmp --dump-sdp ba:latest
pr-downloader 0.7-159-gd9842d7
[Info] Using filesystem-writepath: U:tmp
[Error] ../../tools/pr-downloader/src/FileSystem/FileSystem.cpp:87:parseSdp(): C
ould not open ba:latest
[Info] Download complete!
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: How to get pr-downloader to download into an archive?

Post by abma »

--dump-sdp just prints the contents of an .sdp file... it expects a filename as parameter not a tag, ie.:
$ pr-downloader --dump-sdp .spring/packages/a619e190f6be77d6ce2cbf09edf0c77a.sdp
pr-downloader 0.7-161-ga721c5a
[Info] md5 (filename in pool) crc32 size filename
[Info] 8bfc2df4cb39916a803c70bda056dc71 00DB32E8 89 .gitattributes
[Info] fc0356e1e648120379c4a432d854cada 00DAF858 33 anims/areamex_def.txt
[Info] c0ec9f82335b84ab5ab5b00646181252 00DAF8F8 64 anims/ca/.directory
...
MakeZip from RapidTools partly has this feature you are requesting:

http://springrts.com/wiki/RapidTools#MakeZip

whats wrong to request others downloading with pr-downloader / springlobby / other lobbies which support rapid?
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: How to get pr-downloader to download into an archive?

Post by Jools »

abma wrote:--dump-sdp just prints the contents of an .sdp file... it expects a filename as parameter not a tag, ie.:
Image

Then I suggest editing the help file to reflect the difference i syntax. Because 'name' equals 'tag' with other commands, such as when using --download-game.
abma wrote: whats wrong to request others downloading with pr-downloader / springlobby / other lobbies which support rapid?
Nothing is wrong with that. The problem is not downloading the latest version of a game/map/engine because user is not synced, this is game development forum and I would like to find out how to get hold of test versions that are created with rapid.

I guess I don't really have to have the files per-se if I can just somehow ensure the integrity in some other way. Yes, it's easy with springie hosts, you just use rapid tag. But how to do it with spads?

I also don't know exactly how to install pr-downloader on linux. 'sudo apt-get install pr-downloader' doesn't work, do I have to add a third party repo somehow?


Here's what the latest archive from github conatins:
Image

The 'static' in the name implies linux but I have no idea who to install those files :roll:
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: How to get pr-downloader to download into an archive?

Post by abma »

Jools wrote: how to get hold of test versions that are created with rapid.
thats easy: for example:

Code: Select all

pr-downloader ba:test
i have no clue about how to do that with spads. which game do you want to download?
Jools wrote:I also don't know exactly how to install pr-downloader on linux. 'sudo apt-get install pr-downloader' doesn't work, do I have to add a third party repo somehow?
also easy: download a static build of spring, it contains pr-downloader.

Jools wrote:Here's what the latest archive from github conatins:

where did you get this archive from? it should be deleted as its old / the spring package contains it as well.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: How to get pr-downloader to download into an archive?

Post by Jools »

abma wrote:also easy: download a static build of spring, it contains pr-downloader.
Thank you!
abma wrote:
Jools wrote:Here's what the latest archive from github conatins:
where did you get this archive from? it should be deleted as its old / the spring package contains it as well.
I got it from http://springrts.com/wiki/Pr-downloader, first link on top of page.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: How to get pr-downloader to download into an archive?

Post by abma »

Jools wrote:I got it from http://springrts.com/wiki/Pr-downloader, first link on top of page.
thanks, updated the wiki.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: How to get pr-downloader to download into an archive?

Post by Jools »

I grabbed the pr-downloader from linux 64-bit static and it says it can't find the command although the file is there. Also it shows this:
Image

That means it has to be built from git clone to get all dependencies right?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: How to get pr-downloader to download into an archive?

Post by abma »

That means it has to be built from git clone to get all dependencies right?
no.

sth. like:

Code: Select all

apt-get install libcurl4-openssl-dev
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: How to get pr-downloader to download into an archive?

Post by Forboding Angel »

Jools, this might be of some use to you:

https://drive.google.com/open?id=0B25Bb ... authuser=0

Put it in the same folder as spring.exe and run the bat. Makes pr downloader a little bit easier to use if you aren't familiar with it.
Post Reply

Return to “Game Development”