Because there's a small issue: pr-downloader puts the stuff in a folder called:
Code: Select all
springdatadir/engine/103.0/
Code: Select all
springdatadir/engine/103.0-linux64/
Moderators: Moderators, Lobby Developers, SPADS AutoHost
Code: Select all
springdatadir/engine/103.0/
Code: Select all
springdatadir/engine/103.0-linux64/
SPADS just retrieves the official Spring static binary packages and extracts the files required for autohosting only.Jools wrote:How does spads download a new engine if this isn't found?
No, SPADS doesn't use pr-downloader.Jools wrote:Does it use pr-downbloader?
Sure, if you don't want to let SPADS core auto-manage Spring engines, you can call the SpadsUpdater module from a plugin instead (in particular the setupSpring function).Jools wrote:Would it be possible to have a an accessor to the module in spads that loads those files? Because it's obviously better to just download what you need, but ity's also better to download the engine before you restart the autohost. I'm thinking about the DownLoadArchives and SetEngine plugins.
Why do you need several spads.conf files?Jools wrote:the problem I have is finding the path and name of the config file itself, I do not always have it called spads.conf
In case I need to write to one conf file while another host is running. That way you can take down one host and do maintenance without affecting the others.bibim wrote:Why do you need several spads.conf files?Jools wrote:the problem I have is finding the path and name of the config file itself, I do not always have it called spads.conf
[/quote]bibim wrote:Also, fortunately you don't need to edit the spads.conf file each time you want to change Spring version. You just need to use a config macro for the autoManagedSpringVersion setting, so that you can declare the Spring version as command line parameter.
There is a much simpler way to do that using config macros. You don't need to actually write a new conf file each time you change Spring version.Jools wrote:In case I need to write to one conf file while another host is running. That way you can take down one host and do maintenance without affecting the others.bibim wrote:Why do you need several spads.conf files?
Sure, config macros are explained in this post.Jools wrote:Are there any examples of this? I'm rusty with perl/spads again.
Code: Select all
autoManagedSpringVersion:%mySpringVersion%
Code: Select all
./spads.pl etc/spads.conf mySpringVersion=104.0
I'm not restarting via the command line but via spads method restartAfterGame(). Would it be possible to pass that parameter to that function instead?bibim wrote: In your case, you could edit your spads.conf so that the autoManagedSpringVersion setting is defined using a config macro:Once you have done that, you just need to launch SPADS adding the config macro definition as command line parameter, for example:Code: Select all
autoManagedSpringVersion:%mySpringVersion%
Don't hesitate if you need more details/explanations.Code: Select all
./spads.pl etc/spads.conf mySpringVersion=104.0
Code: Select all
!restart empty mySpringVersion=104.0