Page 1 of 1

Bill plugin still doesn't work

Posted: 12 Sep 2011, 20:21
by Fadden
Hello,

I have downloaded and installed the latest version of Manialive 1, on which the is notified "fix Bill plugin problem". But I still have the same error when I try to use /pay or /give :

/pay 10 return this :

Code: Select all

 -> ManiaLive\DedicatedApi\InvalidArgumentException with code 0
    amount = 10
  - in
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Connection.php on
      line 1493
  - Stack: #0
      /usr/games/ManiaLive/libraries/ManiaLivePlugins/Standard/Bill/Plugin.php(
      87): ManiaLive\DedicatedApi\Connection->sendBill('jen-roger', '10',
      'jen-rogerToServ...')
           #1 [internal function]:
      ManiaLivePlugins\Standard\Bill\Plugin->toServer('jen-roger', '10')
           #2
      /usr/games/ManiaLive/libraries/ManiaLive/Features/ChatCommand/Interpreter
      .php(252): call_user_func_array(Array, Array)
           #3
      /usr/games/ManiaLive/libraries/ManiaLive/Features/ChatCommand/Interpreter
      .php(201):
      ManiaLive\Features\ChatCommand\Interpreter->callCommand('jen-roger',
      '/pay 10', 'pay', Array)
           #4 [internal function]:
      ManiaLive\Features\ChatCommand\Interpreter->onPlayerChat(250,
      'jen-roger', '/pay 10', true)
           #5
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Callback/Event.php(
      28): call_user_func_array(Array, Array)
           #6
      /usr/games/ManiaLive/libraries/ManiaLive/Event/Dispatcher.php(52):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLive\Features\C
      hatCommand\Interpreter))
           #7
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Connection.php(108)
      :
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #8
      /usr/games/ManiaLive/libraries/ManiaLive/Application/AbstractApplication.
      php(146): ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #9 /usr/games/ManiaLive/bootstrapper.php(82):
      ManiaLive\Application\AbstractApplication->run()
           #10 {main}
The plugin in the latest version is exactly the same as the previous version... Maybe you have forgotten to put it into the .zip :?:

Re: Bill plugin still doesn't work

Posted: 12 Sep 2011, 20:58
by The_Big_Boo
Indeed, there is still a problem with Bill plugin. :oops:
The fix is easy, I'll do it tomorrow.

Edit: finally I did it tonight, you can try to download a new ManiaLive version and the new standard plugins from here http://code.google.com/p/manialive/downloads/list ;)

Re: Bill plugin still doesn't work

Posted: 13 Sep 2011, 20:48
by Fadden
Thanks.
The /pay [coppers] command works fine now, but /pay [login] [coppers] and /give [login] [coppers] doesnt' work ;)

Code: Select all

 -> ErrorException with code 0
    Argument 4 passed to ManiaLive\DedicatedApi\Connection::sendBill()
      must be an instance of ManiaLive\DedicatedApi\Structures\Player, string
      given, called in
      /usr/games/ManiaLive/libraries/ManiaLivePlugins/Standard/Bill/Plugin.php
      on line 69 and defined
  - in
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Connection.php on
      line 1488

Re: Bill plugin still doesn't work

Posted: 13 Sep 2011, 22:00
by The_Big_Boo
Argh, I missed this one... It should work now (but you have to download again ManiaLive and the plugins :oops: )

Re: Bill plugin still doesn't work

Posted: 14 Sep 2011, 20:10
by Fadden
Ok, now there is only /checkbill which doesnt' work^^
I am boring I know, but I could not test it when others command didn't work :mrgreen:

Code: Select all

 -> ManiaLive\DedicatedApi\InvalidArgumentException with code 0
    billId = 8
  - in
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Connection.php on
      line 1523
  - Stack: #0
      /usr/games/ManiaLive/libraries/ManiaLivePlugins/Standard/Bill/Plugin.php(
      115): ManiaLive\DedicatedApi\Connection->getBillState('8')
           #1 [internal function]:
      ManiaLivePlugins\Standard\Bill\Plugin->checkBill('jen-roger', '8')
           #2
      /usr/games/ManiaLive/libraries/ManiaLive/Features/ChatCommand/Interpreter
      .php(252): call_user_func_array(Array, Array)
           #3
      /usr/games/ManiaLive/libraries/ManiaLive/Features/ChatCommand/Interpreter
      .php(201):
      ManiaLive\Features\ChatCommand\Interpreter->callCommand('jen-roger',
      '/checkbill 8', 'checkbill', Array)
           #4 [internal function]:
      ManiaLive\Features\ChatCommand\Interpreter->onPlayerChat(247,
      'jen-roger', '/checkbill 8', true)
           #5
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Callback/Event.php(
      28): call_user_func_array(Array, Array)
           #6
      /usr/games/ManiaLive/libraries/ManiaLive/Event/Dispatcher.php(52):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLive\Features\C
      hatCommand\Interpreter))
           #7
      /usr/games/ManiaLive/libraries/ManiaLive/DedicatedApi/Connection.php(108)
      :
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #8
      /usr/games/ManiaLive/libraries/ManiaLive/Application/AbstractApplication.
      php(146): ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #9 /usr/games/ManiaLive/bootstrapper.php(82):
      ManiaLive\Application\AbstractApplication->run()
           #10 {main}