[plugin] Dedimania

Post here every finished plugin

Moderator: NADEO

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

Re: [plugin] Dedimania

Post by TheM » 04 Jan 2011, 12:48

Driving a record gives me the following error (similar to reaby's):

Code: Select all

 -> ErrorException with code 0
    Undefined variable: record
  - in E:\Servers\ManiaLive\libraries\ManiaLive\Utilities\String.php on
      line 101
  - Stack: #0
      E:\Servers\ManiaLive\libraries\ManiaLive\Utilities\String.php(101):
      ManiaLive\Application\ErrorHandling::createExcpetionFromError(8,
      'Undefined varia...', 'E:\Servers\Mani...', 101, Array)
           #1
      E:\Servers\ManiaLive\libraries\ManiaLivePlugins\Flo\Dedimania\Dedimania.p
      hp(810): ManiaLive\Utilities\String::formatRank(16)
           #2
      E:\Servers\ManiaLive\libraries\ManiaLivePlugins\Flo\Dedimania\Dedimania.p
      hp(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), NULL, 53360)
           #4
      E:\Servers\ManiaLive\libraries\ManiaLive\Data\Event.php(33):
      call_user_func_array(Array, Array)
           #5
      E:\Servers\ManiaLive\libraries\ManiaLive\Event\Dispatcher.php(43):
      ManiaLive\Data\Event->fireDo(Object(ManiaLivePlugins\Flo\Dedimania\Dedima
      nia))
           #6
      E:\Servers\ManiaLive\libraries\ManiaLive\Data\Storage.php(304):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Data\Event))
           #7 [internal function]:
      ManiaLive\Data\Storage->onPlayerFinish(247, 'max1995', 53360)
           #8
      E:\Servers\ManiaLive\libraries\ManiaLive\DedicatedApi\Callback\Event.php(
      19): call_user_func_array(Array, Array)
           #9
      E:\Servers\ManiaLive\libraries\ManiaLive\Event\Dispatcher.php(43):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLive\Data\Stora
      ge))
           #10
      E:\Servers\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(116)
      :
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #11
      E:\Servers\ManiaLive\libraries\ManiaLive\Application\AbstractApplication.
      php(120): ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #12 E:\Servers\ManiaLive\bootstrapper.php(13):
      ManiaLive\Application\AbstractApplication->run()
           #13 {main}
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 » 04 Jan 2011, 14:23

TheM wrote:Driving a record gives me the following error (similar to reaby's):

Code: Select all

 -> ErrorException with code 0
    Undefined variable: record
  - in E:\Servers\ManiaLive\libraries\ManiaLive\Utilities\String.php on
      line 101
  - Stack: #0
      E:\Servers\ManiaLive\libraries\ManiaLive\Utilities\String.php(101):
      ManiaLive\Application\ErrorHandling::createExcpetionFromError(8,
      'Undefined varia...', 'E:\Servers\Mani...', 101, Array)
           #1
      E:\Servers\ManiaLive\libraries\ManiaLivePlugins\Flo\Dedimania\Dedimania.p
      hp(810): ManiaLive\Utilities\String::formatRank(16)
           #2
      E:\Servers\ManiaLive\libraries\ManiaLivePlugins\Flo\Dedimania\Dedimania.p
      hp(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), NULL, 53360)
           #4
      E:\Servers\ManiaLive\libraries\ManiaLive\Data\Event.php(33):
      call_user_func_array(Array, Array)
           #5
      E:\Servers\ManiaLive\libraries\ManiaLive\Event\Dispatcher.php(43):
      ManiaLive\Data\Event->fireDo(Object(ManiaLivePlugins\Flo\Dedimania\Dedima
      nia))
           #6
      E:\Servers\ManiaLive\libraries\ManiaLive\Data\Storage.php(304):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Data\Event))
           #7 [internal function]:
      ManiaLive\Data\Storage->onPlayerFinish(247, 'max1995', 53360)
           #8
      E:\Servers\ManiaLive\libraries\ManiaLive\DedicatedApi\Callback\Event.php(
      19): call_user_func_array(Array, Array)
           #9
      E:\Servers\ManiaLive\libraries\ManiaLive\Event\Dispatcher.php(43):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLive\Data\Stora
      ge))
           #10
      E:\Servers\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(116)
      :
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #11
      E:\Servers\ManiaLive\libraries\ManiaLive\Application\AbstractApplication.
      php(120): ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #12 E:\Servers\ManiaLive\bootstrapper.php(13):
      ManiaLive\Application\AbstractApplication->run()
           #13 {main}
