ScoreTable: LP score aren't displayed at the end of a map

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
Usul
Posts: 17
Joined: 23 Jul 2013, 15:22
Location: Belgique
Contact:

ScoreTable: LP score aren't displayed at the end of a map

Post by Usul »

I don't why
I have change a lot of code before see it and now, LP are calculate but the scoretable don't show LP

If I connect on the server at the end of a map LP are shown

the "End Map" code is the same as Melee.script.txt

Code: Select all

MB_Sleep(1000);
Message::CleanBigMessages();
UIManager.UIAll.BigMessageSound = CUIConfig::EUISound::EndRound;
UIManager.UIAll.BigMessageSoundVariant = 0;
if (Winner != Null) {
	UIManager.UIAll.BigMessage = TextLib::Compose(_("$<%1$> wins the match!"), Winner.Name);
} else {
	UIManager.UIAll.BigMessage = _("|Match|Draw");
}

MB_Sleep(2000);
UIManager.UIAll.UISequence = CUIConfig::EUISequence::EndRound;
UIManager.UIAll.ScoreTableVisibility = CUIConfig::EVisibility::ForcedVisible;
MB_Sleep(5000);

UIManager.UIAll.UISequence = CUIConfig::EUISequence::Podium;
while(!UIManager.UIAll.UISequenceIsCompleted) {
	MB_Yield();
}
UIManager.UIAll.ScoreTableVisibility = CUIConfig::EVisibility::Normal;
UIManager.UIAll.BigMessage = "";
someone has an idea of the problem?
Usul
Posts: 17
Joined: 23 Jul 2013, 15:22
Location: Belgique
Contact:

Re: ScoreTable: LP score aren't displayed at the end of a ma

Post by Usul »

I'm so stupid...
I do my test on local not on multi :clap:

Sorry for this post :p
but I spent 5h to watch and rework my code and I have my brain in my shoes :)
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: ScoreTable: LP score aren't displayed at the end of a ma

Post by Eole »

Glad to see you found the solution yourself, less work for me. :mrgreen:
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: ScoreTable: LP score aren't displayed at the end of a ma

Post by TMarc »

:lol:
It would be perfect if you would post the working code here as well, then others could learn from your "mistakes" and your progress :thumbsup:
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: ScoreTable: LP score aren't displayed at the end of a ma

Post by Eole »

The code in his first post is correct. The problem was that he made his tests on a LAN server. On LAN server the ladder is disabled, so it's not possible to see the LP at the end of the map. To solve the problem you just have to create an Internet server from the client instead and then it will work.
;)
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: ScoreTable: LP score aren't displayed at the end of a ma

Post by TMarc »

Great :)
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest