[ManiaLive1_r267]Problem with Dedimania Plugin

Discuss about the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

[ManiaLive1_r267]Problem with Dedimania Plugin

Postby gastg77 » 14 Dec 2011, 18:48

Hi.

I'm sorry but I've got a problem when I want to configure the Dedimania Plugin (ManiaLive1_StandardPlugins_r267) with ManiaLive 1 (ManiaLive1_r267).

I wrote this in the config file :
Code: Select all
[...]
plugins.load[] = 'Standard\Dedimania'
[...]
plugins.Standard\Dedimania.password = 'MY_PASSWORD' ;
plugins.Standard\Dedimania.notifications = 'On'
plugins.Standard\Dedimania.notifyNewFirstRecord = '%player% drove new first Dedimania record with a time of %time%!'
plugins.Standard\Dedimania.notifyNewRecord = '%player% just ranked %rank% on Dedimania with a time of %time%!'
plugins.Standard\Dedimania.notifyImprovedFirstRecord = '%player% beat his own first Dedimania record with a time of %time%!'
plugins.Standard\Dedimania.notifyImprovedRecord = '%player% moved on the %rank% Dedimania rank by finishing with a time of %time%!'
plugins.Standard\Dedimania.notifyImprovedRecordTimeOnly = '%player% secured his %rank% Dedimania rank by driving a time of %time%!'
[...]


And in the file "runtime.log" I've got this :
Code: Select all
[...]
[PluginHandler] All registered plugins have been loaded
[18:45:13|Dedimania] Done!
[18:45:13|Dedimania] Connected to Dedimania Version 2.3!
[18:45:13|Dedimania] Warning in rpc.php(215): AuthWarning:
Warning in method_handler.php(531): Authenticate: Tool/Version (ManiaLive/239) has been set as invalid (forbidden/obsolete tool or known bug, upgrade to the latest version) !
Warning in method_handler.php(532): Mail tm@gamers.org (in English) if you believe this to be incorrect
Error in method_handler.php(614): Not Authenticated
Error: Could not connect to Dedimania, authentication failed!



But when I write a wrong password in the config file I've got this :
Code: Select all
[PluginHandler] All registered plugins have been loaded
[18:47:52|Dedimania] Done!
[18:47:52|Dedimania] Connected to Dedimania Version 2.3!
[18:47:52|Dedimania] Warning in rpc.php(215): AuthWarning:
Warning in method_helper.php(487): Delete old bad auth
Warning in check_login_tm.php(94): Bad TMF Password for login MY_LOGIN ! (15;)
Warning in check_login_tm.php(95): Verify your login/pass on: http://official.trackmania.com/tmf-communitycode/
Warning in method_handler.php(384): Bad password for TMU/TMNF:MY_LOGIN !
Warning in method_helper.php(487): Delete old bad auth
Error in method_handler.php(614): Not Authenticated
Error: Could not connect to Dedimania, authentication failed!


It's absolutely normal. So Why do I have a strange logfile when I put the right password in my config file ?

Thank you very much.
gastg77
 
Posts: 17
Joined: 10 Oct 2011, 19:28

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby Fadden » 14 Dec 2011, 21:59

Hi,

In libraries\ManiaLiveApplication\Application.php file, you have to replace
Code: Select all
const Version = 239;

by
Code: Select all
const Version = 267;


