[Solved][Matchmaking] Scoretable problem

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

[Solved][Matchmaking] Scoretable problem

Post by Darkminus »

Hello :)

I've got a problem with my Arena Duel gamemode.

Everything works fine in normal mode.
However in Matchmaking mode, the scoretables reformat players display and I cannot find why...

I do not do anything different in matchmaking mode, except I don't use warmup. Scoretable calls are exactly the same.

Here's what happens:

Before entering PlayLoop in my code (players are correctly placed, everything goes fine):

Image

Here's what happens after:

Image

As you can see all players are forced to be listed at left side of the scoretable.

It doesn't happen in "non-matchmaking" servers...

If anyone has an idea to help me...

Thank you in advance for your answers ! :thx:
Last edited by Darkminus on 19 Jun 2015, 17:40, edited 1 time in total.
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: [Matchmaking] Scoretable problem

Post by Darkminus »

I don't know if this is allowed but... Bump?
After some more tries, I still don't get this working as I want...

In the hope of an answer :thx:
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
novationx
Posts: 2723
Joined: 10 Aug 2013, 22:33

Re: [Matchmaking] Scoretable problem

Post by novationx »

I wish I could help :(
The neverending waiting game has to stop.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [Matchmaking] Scoretable problem

Post by Eole »

The scores table uses "Score.TeamNum" to put a player on a side or the other. If you log it for both players in the game mode script what do you see?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: [Matchmaking] Scoretable problem

Post by Darkminus »

Eole wrote:The scores table uses "Score.TeamNum" to put a player on a side or the other. If you log it for both players in the game mode script what do you see?
Hello again :)

Here are the values I get in local :

Code: Select all

Login : darkminus  | Scores.TeamNum : 1
Login : staxfid    | Scores.TeamNum : 2
And here's what I get on the dedicated Matchmaking match server :

Code: Select all

Login : darkminus  | Scores.TeamNum : 1
Login : staxfid    | Scores.TeamNum : 1
In both cases I set UseClans = False; just before playloop. However Scores.TeamNum seems to be forced to 1 in match servers...

I now know what causes my problem :) Thank you :thx:

I just need to understand why Scores.TeamNum takes always "1" as value on match servers... Should it be the same value as Player.CurrentClan? That would mean that Player.CurrentClan == 1? (Which shouldn't be possible as SetPlayerClan took the right values in my previous tries ...)
Last edited by Darkminus on 19 Jun 2015, 06:56, edited 1 time in total.
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: [Matchmaking] Scoretable problem

Post by Dommy »

Try to remove UseClans = False parameter and it will probably be OK, because when you set them off, players clans are changed to 0 and when turning on back both players are set to 1 :)

I think I finally get it.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: [Matchmaking] Scoretable problem

Post by Darkminus »

domino54 wrote:Try to remove UseClans = False parameter and it will probably be OK, because when you set them off, players clans are changed to 0 and when turning on back both players are set to 1 :)

I think I finally get it.
I already tried this, unfortunately it doesn't work. :/ I think there's a specific thing in "MM mode" that affects Score.TeamNum for Players, but I don't know what yet :) Maybe it is because I use a 1v1 matchmaking in team mode... Or something else ^^"

:thx:
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [Matchmaking] Scoretable problem

Post by Eole »

Do you use the MM_GetRequestedClan() function instead of Player.RequestedClan to get the clan assigned by the matchmaking to the player?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: [Matchmaking] Scoretable problem

Post by Darkminus »

Here's the code I execute instead of WarmUp when I'm on a MM Server (Should be the same as Combo)

Code: Select all

Void PrepareMatch() {
  foreach (Player in AllPlayers)
  {
    SetPlayerClan(Player, MM_GetRequestedClan(Player));
    if (Player.CurrentClan == 1) WarmUp2::SetPlayerGroup(Player, "Clan1");
    else if (Player.CurrentClan == 2) WarmUp2::SetPlayerGroup(Player, "Clan2");
  }
  WarmUp2::Clean();
  WarmUp2::Fill();
}
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [Matchmaking] Scoretable problem

Post by Eole »

After that do you always use Player.CurrentClan to access the player clan? Especially inside the spawn function.
You don't use SetPlayerClan() anywhere else?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest