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

Disable Maniaplanet.StartMap_End for TM2020 #275

Open
jonthekiller opened this issue Aug 2, 2020 · 3 comments
Open

Disable Maniaplanet.StartMap_End for TM2020 #275

jonthekiller opened this issue Aug 2, 2020 · 3 comments

Comments

@jonthekiller
Copy link
Contributor

It seems that the Maniaplanet.StartMap_End callback should not be take into account (probably also the Maniaplanet.EndMap_End) as for me we always receive the ManiaPlanet.BeginMap and ManiaPlanet.EndMap. As of today, in some conditions (for example during a warm-up and do skip map) we can receive twice the same callback (StartMap_End, EndMap, and after BeginMap) and give some bad behaviour in some plugins using these callbacks. I would recommend to disable this two for TM2020. I haven't check all scenarii to see if in some special cases, we need them but it seems not.

$this->maniaControl->getMapManager()->handleScriptBeginMap($jsonData->map->uid, $jsonData->restarted);

@kremsy
Copy link
Member

kremsy commented Aug 4, 2020 via email

@jonthekiller
Copy link
Contributor Author

Yes, I think it's due to the WarmUp phase that is not managed like in TM2 and can be important for gamemodes.
At least, for short term, we need to disable only for TM2020 but I haven't check the best way to do it yet.

@jonthekiller
Copy link
Contributor Author

I can propose this modification: https://github.com/jonthekiller/ManiaControl/blob/jonthekiller-patch-13/core/Callbacks/LibXmlRpcCallbacks.php#L64

Something better can probably be done.

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

No branches or pull requests

2 participants