Doppler - A new competitive gamemode!

Find all the medias (videos/artwork/wallpapers and more) created by the Maniaplanet Community as well as the events organized by them and the CHANNELS information!

Moderator: English Moderator

User avatar
undef.de
Posts: 1838
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: Doppler - A new competitive gamemode!

Post by undef.de » 20 Jun 2015, 19:16

Some findings or suggestions:
  • "Camera 0 flashed you!", please do + 1 ;)
  • Please make "km/h" as a settings, e.g. S_VelocityUnit to be able to change it to "mp/h" or whatever
  • At the description a "$" is missing: "Take care, restarting will $ff0dump$fff your speed!"
  • After finishing a Map, nothing happens... i have to press DEL to start another run... do i miss something?
Btw.: I have added support to UASECO for Doppler.Script.txt.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

User avatar
Nerpson
Translator
Translator
Posts: 1520
Joined: 27 Sep 2013, 18:02
Location: France
Contact:

Re: Doppler - A new competitive gamemode!

Post by Nerpson » 22 Jul 2015, 00:37

New update!

:yes: :pil

Look the main topic for more detail.
ImageImageImageImage

reaby
Posts: 936
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Doppler - A new competitive gamemode!

Post by reaby » 22 Jul 2015, 02:18

Hi,
Thanks for update!
And many thanks for enabling the moving of the ingame panel around + possibility to hide it!

@Undef, you are way too fast to add support... even if it doesn't send any data (yet) about the scores :D

@Nerpson
Here is what you need to send custom callbacks to dedicated server... register at start server...
not sure if you need to unregister it at stopserver... anyway here's how to do it:

Code: Select all

XmlRpc::RegisterCallback("Doppler_onCheckpoint", """
* Data: array of Login, speed and kph mode
* Example: ["nerpson", "999", "1"]
""");
It's just suggestion for checkpoint data (if you wish send more or less values), maybe also when player retires there would be nice to have callback... perhaps also when he finishes the race, but it is not that important for now.

Code: Select all

XmlRpc::SendCallbackArray("Doppler_onCheckpoint", [Event.Player.Login,  TL::ToText(RoundedSpeed), TL::ToText(S_KPH)]);
:idea: Note, all values in array needs to be same type.

Would be cool to have support for localrecords with this game mode,
Reaby

User avatar
undef.de
Posts: 1838
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: Doppler - A new competitive gamemode!

Post by undef.de » 22 Jul 2015, 09:31

reaby wrote:@Undef, you are way too fast to add support... even if it doesn't send any data (yet) about the scores :D
Someone has to start. =)
reaby wrote:

Code: Select all

XmlRpc::RegisterCallback("Doppler_onCheckpoint", """
* Data: array of Login, speed and kph mode
* Example: ["nerpson", "999", "1"]
""");
Why not just send the LibXmlRpc_OnWayPoint instead of an custom one???
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

reaby
Posts: 936
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Doppler - A new competitive gamemode!

Post by reaby » 22 Jul 2015, 11:19

undef.de wrote:Why not just send the LibXmlRpc_OnWayPoint instead of an custom one???
Yes, why not, but it's really his decicion to which path to take, as the main event loop already passOn the time infos for waypoints... So replacing it would be more difficult that just sending additional custom event :)
Also one remark is that it is quite challenging to debug if you dont' have dedicated server installed (since there is no way to see the emitted xmlrpc calls) :D

User avatar
TGYoshi
Posts: 811
Joined: 15 Mar 2011, 16:59

Re: Doppler - A new competitive gamemode!

Post by TGYoshi » 22 Jul 2015, 11:47

undef.de wrote:Why not just send the LibXmlRpc_OnWayPoint instead of an custom one???
Just re-map whatever xml-rpc event is received to the format you internally use? If your controller doesn't support that, it's a seriously huge design flaw. Forcing everyone to whatever undocumented format Nadeo uses isn't a great idea either.
In the end, the way Nadeo implemented scripted xml-rpc callbacks is terrible anyway.
=3

User avatar
undef.de
Posts: 1838
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: Doppler - A new competitive gamemode!

Post by undef.de » 22 Jul 2015, 12:12

TGYoshi wrote:[...] undocumented format [...]
http://doc.maniaplanet.com/dedicated-se ... OnWayPoint
TGYoshi wrote:In the end, the way Nadeo implemented scripted xml-rpc callbacks is terrible anyway.
As we have currently this implementation, be sure it will not be changed in the near future.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

User avatar
TGYoshi
Posts: 811
Joined: 15 Mar 2011, 16:59

Re: Doppler - A new competitive gamemode!

Post by TGYoshi » 22 Jul 2015, 12:35

Wow, it's actually documented. Wouldn't have expected that from Nadeo! I wonder why they got rid of the JSON format now, it's at least more sensible than an array of random strings, even though it's slightly more heavy on data (but who cares, it's usually ran locally anyway).
Well, guess we'll have to deal with this mess. ;)
=3

User avatar
undef.de
Posts: 1838
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: Doppler - A new competitive gamemode!

Post by undef.de » 22 Jul 2015, 17:32

reaby wrote:
undef.de wrote:Why not just send the LibXmlRpc_OnWayPoint instead of an custom one???
Yes, why not, but it's really his decicion to which path to take, as the main event loop already passOn the time infos for waypoints... So replacing it would be more difficult that just sending additional custom event :)
Also one remark is that it is quite challenging to debug if you dont' have dedicated server installed (since there is no way to see the emitted xmlrpc calls) :D
Sorry i overlooked that you have changed the response data, so yes in that case it makes sense to send a custom event instead of using LibXmlRpc_OnWayPoint!

But the name should be Doppler_OnWayPoint to keep the "meaning equal" with the LibXmlRpc one.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

User avatar
Nerpson
Translator
Translator
Posts: 1520
Joined: 27 Sep 2013, 18:02
Location: France
Contact:

Re: Doppler - A new competitive gamemode!

Post by Nerpson » 29 Aug 2015, 00:47

New update!

:yes: :pil

Look the main topic for more detail.
ImageImageImageImage

Post Reply

Return to “Community / Events / CHANNELS”

Who is online

Users browsing this forum: No registered users and 2 guests