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: 14673
Joined: 17 Nov 2005, 02:43

Detecting new versions of mod / rapid integration

Post by Forboding Angel »

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!"?
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim »

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).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: SPADS AutoHost beta release

Post by Forboding Angel »

Does it pay attention to pool/packages downloads?
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim »

Forboding Angel wrote:Does it pay attention to pool/packages downloads?
It doesn't care, as it uses unitsync to load the archives.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: SPADS AutoHost beta release

Post by Forboding Angel »

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
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim »

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.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: SPADS AutoHost beta release

Post by Kloot »

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.
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: SPADS AutoHost beta release

Post by bibim »

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

I added it in Spads 0.11.7a.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: SPADS AutoHost beta release

Post by Forboding Angel »

<3 :-)
Post Reply

Return to “SPADS AutoHost”