(viewtopic.php?p=83597#p83597 & viewtopic.php?p=83634#p83634)
Elle est où la poulette ?
User avatar
Fadden
 
Posts: 100
Joined: 10 May 2011, 18:21
Manialink: fadden
TrackMania Forever:
Nickname: R » `FaddeN`яеѵ²
Solo ranking: 377
Multiplayer ranking: 44 646

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby gastg77 » 15 Dec 2011, 18:42

Ok thank you very much.

Ihave already read the second topic but not completely.

Thanks again.
gastg77
 
Posts: 17
Joined: 10 Oct 2011, 19:28

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby Welly » 05 Mar 2012, 02:53

I encountered the same error when loading the dedimania plugin.
(Some questions below)

Do you know why this value is 239, because my manialive installation is up-to-date (r267) and downloaded from the official google project page.

-----
I also saw there's a problem with update.php:

Before I modify this value into libraries\ManiaLiveApplication\Application.php, the update tool looked like this (wrong Manialive local version r239):

Code: Select all
$:~/gameservers/tmf/bzhbreizhmania/ManiaLive/update$ php update.php
###############################
# ManiaLive Updater
###############################

> Checking local ManiaLive version ...
> ManiaLive is at version 239
> Checking remote ManiaLive version ...
> Remote ManiaLive is at version 239
Local version is the same or even newer than the remote one.
Do you want to proceed? (y/n):


Now, and after a manialive restart, it looks like this (right Manialive local version r267):

Code: Select all
$:~/gameservers/tmf/bzhbreizhmania/ManiaLive/update$ php update.php
###############################
# ManiaLive Updater
###############################

> Checking local ManiaLive version ...
> ManiaLive is at version 267
> Checking remote ManiaLive version ...
> Remote ManiaLive is at version 239
Local version is the same or even newer than the remote one.
Do you want to proceed? (y/n):


Is this just a bug, an oversight and do you know why?

@Fadden : merci pour cette solution!
Au passage, j'adore ta signature! :D Grosse coïncidence, j'utilise exactement la même depuis quelques années sur le forum de la team BZH. Seuls les fans peuvent comprendre... ^^
------
"Le gras, c'est la vie!"

Thank you and big up to the Manialive team, great job! :D
Welly
 
Posts: 3
Joined: 17 Aug 2011, 00:08

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby w1lla » 05 Mar 2012, 11:54

Hi,

this message should be deprecated or even in fact be excluded.

to fix this try this:

go to Manialive/libraries/Manialive/Features/Updater.php

seek for the function checkUpdate()

and replace it with this:

Code: Select all
/**
    * Routine that compares version number to
    * the latest version online.
    */
   function checkUpdate()
   {
      $version = 0;
      
      // check for manialive update
      try
      {
         $client = new \ManiaLib\Rest\Client();
         $client->setAPIURL(APP_API);
      }
      catch (\Exception $e)
      {
         Console::println('ERROR: Update service was unable to contact server ...');
      }


Save it and you are good to go ;) you will only see Update service was unable to contact server.

or go to libraries/ManiaLiveApplication/Application.php

and remove the following line:
Code: Select all
Updater::getInstance();


That will not use the Updater sequence.

Hope this helps you out.

with kind regards,

w1lla
TM² Info
SM Info
QM Info

OS: Windows XP
MB: MS-7599
Processor: AMD Athlon II X2 250
RAM Memory: 4 GB DDR3
Video: ATI HD Radeon 5500 1 GB

Mode Creation

ManiaScript Docs
User avatar
w1lla
 
Posts: 1399
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Manialink: maniaplanetblog

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby Welly » 05 Mar 2012, 12:44

Thanks, I'll try this when I'll be back home.

This error happened when I launched a manual manialive update by the following php
update.php

There's no update when I launch ManiaLive (./run +options)
...or, I don't understand what do you mean for "the Updater sequence"?

Is there a link between my dedimania version error and this updater error?

Welly.
Last edited by Welly on 05 Mar 2012, 12:46, edited 1 time in total.
Welly
 
Posts: 3
Joined: 17 Aug 2011, 00:08

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby w1lla » 05 Mar 2012, 12:46

no but you dont need to use php update.php but only (./run)

php update.php will try to update to an outdated manialive.
TM² Info
SM Info
QM Info

OS: Windows XP
MB: MS-7599
Processor: AMD Athlon II X2 250
RAM Memory: 4 GB DDR3
Video: ATI HD Radeon 5500 1 GB

Mode Creation

ManiaScript Docs
User avatar
w1lla
 
Posts: 1399
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Manialink: maniaplanetblog

Re: [ManiaLive1_r267]Problem with Dedimania Plugin

Postby Welly » 05 Mar 2012, 13:07

OK thank you! ;)
Welly
 
Posts: 3
Joined: 17 Aug 2011, 00:08


Return to Dedicated Server Tools

Who is online

Users browsing this forum: No registered users and 0 guests