Callvote error? ML or server?

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

Moderator: NADEO

Post Reply
MuNgLo
Posts: 314
Joined: 12 Jul 2012, 03:37

Callvote error? ML or server?

Post by MuNgLo »

So finally callvote is fixed. But trying to use it as before runs into some trouble.

First of the server is using all the cmdparam from the vote object to show as text to all clients. This means it uses the echo in the end. I don't know where the error(?) is though. If ML needs to change or if the server is a bit bugged. I bet it's the server. :P

Secondly this is inaccurate...
manialive/libraries/DedicatedApi/Connection.php

Code: Select all

* indefinite; a ratio of '-1' means default; Voters values: '0' means only active players, 
If you try to set ratio to -1 you get..

Code: Select all

-> DedicatedApi\InvalidArgumentException with code 0
    ratio = -1
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Callvote error? ML or server?

Post by The_Big_Boo »

I didn't test last dedicated yet but I suppose you're creating the vote the right way so I'd bet the same.

About the other issue, actually you have to pass a float to the method, so -1. for instance. It has been previously fixed in some other vote ratio related methods but not those.
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
MuNgLo
Posts: 314
Joined: 12 Jul 2012, 03:37

Re: Callvote error? ML or server?

Post by MuNgLo »

oh float :/

Yeah when it worked before it broke the 2nd cmdparam was just used as echo. Now it's used as echo and at the end of string for the votequestion.
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 2 guests