Bill plugin still doesn't work

Post here every finished plugin

Moderator: NADEO

Post Reply
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Bill plugin still doesn't work

Post 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 :?:
Elle est où la poulette ?
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Bill plugin still doesn't work

Post 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 ;)
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: Bill plugin still doesn't work

Post 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
Elle est où la poulette ?
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Bill plugin still doesn't work

Post by The_Big_Boo »

Argh, I missed this one... It should work now (but you have to download again ManiaLive and the plugins :oops: )
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: Bill plugin still doesn't work

Post 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}

Elle est où la poulette ?
Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest