Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two score tables are shown in some SM Modes #1167

Open
skybaks opened this issue Apr 20, 2022 · 4 comments
Open

Two score tables are shown in some SM Modes #1167

skybaks opened this issue Apr 20, 2022 · 4 comments
Labels

Comments

@skybaks
Copy link
Contributor

skybaks commented Apr 20, 2022

When using pyplanet with some shootmania modes like Elite/ElitePro.Script.txt you see two score tables.

Invoking "Maniaplanet.UI.SetScoresTableVisibility" with player "login" and "false" from instance.gbx() hides the second scoretable and leaves only the custom manialink score table.

I see some code in the BaseUIManager to invoke "Maniaplanet.UI.SetAltScoresTableVisibility" conditionally when the game is shootmania. I'm wondering what the background for implementing that was and whether it might make sense to also invoke SetScoresTableVisibility at the same time as SetAltScoresTableVisiblity.

The thing is, for Elite at least, you would always want the SetScoresTableVisibility=false.

Expected Behavior

In elite the scoretable is implemented in custom manialink. I would expect that only that score table is shown.

Actual Behavior

Both the custom scoretable and the game's built-in score table are shown.

Steps to Reproduce (including precondition)

  1. Start a server with mode Elite/ElitePro.Script.txt
  2. Join server
  3. Start pyplanet
  4. Press tab to open scoretable and observe two are displayed on top of eachother.

Your Environment

  • OS: Windows
  • PyPlanet version: 0.10.0-rc1
  • Python version: 3.7.0
@w1lla
Copy link
Contributor

w1lla commented Apr 25, 2022

It seems to be that during the start of PyPlanet it Resets all UI.Properties hence (Shootmania.UI.ResetProperties) and then tries to set the AltScoresVisibility to True.

However the AltScoresVisibility is for the ALT Key.

See:

https://github.com/maniaplanet/script-xmlrpc/blob/master/XmlRpcListing.md#maniaplanetuisetaltscorestablevisibility

@w1lla
Copy link
Contributor

w1lla commented Aug 30, 2023

Found the culprit i guess:

async def on_start(self):

It resets the UIProperties so in any case the ScoresTable will be both shown,

@tomvlk
Copy link
Member

tomvlk commented Aug 30, 2023 via email

@w1lla
Copy link
Contributor

w1lla commented Aug 30, 2023

Yes that is correct it goes back to default, but after a map restart or a next map the apparent bug seems to be solved. Not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants