-
Notifications
You must be signed in to change notification settings - Fork 15
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
Comments
Please be really careful with these start/end callbacks. Especially in
Shootmania all of these are heavily used and the order is really
important. Changing some handling to a later or earlier callback could
break a lot...
Am 2020-08-02 18:17, schrieb jonthekiller:
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.
https://github.com/ManiaControl/ManiaControl/blob/24558b1982050ad9dc7544afbbfa53bfe79440e3/core/Callbacks/LibXmlRpcCallbacks.php#L64
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe [2].
|
Yes, I think it's due to the WarmUp phase that is not managed like in TM2 and can be important for gamemodes. |
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
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.
ManiaControl/core/Callbacks/LibXmlRpcCallbacks.php
Line 64 in 24558b1
The text was updated successfully, but these errors were encountered: