Page 1 of 2

ManiaLive 2 r273

Posted: 12 Oct 2011, 17:00
by The_Big_Boo
Hi guys,

Here is the new version of ManiaLive, working on (and exclusively on) dedicated servers from the 2011-10-06 version.
There was a big cleaning of everything which refers to Challenge so for plugin developpers you must use only Map methods and callbacks from now.

ManiaLive
Standard plugins

Re: ManiaLive 2 r273

Posted: 12 Oct 2011, 17:34
by w1lla
What about GUI?

Will it be fixed in a later stage because i made some changes to mlepp to use ActionKeys but i cant use them properly ;).

Anyway great release, We (MLEPP) team are trying to fix everything as fast as we can...

Re: ManiaLive 2 r273

Posted: 12 Oct 2011, 20:22
by The_Big_Boo
GUI will indeed come later, I hope next week but it will need a lot of tests (and debugging) before an official release.

Re: ManiaLive 2 r273

Posted: 13 Oct 2011, 13:57
by 4lturbo
manialive version stay at 260 :-) in ManiaLiveApplication/Application.php

Re: ManiaLive 2 r273

Posted: 14 Oct 2011, 12:41
by w1lla
Got today this error:

Code: Select all

2011.10.14_12:04 
    Occured on 14.10.2011 at 12:04:10 at process with ID #5232
    ---------------------------------
 -> ManiaLive\DedicatedApi\Xmlrpc\Exception with code -506
    Method 'SetApiVersion' not defined
  - in C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Xmlrpc\Client.php on line 270
  - Stack: #0 C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Xmlrpc\Client.php(296): ManiaLive\DedicatedApi\Xmlrpc\Client->getResult()
           #1 [internal function]: ManiaLive\DedicatedApi\Xmlrpc\Client->query('SetApiVersion', '2011-10-06')
           #2 C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(138): call_user_func_array(Array, Array)
           #3 C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(197): ManiaLive\DedicatedApi\Connection->execute('SetApiVersion', Array, false)
           #4 C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(81): ManiaLive\DedicatedApi\Connection->setApiVersion('2011-10-06')
           #5 C:\tmn\ManiaLive\libraries\ManiaLib\Utils\Singleton.php(23): ManiaLive\DedicatedApi\Connection->__construct()
           #6 C:\tmn\ManiaLive\libraries\ManiaLive\DedicatedApi\Connection.php(65): ManiaLib\Utils\Singleton::getInstance()
           #7 C:\tmn\ManiaLive\libraries\ManiaLive\Application\AbstractApplication.php(105): ManiaLive\DedicatedApi\Connection::getInstance()
           #8 C:\tmn\ManiaLive\libraries\ManiaLiveApplication\Application.php(36): ManiaLive\Application\AbstractApplication->init()
           #9 C:\tmn\ManiaLive\libraries\ManiaLive\Application\AbstractApplication.php(143): ManiaLiveApplication\Application->init()
           #10 C:\tmn\ManiaLive\bootstrapper.php(80): ManiaLive\Application\AbstractApplication->run()
           #11 {main}
Fixed it with this in libraries/manialive/DedicatedApi/Connection.php line 193.

Code: Select all

	function setApiVersion($version)
	{

		var_dump($version);
		return $this->execute(ucfirst(__FUNCTION__), array($version), false);
	}
Then in Structures/Version file add

Code: Select all

$ApiVersion
then it will work. It was a string version but it failed...

Then it will work.

With kind regards,

W1lla.

Re: ManiaLive 2 r273

Posted: 14 Oct 2011, 14:12
by papic
I updated Manialive 2 r260 -> r273 but I have a mistake :/
2011.10.14_15:08
Occured on 14.10.2011 at 15:08:18 at process with ID #3272
---------------------------------
-> ErrorException with code 0
Undefined property: ManiaLive\Data\Storage::$challenges
- in C:\wamp\ManiaLive2_r273\libraries\ManiaLivePlugins\MLEPP\Database\Database.php on line 652
- Stack: #0 C:\wamp\ManiaLive2_r273\libraries\ManiaLivePlugins\MLEPP\Database\Database.php(652): ManiaLive\Application\ErrorHandling::createExceptionFromError(8, 'Undefined prope...', 'C:\wamp\ManiaLi...', 652, Array)
#1 C:\wamp\ManiaLive2_r273\libraries\ManiaLivePlugins\MLEPP\Database\Database.php(95): ManiaLivePlugins\MLEPP\Database\Database->updateServerChallenges()
#2 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\PluginHandler\PluginHandler.php(143): ManiaLivePlugins\MLEPP\Database\Database->onReady()
#3 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\PluginHandler\PluginHandler.php(394): ManiaLive\PluginHandler\PluginHandler->loadPlugins()
#4 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\Application\Event.php(39): ManiaLive\PluginHandler\PluginHandler->onInit()
#5 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\Event\Dispatcher.php(50): ManiaLive\Application\Event->fireDo(Object(ManiaLive\PluginHandler\PluginHandler))
#6 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\Application\AbstractApplication.php(134): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Application\Event))
#7 C:\wamp\ManiaLive2_r273\libraries\ManiaLiveApplication\Application.php(36): ManiaLive\Application\AbstractApplication->init()
#8 C:\wamp\ManiaLive2_r273\libraries\ManiaLive\Application\AbstractApplication.php(141): ManiaLiveApplication\Application->init()
#9 C:\wamp\ManiaLive2_r273\bootstrapper.php(80): ManiaLive\Application\AbstractApplication->run()
#10 {main}

Re: ManiaLive 2 r273

Posted: 14 Oct 2011, 14:18
by w1lla
For all people with no patience for MLEPP release:

http://mlepp.com/tools/mleppr1033.zip

Documentation what has changed will come when the team does a new update to the MLEPP forum in Maniaplanet Forum

Re: ManiaLive 2 r273

Posted: 15 Oct 2011, 17:38
by Fadden
In libraries\ManiaLive\Gui\Windowing\CustomUI.php, this line is missing :

Code: Select all

public $mapInfo = true;

Re: ManiaLive 2 r273

Posted: 15 Oct 2011, 21:05
by nocturne
Fadden wrote:In libraries\ManiaLive\Gui\Windowing\CustomUI.php, this line is missing :

Code: Select all

public $mapInfo = true;
I didn't know if that was missing or if it's simply 'challengeInfo' renamed.. Even then, is it 'MapInfo' or 'mapInfo'..?

Btw, where is the documentation on all the dedicated server changes that keep popping up? Took me about 45min to realize you guys had changed all the gamemode number designations..

Re: ManiaLive 2 r273

Posted: 15 Oct 2011, 21:32
by Fadden
I think it's missing because in setCustomUI function in libraries\ManiaLive\Gui\Windowing\WindowHandler.php there is :

Code: Select all

$group->displayableGroup->mapInfo = $customUI->mapInfo;
Indeed $challengeInfo was renamed in $mapInfo, but apparently $challengeInfo is missing in the previous version of Manialive (r260).

This causes only a warning and doesn't prevent setCustomUI to work, I think.