yep that's the easy way we planned to go for now
-> allowing to set the match settings file name specific to each server login
(there's something more complex planned but that will take more time)
ManiaControl Feedback and Bugreporting for Release v0.14
Moderators: Wabbitface, Jocy, steeffeen, NADEO
Re: ManiaControl Feedback and Bugreporting for Release v0.14
I found one thing in regards to timers..
Not sure if it is a feature or a bug
When I set a timer to run only once.. it gets run immediately and then again after the time it has been set.
So it runs twice ..
Cheers,
Charly
Not sure if it is a feature or a bug

When I set a timer to run only once.. it gets run immediately and then again after the time it has been set.
So it runs twice ..
Cheers,
Charly
Re: ManiaControl Feedback and Bugreporting for Release v0.14
thanks for the report!chco wrote:When I set a timer to run only once.. it gets run immediately and then again after the time it has been set.
So it runs twice ..
should be fixed in the next version
Re: ManiaControl Feedback and Bugreporting for Release v0.14
There's one thing that I think I should mention in regards to the mapmanager.steeffeen wrote:yep that's the easy way we planned to go for now
-> allowing to set the match settings file name specific to each server login
(there's something more complex planned but that will take more time)
You have a setting there to change the matchsetting.txt file (you name it tracklist.txt).
I've set it to a different name and that works. Problems is that after MC has been shutdown and the Dedi server.. the setting is back to tracklist.txt. Really annoying that is.
The reason I mention that is because, for the time being, I wrote a small plugin that does evaluate commandline options from Manicacontrol and reads from there the name for the matchsetting .txt file. This way I can easily switch between Royal and Elite, just by running MC with the parameter needed.
The problem I have is with the settingsmanager.
This gives me a success (true value) :
Code: Select all
if(!$this->maniaControl->settingManager->initSetting("MapManager", self::SETTING_MAPLIST_FILE, $file))
Could there be an issue with either the settingsmanager or the combination of the mapmanager and the settingsmanager ?
Re: ManiaControl Feedback and Bugreporting for Release v0.14
well the mapmanager class uses another setting as the one defined therechco wrote:Yet when I go into the settings for the mapmanager.. tracklist.txt is in there again. Even after skipping a few maps and such.Code: Select all
if(!$this->maniaControl->settingManager->initSetting("MapManager", self::SETTING_MAPLIST_FILE, $file))
Could there be an issue with either the settingsmanager or the combination of the mapmanager and the settingsmanager ?
simply because the class has a namespace that isn't given by you
the full class name is 'ManiaControl\Maps\MapManager'
also an INIT doesnt change the current value
you need to SET the value
but it usually shouldn't reset the setting if you have changed it properly (ingame)
or did you just try that hacky way of changing it?
Re: ManiaControl Feedback and Bugreporting for Release v0.14
Well actually... I posted the wrong code
This code I tried to see if it made a difference, since it (initsetting) calls the saveSetting procedure.
This is the code used :
In regards to the class name.. you are right. That might be a solution. That means the setsetting procedure accepts classnames that have not been previously initialized, correct ? As it returns true for saving the setting.
And creating a plugin allowing to read arguments from the commandline isn't hacky ..it's something we need currently and this was the safest approach.
The tracklist.txt setting is changed from within the game, so the way it is intended. I have now noticed the setting is gone after the server itself has been shutdown (so php and mysql also). Rebooting the server drops that setting.

This is the code used :
Code: Select all
if(!$this->maniaControl->settingManager->setSetting("MapManager", self::SETTING_MAPLIST_FILE, $file))
{
$this->maniaControl->chat->sendInformation('Error saving '.$file." into mapmanager settings", null, false);
}
else
{
And creating a plugin allowing to read arguments from the commandline isn't hacky ..it's something we need currently and this was the safest approach.
The tracklist.txt setting is changed from within the game, so the way it is intended. I have now noticed the setting is gone after the server itself has been shutdown (so php and mysql also). Rebooting the server drops that setting.
steeffeen wrote: well the mapmanager class uses another setting as the one defined there
simply because the class has a namespace that isn't given by you
the full class name is 'ManiaControl\Maps\MapManager'
also an INIT doesnt change the current value
you need to SET the value
but it usually shouldn't reset the setting if you have changed it properly (ingame)
or did you just try that hacky way of changing it?
Statistics manager
Quick question regarding the statisticsmanager .. Does it take various servers environment into account, like e.g. the Karma plugin does? Cause, as far as I can see, if you run the server as Elite or Royal, all the stats are accumulated.
Cheers,
Charly
Cheers,
Charly
Re: ManiaControl Feedback and Bugreporting for Release v0.14
Hmmm.. if I have MP running the Royal server. Later it runs the Elite server (both different dedi masterserver accounts). If I open the stats in the Elite server, it gives me the total stats (both Elite AND Royal)..
I could be mistaken, but in the code I also do not see it store the game environment, but perhaps you don't store that but use different tables. Did not check that. But.. it does show all stats when viewed in the maniacontrol panel->statistics window.
I could be mistaken, but in the code I also do not see it store the game environment, but perhaps you don't store that but use different tables. Did not check that. But.. it does show all stats when viewed in the maniacontrol panel->statistics window.
Who is online
Users browsing this forum: No registered users and 1 guest