Detecting new versions of mod / rapid integration

Detecting new versions of mod / rapid integration

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost

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

Detecting new versions of mod / rapid integration

Post by Forboding Angel » 31 Mar 2013, 05:31

When I push out a new version of Evo... Currently I have to stop the hosts, update, and restart them. Is there a way I can just update and them be like "ohay new version, rehosting!"?
0 x

User avatar
bibim
Lobby Developer
Posts: 901
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim » 31 Mar 2013, 13:14

Forboding Angel wrote:When I push out a new version of Evo... Currently I have to stop the hosts, update, and restart them. Is there a way I can just update and them be like "ohay new version, rehosting!"?
You don't need to restart SPADS to host a new mod.

By default, SPADS already does what you describe (cf autoReloadArchivesMinDelay global setting and modName hosting setting). However, regarding the auto reload archives feature, SPADS only monitors the "maps", "mods" and "games" sub-directories of your Spring data directory. If you want to reload the archives by hand, you can use the !reloadArchives command.

Anyway, in both cases (auto-reload and !reloadArchives) SPADS will auto-rehost by itself once a new version of current mod is seen locally. If players are in the battle lobby, it will wait for them to leave (you can still force it with !rehost command).
0 x

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

Re: SPADS AutoHost beta release

Post by Forboding Angel » 31 Mar 2013, 13:57

Does it pay attention to pool/packages downloads?
0 x

User avatar
bibim
Lobby Developer
Posts: 901
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim » 31 Mar 2013, 14:00

Forboding Angel wrote:Does it pay attention to pool/packages downloads?
It doesn't care, as it uses unitsync to load the archives.
0 x

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

Re: SPADS AutoHost beta release

Post by Forboding Angel » 31 Mar 2013, 14:48

Well, that part of it doesn't work with rapid, at all. I gave it several hours to update (was busy doing other junk). It never did, but I did it manually with reloadarchives.

Wish I had known about that command a month ago -_- Derpface
0 x

User avatar
bibim
Lobby Developer
Posts: 901
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim » 31 Mar 2013, 15:14

Forboding Angel wrote:Well, that part of it doesn't work with rapid, at all. I gave it several hours to update (was busy doing other junk). It never did, but I did it manually with reloadarchives.
What do you mean by "doesn't work with rapid, at all" ?

As I said in my previous post:
SPADS only monitors the "maps", "mods" and "games" sub-directories of your Spring data directory
I believe rapid puts files in some "pool" directory, so of course it won't trigger archive auto-reloading.

I don't know much about rapid. If "pool" is a standard sub-directory of Spring data directory, I could make SPADS monitors it as well for automatic archive reloading.
0 x

Kloot
Spring Developer
Posts: 1865
Joined: 08 Oct 2006, 16:58

Re: SPADS AutoHost beta release

Post by Kloot » 31 Mar 2013, 15:31

bibim wrote:I don't know much about rapid. If "pool" is a standard sub-directory of Spring data directory
It is, see https://github.com/spring/spring/blob/d ... lArchive.h for the specifics.
0 x

User avatar
bibim
Lobby Developer
Posts: 901
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim » 31 Mar 2013, 15:46

Ok thanks.
Then actually I guess monitoring the "packages" directory modification time should do the job.

I added it in Spads 0.11.7a.
0 x

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

Re: SPADS AutoHost beta release

Post by Forboding Angel » 31 Mar 2013, 21:19

<3 :-)
0 x

Post Reply

Return to “SPADS AutoHost”

cron