Detecting new versions of mod / rapid integration
Moderators: Moderators, Lobby Developers, SPADS AutoHost
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Detecting new versions of mod / rapid integration
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!"?
Re: SPADS AutoHost beta release
You don't need to restart SPADS to host a new mod.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!"?
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).
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: SPADS AutoHost beta release
Does it pay attention to pool/packages downloads?
Re: SPADS AutoHost beta release
It doesn't care, as it uses unitsync to load the archives.Forboding Angel wrote:Does it pay attention to pool/packages downloads?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: SPADS AutoHost beta release
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
Wish I had known about that command a month ago -_- Derpface
Re: SPADS AutoHost beta release
What do you mean by "doesn't work with rapid, at all" ?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.
As I said in my previous post:
I believe rapid puts files in some "pool" directory, so of course it won't trigger archive auto-reloading.SPADS only monitors the "maps", "mods" and "games" sub-directories of your Spring data directory
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.
Re: SPADS AutoHost beta release
It is, see https://github.com/spring/spring/blob/d ... lArchive.h for the specifics.bibim wrote:I don't know much about rapid. If "pool" is a standard sub-directory of Spring data directory
Re: SPADS AutoHost beta release
Ok thanks.
Then actually I guess monitoring the "packages" directory modification time should do the job.
I added it in Spads 0.11.7a.
Then actually I guess monitoring the "packages" directory modification time should do the job.
I added it in Spads 0.11.7a.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43