[plugin] Dedimania

Post here every finished plugin

Moderator: NADEO

Post Reply
User avatar
aseco
Posts: 99
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

[plugin] Dedimania

Post by aseco » 30 Dec 2010, 18:43

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
Last edited by aseco on 14 Jan 2011, 11:00, edited 3 times in total.
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic

reaby
Posts: 914
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [plugin] Dedimania

Post by reaby » 30 Dec 2010, 19:34

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 ?

User avatar
TheM
Posts: 1439
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [plugin] Dedimania

Post by TheM » 30 Dec 2010, 22:41

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.
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).

User avatar
farfa
Nadeo
Nadeo
Posts: 599
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: [plugin] Dedimania

Post by farfa » 30 Dec 2010, 22:48

It's possible, in edit the plugin file to change the command name records to dedirec ;)
Also known as: satanasdiabolo

User avatar
TheM
Posts: 1439
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [plugin] Dedimania

Post by TheM » 30 Dec 2010, 22:49

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.
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).

User avatar
aseco
Posts: 99
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: [plugin] Dedimania

Post by aseco » 31 Dec 2010, 10:23

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 :)
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic

reaby
Posts: 914
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [plugin] Dedimania

Post by reaby » 31 Dec 2010, 13:16

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.

reaby
Posts: 914
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [plugin] Dedimania

Post by reaby » 01 Jan 2011, 17:21

OK, got dedimania working now. it still whines about the log.
Another issue, when player gets new record, there is no message at chat.

reaby
Posts: 914
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [plugin] Dedimania

Post by reaby » 01 Jan 2011, 18:02

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}

User avatar
Knutselmaaster
Posts: 1267
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [plugin] Dedimania

Post by Knutselmaaster » 02 Jan 2011, 00:12

Please Reaby, edit your latest post instead of creating a monologue...
It is getting kind of hard to follow ;)

Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 2 guests