Page 3 of 5
Re: LibXmlRpc Improvements
Posted: 01 Nov 2014, 21:15
by w1lla
For TrackMania:
LibXmlRpc.PositionPlayer in Race. Now its not shown or gettable anywhere. Otherwise please add it in the following callback LibXmlRpc_OnWayPoint.
,
Re: LibXmlRpc Improvements
Posted: 05 Nov 2014, 12:45
by Eole
undef.de wrote:Then there is a need for a trigger like LibXmlRpc_GetWarmUp to get LibXmlRpc_WarmUp as it is available in TM.
Done and available on GitHub after this
commit.
Done for
LibXmlRpc_BlockCallback,
UI_SetProperties and
LibScoresTable2_SetStyleFromXml. But restarting the map didn't reset the settings for me. What is the problem exactly with SetModeScriptSettings?
@W1lla :
You want to get the player's ranking when he crosses a checkpoint? In Time attack it should be the player's ranking at the checkpoint for his current run and not the rank of his best run?
Otherwise you can get a player ranking with the "LibXmlRpc_GetPlayerRanking" method.
Re: LibXmlRpc Improvements
Posted: 05 Nov 2014, 20:56
by undef.de
Thanks, checked and confirming that they are working.
Eole wrote:
But restarting the map didn't reset the settings for me. What is the problem exactly with SetModeScriptSettings?
I can't remember why, but since your post
http://forum.maniaplanet.com/viewtopic. ... 34#p221734:
Eole wrote:When voting/forcing a restart map the whole script is restarted, so most of the script variables loose their current value and take the default one. A map change doesn't restart the script and so doesn't cause the same problem. It's the case for all game modes on TrackMania and ShootMania.
i was sending a "SetModeScriptSettings" on a Map restart. But now these settings are retained for me too... hmmm. So there is no need for changes.
But just found another notice from me in my code about your above posting: "Rounds_SetPointsRepartition" in Rounds.Script.txt are reseted to defaults on a Map restart. This i have to send again, to have my custom settings. It would be nice to have a caching function for this too.

Re: LibXmlRpc Improvements
Posted: 20 Nov 2014, 10:29
by Eole
undef.de wrote:But just found another notice from me in my code about your above posting: "Rounds_SetPointsRepartition" in Rounds.Script.txt are reseted to defaults on a Map restart. This i have to send again, to have my custom settings. It would be nice to have a caching function for this too.
Available on
GitHub.
kremsy wrote:Thanks for your improvement!
undef.de wrote:Yes agree, adding a warmup flag to LibXmlRpc_BeginRound and LibXmlRpc_EndRound would be helpful.
Would be good if this could be done as well to make everything cleaner and destroy unnessessary complexity of these things.
I'll try to see what I can do, but I'm not sure it will be possible. For example in Elite a lot of initializations are done in the beginround and beginturn sections. It's only in the middle of beginturn that the mode check if it needs a warmup or not and start one immediately. So when LibXmlRpc_BeginRound is sent we still have no idea if the mode needs a warm up or not.
Re: LibXmlRpc Improvements
Posted: 20 Nov 2014, 21:26
by undef.de
Eole wrote:undef.de wrote:But just found another notice from me in my code about your above posting: "Rounds_SetPointsRepartition" in Rounds.Script.txt are reseted to defaults on a Map restart. This i have to send again, to have my custom settings. It would be nice to have a caching function for this too.
Available on
GitHub.
Thanks works 100% for me.

Re: LibXmlRpc Improvements
Posted: 29 Dec 2014, 15:44
by Eole
1) The turn and round sections are optionals parts of the basic mode. Some modes don't send the BeginRound and BeginTurn, some send only one of the two and some others send both.
2) Yes.
3) In Elite when you see a +2 it's because the game add two shooter points together if they are close enough. You do a +1 -> +1 but the game combines them and displays +2. The only game mode where the shooter points won't be 1 is Royal.
4) It should be the case. I checked on my side and I receive EndTurnStop after Elite_EndTurn. Maybe I don't understand what you're asking?

- Elite_EndTurn.png (18.61 KiB) Viewed 764 times