Automagic svn updating for mods

Automagic svn updating for mods

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Automagic svn updating for mods

Post by Forboding Angel »

Look I realize the amount of crap this would cause, but hear me out. I know this is the way that ca downloader works and my idea is a little different.

Is there any way that spring could piggyback onto tortoisesvn or some sort of program like that (or perhaps built into the engine) that would download revisions at intervals set by the user?

THis would make patches a total breeze. I know there are obvious downsides to it... My question is: Is it doable in a way that would work?

What I'm thinking is that a user could jsut enter an svn url to "Install" a mod. It would be a very bold step imo and one that might be worth the trouble of doing it.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Automagic svn updating for mods

Post by thesleepless »

seems reasonable, wouldn't need to use tortoise, just make the downloader app use svn directly. but then it needs to compile it into a sd7 or sdz.
so to update it'd need to extract the sd7, then svn update, then recompress it.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Automagic svn updating for mods

Post by Tobi »

AFAIK BD and det are already working on a pooled archive download / update format.

At least Spring engine supports .sdp, Spring data pool, already.

This way you get the advantages of incremental updates for mods (like CA has), without the disadvantages of using SVN for this purpose.

Full installs are already supposed to be a breeze using SpringDownloader or the downloader functionality included in SpringLobby, although it still has some bugs.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Automagic svn updating for mods

Post by AF »

spring data pool?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Automagic svn updating for mods

Post by Tobi »

Yes, basically there's a big folder (the pool) with files named after their hash (MD5, if I recall correctly).

A .sdp mod then contains a single file, which is a binary file listing filename,pool hash,crc32 hash of all files in the mod.

This means when getting new version of a mod you only need to download the files that are changed, and also you don't have to bother to figure out which files changed, as modder.

(Disclaimer: That's what I understood from it, it may be inaccurate.)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Automagic svn updating for mods

Post by Forboding Angel »

wow, that's pretty neat tobi. I'm glad someone else thought of it. I'm ok with the lobby doing it, however, I am extremely not cool with an external app (e.g. springdownloader) being the only way of doing it.

Lets be honest, having 4 apps open just when opening the lobby is a lil silly.
User avatar
det
Moderator
Posts: 737
Joined: 26 Nov 2005, 11:22

Re: Automagic svn updating for mods

Post by det »

So, you are willing to run tortoise svn as some really awkward update program, but not SD :x

(Tobi describes sdp mostly correctly)

btw: the way cadownloader has almost always worked is what Tobi describes about sdp. The only difference now is that the engine supports it natively, so no need to zip as final step of update.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Automagic svn updating for mods

Post by Forboding Angel »

No Det, I meant using the tortoise engine or base or whatever it's called. It would be retarded to expect normal users to use tortoise.

The whole point is so that spring would do the updating for you, and patches would be tiny.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Automagic svn updating for mods

Post by Tobi »

det/BD: How's progress on integrating the updating process into SL by the way?
User avatar
det
Moderator
Posts: 737
Joined: 26 Nov 2005, 11:22

Re: Automagic svn updating for mods

Post by det »

I'm doing no work in integrating sdp downloader into SL. Last I heard from BD, network code was working and it just needed a GUI.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Automagic svn updating for mods

Post by Regret »

Only thing that bothers me as a player with CA-like update scheme is the replay watching. You have to (almost always) download another version if you want to watch an uploaded replay. Same goes for watching your older replays.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Automagic svn updating for mods

Post by CarRepairer »

Regret wrote:Only thing that bothers me as a player with CA-like update scheme is the replay watching. You have to (almost always) download another version if you want to watch an uploaded replay. Same goes for watching your older replays.
It's refreshing to hear a legitimate complaint about CA's rapid development scheme. However, the test revisions are for serious playtesting only, not intended for the public at large - even if said public doesn't exist yet. Stables are released less than once a month (except in the previous case but that was an exception) thus you'll have little trouble viewing replays for these stables for all your recently played games.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Automagic svn updating for mods

Post by smoth »

but because it is an svn system you can get that version unlike other projects.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Automagic svn updating for mods

Post by lurker »

With sdp you can have every revision with less than double the space of a single zip. The only real issue here is lobbies and spring not using the version tag as a hierarcy, instead making a huge mod list.
Post Reply

Return to “Feature Requests”