turn off plugin presentation in final score board

UASECO is a fork of the XAseco2/1.03 controller for Trackmania and has been overhauled to support the Modescript Gamemodes of Trackmania².

Moderators: undef.de, NADEO

Post Reply
User avatar
bern
Posts: 121
Joined: 26 Dec 2013, 21:38
Contact:

turn off plugin presentation in final score board

Post by bern »

hi undef.de !!!

I know that these days you are very busy
but I show you this photo
What would be the string or order to write in the plugin
so that the panel did not appear in the final classification presentation of each player?

I put a picture here
A greeting.

Image
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: turn off plugin presentation in final score board

Post by undef.de »

It depends on how you have added them. Are these Widgets made with Records-Eyepiece placements?
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
bern
Posts: 121
Joined: 26 Dec 2013, 21:38
Contact:

Re: turn off plugin presentation in final score board

Post by bern »

undef.de wrote: 10 May 2020, 22:04 It depends on how you have added them. Are these Widgets made with Records-Eyepiece placements?
Hi undef.de
No récords-eyepiece.
They are independent plugins.
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: turn off plugin presentation in final score board

Post by undef.de »

Ah, got it. If you want to hide these widgets, then you have to send a empty widget with the same ManiaLinkId at the event onBeginPodium or onEndMap (see https://www.uaseco.org/development/events.php#Eventlist for details).
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
bern
Posts: 121
Joined: 26 Dec 2013, 21:38
Contact:

Re: turn off plugin presentation in final score board

Post by bern »

Hello undef.de
With you I am always playing crossword puzzles, since I always have a hot brain from so much thinking !!!! :roflol:
I have done what you have told me ,, but the boot code of uaseco tells me that "onEndMap" is not found
I think something is missing
regards :)
I put a picture of you.

Image
Image
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: turn off plugin presentation in final score board

Post by undef.de »

First of all, better use onEndMapRanking, that's called earlier.

The error means, that the funtion off() does not exists, just add it:

Code: Select all

	public function off ($aseco, $race) {
		// your code
	}
Anyway, I would prefer to name the function onEndMapRanking() instead of off(). :thumbsup:
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
bern
Posts: 121
Joined: 26 Dec 2013, 21:38
Contact:

Re: turn off plugin presentation in final score board

Post by bern »

Hello
in the end ,, testing ,, I got it to work ,, your proposed solution ..
now when finishing a map the "widgets" are turned off
but they don't reappear on the next map
How can i fix it? missing?
Greetings

Code: Select all

		// Register events to interact on
		$this->registerEvent('onSync',				'onSync');
		$this->registerEvent('onPlayerConnect',			'onPlayerConnect');
		$this->registerEvent('onPlayerFinish',			'onPlayerFinish');
		$this->registerEvent('onPlayerManialinkPageAnswer',	'onPlayerManialinkPageAnswer');
		$this->registerEvent('onEndMapRanking',			'onEndMapRanking');	
		

		// Register chat commands
		$this->registerChatCommand('bern', 'chat_bern', 'ligne de commande chat');

Code: Select all

	public function onEndMapRanking ($aseco) {
		$xml = '
		<manialink id="6168496818450606984" version="3"></manialink>';
		$aseco->sendManialink($xml, false);		
	}
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: turn off plugin presentation in final score board

Post by undef.de »

You have to send them again at the event onLoadingMap, but now with the wanted content (not empty).
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
bern
Posts: 121
Joined: 26 Dec 2013, 21:38
Contact:

Re: turn off plugin presentation in final score board

Post by bern »

Perfect now works well !!!!
THX undef.de :clap: :3 :thumbsup:
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: turn off plugin presentation in final score board

Post by undef.de »

:thumbsup:
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.
Post Reply

Return to “UASECO”

Who is online

Users browsing this forum: No registered users and 2 guests