Page 1 of 1

[TM] Team.Script.txt likely to be broken

Posted: 07 Feb 2019, 19:33
by axelalex2
Hello there,

when testing a currently private project, i discovered a bug likely to be caused by ManiaPlanet.
- Lubuntu 18.10
- Server version "Date=2018-12-18_16_00 Svn=88076 GameVersion=3.3.0"
- Competition Titlepack
- ManiaControl v231

Order of calls (through ManiaControl, which forwards these calls nearly unedited to MP):
- reload script "Team.Script.txt"
- at callback "Maniaplanet.StartRound_End" set the scores of the teams through mode script event "Trackmania.SetTeamPoints" to 0

The red team receives the score of -1 for some reason now, but the scoreboard in-game continues to show a 0. If team red wins their first round, it looks like, it wouldn't gain points (although it does, from -1 to 0).
I never experienced this error in the version of ManiaControl and the project i use. Only the update of the server to its latest version seem to caused this weird error.

It would be great, if some others could try to reproduce and confirm my observations (with other setups even better).

Re: [TM] Team.Script.txt likely to be broken

Posted: 07 Feb 2019, 23:05
by axelalex2
Actually, this error seems to be even bigger than only at the named scenario. In most cases i try to call

Code: Select all

$this->maniaControl->getModeScriptEventManager()->setTrackmaniaTeamPoints($teamId, $score, $score, $score);
with various data, the scores bug out; but not all cases, which is the weird thing.

Re: [TM] Team.Script.txt likely to be broken

Posted: 08 Feb 2019, 07:14
by Florenzius
I can confirm

(Using PyPla)

Re: [TM] Team.Script.txt likely to be broken

Posted: 18 Feb 2019, 09:49
by Eole
I was not able to reproduce the problem for now. Do you have an example of values you sent to the setTrackmaniaTeamPoints() function that caused the error ?

Which version of the server did you use before encountering this problem ? Did you try to update to the new version (2019-02-11) ?
Florenzius wrote: 08 Feb 2019, 07:14 I can confirm

(Using PyPla)
What steps did you use to reproduce the problem with PyPlanet ?

Re: [TM] Team.Script.txt likely to be broken

Posted: 18 Feb 2019, 21:15
by erwinweber
I can also confirm this happened to me on esac, when in Team mode only. There were cases in which a match started at 1-0 or 0-1 and also cases when the first round was ignored. Besides that, there were also discrepancies between what the in-game scoreboard showed and what the scores callback sent. Same code didn't happen with Rounds or Cup mode.

Re: [TM] Team.Script.txt likely to be broken

Posted: 19 Feb 2019, 08:34
by Eole
Which version of the server did you use ?