Page 2 of 3

Re: ManiaLive r209

Posted: 05 Apr 2011, 22:57
by Knutselmaaster
:(

Code: Select all

PHP Fatal error:  Call to a member function hide() on a non-object in /home/tmservers/servers/fun/ManiaLive209/libraries/ManiaLive/Gui/Windowing/WindowHandler.php on line 516

Re: ManiaLive r209

Posted: 06 Apr 2011, 05:15
by alividerchi
now my server works nomalno I can now join with the free account login way with which I bought freezone kolt75 to login fullspeeds-pro and even I have a question where I have to pay for the server that is the weekly fee thaks all :D

Re: ManiaLive r209

Posted: 06 Apr 2011, 08:06
by Knutselmaaster
See, it takes some time from the first startup for the freezone to work ;)

The weekly fee is automatically deducted from the coppers on the account that activated the freezone server on the manialink.
So, be carefull that enough coppers are on there, if there is not enough to make the payment happen, freezone will automatically be disabled for a week (if there are enough coppers after that)

Re: ManiaLive r209

Posted: 06 Apr 2011, 09:05
by alividerchi
thanks for the info Knutselmaaster

Re: ManiaLive r209

Posted: 07 Apr 2011, 16:45
by jouko200
i made new installation and got this error


http://img685.imageshack.us/i/unledig.png/


in rest folder is config.php but not examle config.ini (should there be config.ini)

or does it have someting to do with json extension i dont find it anywhere in php 5.36 :roll:

Re: ManiaLive r209

Posted: 11 Apr 2011, 18:46
by schmidi
typo in libraries\ManiaLive\DedicatedApi\Connection.php
line 2211:

Code: Select all

$modList[] = $mods->toArray();
should be

Code: Select all

$modList[] = $mod->toArray();

Re: ManiaLive r209

Posted: 14 Apr 2011, 00:50
by 4lturbo
i found a bug in the check for the valid number of check for a challenge (in Storage.php onPlayerFinish()). If you are in round mod, with RoundsForcedLaps at a differente value than the nbLap in the challenge (ex challenge validate with 3 laps, and play in round mod with roundsForcedLaps different to 3), the check return in the log "Best time's checkpoint count does not match and was ignored!"

Code: Select all

if ($this->currentChallenge->nbLaps > 0)
{
  $totalChecks = $this->currentChallenge->nbCheckpoints * $this->currentChallenge->nbLaps;
}
else
{
  $totalChecks = $this->currentChallenge->nbCheckpoints;
}
replace by

Code: Select all

if ($this->currentChallenge->nbLaps > 0)
{
  $lap = ($this->gameInfos->roundsForcedLaps)? $this->gameInfos->roundsForcedLaps : $this->currentChallenge->nbLaps;
  $totalChecks = $this->currentChallenge->nbCheckpoints * $lap;
}
else
{
  $totalChecks = $this->currentChallenge->nbCheckpoints;
}

Re: ManiaLive r209

Posted: 15 Apr 2011, 16:50
by 4lturbo
Hi
I have trouble to use $this->connection->addGuest() for a player who isn't in the server, because addguest have as argument a Player structure which is empty because the player isn't in the server ...
For the other problem (see the post above) no one have solutions ? or you don't understand it ?
------------------------------------------------------------------------------------
Bonjour,
J'ai un probleme pour utiliser la fonction $this->connection->addGuest(), pour un joueur qui n'est pas sur le serveur, vu que cette fonction a comme argument un membre de la structure Player, qui n'existe que si le joueur est sur le serveur ...
Pour l'autre probleme (voir post au dessus) personne n'a de solution ? ou bien vous n'avez pas compris ?

Re: ManiaLive r209

Posted: 15 Apr 2011, 17:24
by farfa
I've changed the method algorithm to allowed you to add a guest.
To add a guest, you just have to create a Player object, and to set the login in this structure then call the method.

To get this modification just get the Connection class on manialive website

Re: ManiaLive r209

Posted: 15 Apr 2011, 17:55
by 4lturbo
nice