A quick way to load gamemodesettings to a server. It will set the given rules on connection (if server is empty) or when last player disconnects and server then is empty. After the rules has changed it skips to nextmap to make all changes.
It will also reapply the settings if they have changed. On the disconnection of last player that is. You will still be able to set custom rules for a single game and such.
From 0.1.1 You can trigger a load manually (admins only) by using /loadconfig SETTINGFILENAME.
I tried to make it so it will accept and check any gamemode settings. If it isn't the correct type of value it should spit out an error.
Feel free to give any feedback you have.
Idea is to make it easy to change settings and load them on multiple servers. With ManiaLives config within ini option you can still override the config value and load a special settings file for a specific server.
See -> http://forum.maniaplanet.com/viewtopic.php?f=46&t=531
If you also run my ChangeMap plugin you can use a row like..
Code: Select all
playlist = default
This, if succesful would in console look like..
Code: Select all
[02:58:52] [ConfigLoader] v0.2.0
[02:58:52] [ConfigLoader]: Importing Settings.txt
[02:58:52] [ConfigLoader]: loadSettings triggered.
[02:58:52] [ConfigLoader]: Imported settings file "Settings" seems to be empty
http://skynet-irc.com/shootmania/files/ ... der020.zip
Changelog
0.2.0 http://skynet-irc.com/shootmania/files/ ... der020.zip
Reupload and some fixes and expanded config options.
0.1.1
Added loadconfig command.
Added support for my ChangeMap plugin exposed playlist load function.
0.1.0
First release