Ouch, that's a stupid mistake ...
I'm about to release a new version of Dedimania today which will fix this issue, sorry.
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic

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

Re: [plugin] Dedimania

Post by reaby » 04 Jan 2011, 16:12

Dedimania plugin should have default message saying the record is from dedimania...
see:
http://labs.dura.fi/p/reaby/df61.png
(image will be deleted in few days)

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

[Dedimania] Errors in long run.

Post by reaby » 06 Jan 2011, 11:28

Hi,

I tested plugin and other plugins too over longer period of time... there is problem with dedimania and threading.
See http://koti.mbnet.fi/reaby/manialive/dedimania_logs.zip (warning will extract 40mb of logs).

hopefully you can sort it out.

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

Re: [plugin] Dedimania

Post by aseco » 10 Jan 2011, 11:18

Here is a new release of the Dedimania Plugin. I tried to respect every of your requests and hope I could meet your expectations.
List of changes:

- fixed http://code.google.com/p/manialive/issues/detail?id=6.
* changed command /records to /dedimania
* chagend chat notifications to contain 'Dedimania' as origin.
- fixed element positioning due to little changes in the windowing system.

Download the new version here: http://files.manialive.com/plugins/Dedimania_r1716.zip
Or as usual on the manialive Manialink.
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic

tof25
Posts: 30
Joined: 15 Jun 2010, 12:23

Re: [plugin] Dedimania

Post by tof25 » 13 Jan 2011, 19:39

Hi,

I have a problem with the configuration of dedimania, I add that in my config.ini file :

plugins.load[] = 'Flo\Dedimania'
plugins.Flo\Dedimania.password = 'MyServerPassword'
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%!'

Manialive log tell me I should use the Flo\Dedimania.password option, and diseable threading. In fact, Its like that the config.ini file is empty after the line plugins.load[] = 'Flo\Dedimania' , because when I look into the log loader_xxxx.txt, the plugins who are after this line, don't appear, and the threading enable line is empty.

My config.ini file : http://pastebin.com/2Gv4Rai2
loader_xxx.txt : http://pastebin.com/9xLmRTeK

I think I make a mistake in the config, with the options of dedimania, but I don't find where... :?

Thanks in advance

PS : sorry for my bad english

oliverde8
Posts: 1341
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: [plugin] Dedimania

Post by oliverde8 » 13 Jan 2011, 20:09

Hi,

Which PHP version do yo exactly have? I experienced similar problems with php 5.3.0 I had to upgrade to 5.3.4 (now Aseco doesen't work xd).
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...

tof25
Posts: 30
Joined: 15 Jun 2010, 12:23

Re: [plugin] Dedimania

Post by tof25 » 13 Jan 2011, 20:22

Sorry, I forgot this information, I use 5.3.0 installed with wamp, I will try tu upgrade.
Thanks

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

Re: [plugin] Dedimania

Post by aseco » 13 Jan 2011, 21:43

tof25 wrote:Sorry, I forgot this information, I use 5.3.0 installed with wamp, I will try tu upgrade.
Thanks
There, indeed, seems to be trouble with the 5.3.0.
Sometimes the config file is not parsed correctly and many settings are not read.
This may be related to http://bugs.php.net/49056 which has been fixed in 5.3.1
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic

tof25
Posts: 30
Joined: 15 Jun 2010, 12:23

Re: [plugin] Dedimania

Post by tof25 » 13 Jan 2011, 22:00

I updated to 5.3.4, and it works.
I had a problem with the xmlrpc connection which doesn't work with localhost since I updated, but I solve it using 127.0.0.1 .

I think it should be great to replace php5.3 or higher by 5.3.1 in the recommendations on this page http://code.google.com/p/manialive/

Thanks for your help ;)

Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 2 guests