Page 1 of 1

Callvote error? ML or server?

Posted: 10 Apr 2013, 19:47
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

Re: Callvote error? ML or server?

Posted: 10 Apr 2013, 20:10
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.

Re: Callvote error? ML or server?

Posted: 10 Apr 2013, 21:20
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.