Page 1 of 9

[plugin] Dedimania

Posted: 30 Dec 2010, 18:43
by aseco
This is a plugin for the Dedimania network, it manages records that are driven on your servers and sends them to a big online database. (http://www.dedimania.com)

There is also a chat command "/dedimania" that will display the ranking table for the current challenge.

Another feature is, that you can set all the messages, that are displayed, in the config file.
A detailed list of config settings that you can use and its standard values:

Code: Select all

plugins.Flo\Dedimania.password = ! this has no standard value, you need to set it !
plugins.Flo\Dedimania.notifications = On
plugins.Flo\Dedimania.notifyNewFirstRecord = '%player% drove new first Dedimania record with a time of %time%!'
plugins.Flo\Dedimania.notifyNewRecord = '%player% just ranked %rank% on Dedimania with a time of %time%!'
plugins.Flo\Dedimania.notifyImprovedFirstRecord = '%player% beat his own first Dedimania record with a time of %time%!'
plugins.Flo\Dedimania.notifyImprovedRecord = '%player% moved on the %rank% Dedimania rank by finishing with a time of %time%!'
plugins.Flo\Dedimania.notifyImprovedRecordTimeOnly = '%player% secured his %rank% Dedimania rank by driving a time of %time%!'
You can download the plugin here:
http://files.manialive.com/plugins/Dedimania_r1828.zip
Or within the ManiaLink Browser manialive

Image

Re: [plugin] Dedimania

Posted: 30 Dec 2010, 19:34
by reaby
issue on windows & xampp...
[19:25:54|Dedimania] Starting authentication on server ...
[19:25:54|Dedimania] Please wait, opening session ...
[19:25:57|Dedimania] Starting authentication on server ...
[19:25:57|Dedimania] Please wait, opening session ...
[19:26:00|Dedimania] Starting authentication on server ...
[19:26:00|Dedimania] Please wait, opening session ...
[19:26:03|Dedimania] Starting authentication on server ...
[19:26:03|Dedimania] Please wait, opening session ...
[19:26:06|Dedimania] Starting authentication on server ...
[19:26:06|Dedimania] Please wait, opening session ...

it keeps opening my php folder every time it says opening session. any ideas where's the problem ?

Re: [plugin] Dedimania

Posted: 30 Dec 2010, 22:41
by TheM
Nice Flo, thanks for this plugin!
Only request to you: is it possible to use something like /dedirecs instead of /records?
There might come a plugin that supports local records, this might cause conflicts.

Re: [plugin] Dedimania

Posted: 30 Dec 2010, 22:48
by farfa
It's possible, in edit the plugin file to change the command name records to dedirec ;)

Re: [plugin] Dedimania

Posted: 30 Dec 2010, 22:49
by TheM
farfa wrote:It's possible, in edit the plugin file to change the command name records to dedirec ;)
Yeah, I understand ;) It was more a "request" to Flo, so he might changes the command name in the future release.

Re: [plugin] Dedimania

Posted: 31 Dec 2010, 10:23
by aseco
reaby wrote:issue on windows & xampp...
[19:25:54|Dedimania] Starting authentication on server ...
[19:25:54|Dedimania] Please wait, opening session ...
[19:25:57|Dedimania] Starting authentication on server ...
[19:25:57|Dedimania] Please wait, opening session ...
[19:26:00|Dedimania] Starting authentication on server ...
[19:26:00|Dedimania] Please wait, opening session ...
[19:26:03|Dedimania] Starting authentication on server ...
[19:26:03|Dedimania] Please wait, opening session ...
[19:26:06|Dedimania] Starting authentication on server ...
[19:26:06|Dedimania] Please wait, opening session ...

it keeps opening my php folder every time it says opening session. any ideas where's the problem ?
Um, can you give me more information about this issue?
I would like to see some of the files in your logs directory:
  • log_Error.txt (if there is any)
  • Dedimania_log_XmlRpc.txt (if there is one)
  • threading_proc_1.txt (are there files with different numbers also?)
Thanks!

PS: my first thought is, that you didn't configure your php path correctly ... can you please check the config.ini if you set the correct path to your php executable?
TheM wrote:Nice Flo, thanks for this plugin!
Only request to you: is it possible to use something like /dedirecs instead of /records?
There might come a plugin that supports local records, this might cause conflicts.
You're right, will fix this in the next release :)

Re: [plugin] Dedimania

Posted: 31 Dec 2010, 13:16
by reaby
problem was in config.ini, you apparently need to add php.exe after the path.
Ok, then i ran into problem with Logger.php, so as it's problem with manialive i opened an issue.

Re: [plugin] Dedimania

Posted: 01 Jan 2011, 17:21
by reaby
OK, got dedimania working now. it still whines about the log.
Another issue, when player gets new record, there is no message at chat.

Re: [plugin] Dedimania

Posted: 01 Jan 2011, 18:02
by reaby
ok.. sorry for the spam.. but i get folloing error when people gets new dedimania time:

Code: Select all

-> ErrorException with code 0
   Undefined variable: record
 - in
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Utilities\String.php on
     line 101
 - Stack: #0
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Utilities\String.php(101
     ): ManiaLive\Application\ErrorHandling::createExcpetionFromError(8,
     'Undefined varia...', 'F:\Trackmania_d...', 101, Array)
          #1
     F:\Trackmania_dedicated\sn12\libraries\ManiaLivePlugins\Flo\Dedimania\Ded
     imania.php(810): ManiaLive\Utilities\String::formatRank(24)
          #2
     F:\Trackmania_dedicated\sn12\libraries\ManiaLivePlugins\Flo\Dedimania\Ded
     imania.php(705):
     ManiaLivePlugins\Flo\Dedimania\Dedimania->prepareMessage(Object(ManiaLive
     Plugins\Flo\Dedimania\Structures\Record), '%player% just r...')
          #3 [internal function]:
     ManiaLivePlugins\Flo\Dedimania\Dedimania->onPlayerNewBestTime(Object(Mani
     aLive\DedicatedApi\Structures\Player), 30300, 30070)
          #4
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Data\Event.php(33):
     call_user_func_array(Array, Array)
          #5
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Event\Dispatcher.php(43)
     :
     ManiaLive\Data\Event->fireDo(Object(ManiaLivePlugins\Flo\Dedimania\Dedima
     nia))
          #6
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Data\Storage.php(304):
     ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Data\Event))
          #7 [internal function]:
     ManiaLive\Data\Storage->onPlayerFinish(6, 'aunollo', 30070)
          #8
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\DedicatedApi\Callback\Ev
     ent.php(19): call_user_func_array(Array, Array)
          #9
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Event\Dispatcher.php(43)
     :
     ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLive\Data\Stora
     ge))
          #10
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\DedicatedApi\Connection.
     php(117):
     ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
     ck\Event))
          #11
     F:\Trackmania_dedicated\sn12\libraries\ManiaLive\Application\AbstractAppl
     ication.php(120): ManiaLive\DedicatedApi\Connection->executeCallbacks()
          #12 F:\Trackmania_dedicated\sn12\bootstrapper.php(13):
     ManiaLive\Application\AbstractApplication->run()
          #13 {main}

Re: [plugin] Dedimania

Posted: 02 Jan 2011, 00:12
by Knutselmaaster
Please Reaby, edit your latest post instead of creating a monologue...
It is getting kind of hard to follow ;)