[xaseco]plugin: Specific widget score for gamemode "Team"

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

ben*j
pedestrian
pedestrian
Posts: 6
Joined: 10 Jul 2010 14:55
Owned TM-games: TMU

Re: [xaseco]plugin: score widget for gamemode "Team"

Post by ben*j » 18 Sep 2011 21:24

hi spyker

I tested your plugin, it works perfectly but the only problem is that I feel like the plugin forces the display of the players, otherwise everything else seems to work properly.

I have Xaseco1.12 version, on 1.14 The plugin does not work

is there a solution to remove this?

Thank you for the answer

Bye

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: score widget for gamemode "Team"

Post by spyke » 27 Oct 2011 17:11

yes,

you have a solution here ^^
http://plugins.xaseco.org/info.php?id=88

use this one : spykescore_v113(1.0).zip

bye

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: [xaseco]plugin: score widget for gamemode "Team"

Post by oliverde8 » 25 Nov 2011 09:05

hi,
I just started using the plugin, really fantastic for Team matches. We will be testing it better this weekend :thumbsup:

I just have a error when your plugin is activated on Rounds mode

Code: Select all

PHP Fatal error:  Unsupported operand types in /home/trackmania/xaseco/xaseco/includes/basic.inc.php on line 155
I added

Code: Select all

if ($aseco->server->gameinfo->mode != 2) return;
at the begining of

Code: Select all

function match_finish($aseco, $finish_item) 
{
To solve the problem

I am runing your plugins version 1.4 and Xaseco 1.14
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: score widget for gamemode "Team"

Post by spyke » 08 Dec 2011 17:18

hi oliverde ,

you don't have the right version ^^ -> 1.4 is for xaseco 112 ^^ :)

so idem that ben*j ... use this one : http://plugins.xaseco.org/info.php?id=88

spykescore_v113(1.0).zip

bye

Northern Lights
sunday driver
sunday driver
Posts: 64
Joined: 27 Apr 2010 17:30
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by Northern Lights » 11 Apr 2012 22:07

.....
Please can someone explain how the following instructions from the xaseco website for this plugin are done ?

It says :
deactivate fufi localrecordswidget, dedimaniawidget and liverankingswidget in state id 2 in fufi_widgets_xaseco.xml

I can access these files in my server but I just need to know how you deactivate them.

Also, how is this 'state id 2 deactivated in : fufi_widgets_xaseco ?
</state>
<state id="2"> <!--Clicked state without TMX Info-->
<x>44.3</x>
<y>39.3</y>
</state>


many thanks for help, David
Last edited by Northern Lights on 13 Apr 2012 16:55, edited 1 time in total.

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by Leigham » 11 Apr 2012 23:49

You can disable the specific widgets by settings the <enabled> function to false. So for the localrecordswidget as an example:

Code: Select all

	<localrecordswidget>
		<enabled>true</enabled>
		<title>Local Records</title>
		<states>
		
			<!-- state ids in this case correspond to the game mode ID, making it possible to configure or disactivate the plugin in specific modes -->
			<!-- 0..Rounds 1..Time Attack, 2..Team, 3..Laps, 4..Stunts, 5..Cup -->
		
			<state id="0"> <!--Rounds state-->
				<enabled>true</enabled>
				<x>-64.7</x>
				<y>21.5</y>
				<entrycount>8</entrycount>
				<topcount>3</topcount> <!--shows the top X players inside the widget-->
				<width>14.5</width>
				<titleoffsetx>-2.25</titleoffsetx>
				<displaytitle>true</displaytitle>
			</state>
			
			<state id="1"> <!--Time Attack state-->
				<enabled>true</enabled>
				<x>49.5</x>
				<y>15</y>
				<width>15.5</width>
				<entrycount>11</entrycount>
				<topcount>3</topcount>
				<titleoffsetx>2.25</titleoffsetx>
				<displaytitle>true</displaytitle>
			</state>

			<state id="2"> <!--Team Mode state-->
				<enabled>false</enabled>        <======== CHANGE THE TRUE HERE TO FALSE
				<x>-64.7</x>
				<y>21.5</y>
				<width>14.5</width>
				<entrycount>14</entrycount>
				<topcount>5</topcount>
				<titleoffsetx>-2.25</titleoffsetx>
				<displaytitle>true</displaytitle>
			</state>
			
			.......
	</localrecordswidget>
As you can see, under <state id ="2"> for this widget there is an enabled option. Enter false in there and do the same for the other sections that need disabling in the 'fufi_widgets_xaseco.xml file.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by spyke » 13 Apr 2012 14:56

if you want to use that plugin with "records-eyepiece" .... i can rewriting it.

say me.

spyker

Northern Lights
sunday driver
sunday driver
Posts: 64
Joined: 27 Apr 2010 17:30
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by Northern Lights » 13 Apr 2012 17:03

Would that make it easier if I had the records eyepiece ? I am someone who has never used it you see.
And would it mean that I wouldn't have to keep disabling and enabling the local records and other files all of the time that I was using this plugin for 'Gamemode Team' ? :-?

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by spyke » 13 Apr 2012 21:02

hum ... fufi-widget and records-eyepiece are two separate plugins, and they do not work together.
Also, if the plugin "fufi-widget" is more familiar to you, continue with it !
in all case, you would have to set "enable" to "true" or "false" in some "xml" files.
to disable automaticly (set enabled to "false") local records, dedimania records etc... you also can add (if you have enough knowledges) into my plugin something like this (only in gamemode 2 !) :

Code: Select all

$doc = new DOMDocument;
$file = 'fufi_widgets_xaseco.xml';
$doc->preserveWhiteSpace = FALSE;
$doc->load($file);
$doc->formatOutput=TRUE;
$records=$doc->getElementsByTagName('localrecordswidget')->item(0);
$state = $records->getElementsByTagName('state')->item(0);
$id = $state->getElementsByTagName('state id="1"')->item(0);
$enabled = $id->getElementsByTagName('enabled')->item(0);
$enabled->nodeValue="false";
$doc->save($file);
and same thing for "dedimaniawidget" and "liverankingswidget" etc...

but i think that it' s not usefull with fufi-widget...
may be interesting with records-eyepiece ^^

spyker

User avatar
Electron
cyclist
cyclist
Posts: 38
Joined: 25 Jun 2010 18:20
Owned TM-games: TMUF, TM2
Manialink(s): GbxDump
Contact:

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by Electron » 14 Apr 2012 00:04

Why do we need to disable "'localrecordswidget'" and "dedimaniawidget" ("liverankingswidget" is disabled by default) in "'fufi_widgets_xaseco.xml"?
Only to make room for the infos widget and the teamlist on the screen? Or is this necessary so that your plug-in works properly?

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by spyke » 14 Apr 2012 09:01

hi,
Electron wrote:Why do we need to disable "'localrecordswidget'" and "dedimaniawidget" ("liverankingswidget" is disabled by default) in "'fufi_widgets_xaseco.xml"?
good question...
Only to make room for the infos widget and the teamlist on the screen?
yes ^^ and only if you want it !
Or is this necessary so that your plug-in works properly?
it's not nessecary. plugin works properly in all case.

spyker

spyke
cyclist
cyclist
Posts: 48
Joined: 11 Mar 2011 16:41
Owned TM-games: TMU

Re: [xaseco]plugin: Specific widget score for gamemode "Team

Post by spyke » 30 May 2012 14:28

asap .... i give you an update for xaseco 115 ^^

Post Reply