Page 2 of 9

Re: [plugin] Dedimania

Posted: 04 Jan 2011, 12:48
by TheM
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}

Re: [plugin] Dedimania

Posted: 04 Jan 2011, 14:23
by aseco
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.

Re: [plugin] Dedimania

Posted: 04 Jan 2011, 16:12
by reaby
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)

[Dedimania] Errors in long run.

Posted: 06 Jan 2011, 11:28
by reaby
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.

Re: [plugin] Dedimania

Posted: 10 Jan 2011, 11:18
by aseco
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.

Re: [plugin] Dedimania

Posted: 13 Jan 2011, 19:39
by tof25
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

Re: [plugin] Dedimania

Posted: 13 Jan 2011, 20:09
by oliverde8
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).

Re: [plugin] Dedimania

Posted: 13 Jan 2011, 20:22
by tof25
Sorry, I forgot this information, I use 5.3.0 installed with wamp, I will try tu upgrade.
Thanks

Re: [plugin] Dedimania

Posted: 13 Jan 2011, 21:43
by aseco
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

Re: [plugin] Dedimania

Posted: 13 Jan 2011, 22:00
by tof25
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 ;)