[Xaseco2]plugin : TeamRace

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

Moderators: Xymph, TM-Patrol

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

[Xaseco2]plugin : TeamRace

Post by Maverick00 » 02 Jun 2013 15:33

Hello,

I just offer you a plugin to manage the games team mode.

Version 3.0 --> http://teamjtt.fr/TM/Plugins/TeamRace/V.3.0.zip

Increasingly, the internet addresses have changed for the images that are in the plugin because the server that hosted the changed.

Version 2.4 --> http://teamjtt.fr/TM/Plugins/TeamRace/V.2.4.zip
after the update of TM, the score of team blue isn't right

Version 2.3 --> http://teamjtt.fr/TM/Plugins/TeamRace/V.2.3.zip
adding names of teams to choose from the menu

Version 2.2 --> http://teamjtt.fr/TM/Plugins/TeamRace/V.2.2.zip
Fixed display of "tournament" at the next map.
Just the file Affichage_team_race.php change at the line 613.

Update version V.2.1 : http://teamjtt.fr/TM/Plugins/TeamRace/V.2.1.zip
I modified the plugin for a restart of the map retaining the previous scores by the command /teamrace remap, or via the menu.


Update to the version 2.0 : http://teamjtt.fr/TM/Plugins/TeamRace/V.2.0.zip

V 2.0 : The results of the saved games are available on a web page

Download V 1.0: http://teamjtt.fr/TM/Plugins/TeamRace/TeamRace.zip

More explications : http://teamjtt.xooit.fr/t990-Plugin-TeamRace.htm

This keeps:
the number of won maps
the number of points earned
history scores for each map

We may at any time change the current scores.

The visual appearance is completely changed by the menu for quick use, and by chat commands for further customize colors.

Background images are changed by using the menu configuration file TeamRace.xml, but also by the chat command.
For example, if you link to an image found on the internet, just type
/ teamrace fond {copy the link} and the image changes automatically -> http://teamjtt.fr/TM/Plugins/TeamRace/Image_url.jpg

The naming of teams can be done by using the menu by the names who are in the configuration file, or by an order of the chat by copying the tag, including special characters.

The link "previous score" allows any player, even not being admin, review scores previous maps.

The configuration file allows TeamRace.xml:

retain tags teams to access via the menu
to have links clutter to access via the menu
to keep all the colors of the display at start of XAseco

The plugin can be enabled or disabled on the server directly from the "display" menu on or off.

The "start" menu resets all counters to zero and restart the map.

Ingame : http://teamjtt.fr/TM/Plugins/TeamRace/i ... nerale.jpg
Image of funds available through the menu : http://teamjtt.fr/TM/Plugins/TeamRace/fonds.jpg
example of clutter by controlling chat with an internet address : http://teamjtt.fr/TM/Plugins/TeamRace/Image_url.jpg
Showing scores for each of the game map : http://teamjtt.fr/TM/Plugins/TeamRace/P ... scores.jpg
Showing chat commands : http://teamjtt.fr/TM/Plugins/TeamRace/Commande_chat.jpg
Display control chat colors : http://teamjtt.fr/TM/Plugins/TeamRace/C ... colors.jpg
Menu for selecting pre funds returned to the configuration file : http://teamjtt.fr/TM/Plugins/TeamRace/Menu_fond.jpg
Menu for the choice of colors : http://teamjtt.fr/TM/Plugins/TeamRace/Menu_colors.jpg
Menu for selecting pre teams returned to the configuration file : http://teamjtt.fr/TM/Plugins/TeamRace/Menu_team.jpg

the next version will save the results in a database and display results on a web page
Last edited by Maverick00 on 21 Jan 2015 18:38, edited 12 times in total.

Xymph
Pit Crew
Pit Crew
Posts: 5653
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [Xaseco2]plugin : TeamRace

Post by Xymph » 03 Jun 2013 17:06

Maverick00 wrote:I just offer you a plugin to manage the games team mode.

Download : http://95.130.9.140/TM/Plugins/TeamRace/TeamRace.zip

More explications : http://teamjtt.xooit.fr/t990-Plugin-TeamRace.htm
explanations :wink:
Maverick00 wrote:The naming of teams can be done by using the menu prérentré name in the configuration file,
Please translate that word too.
Maverick00 wrote:or by an order of the cat by copying the tag, including special characters.
Cat? What does an animal have to do with this?

What's not clear here is whether this plugin is aimed at XAseco(1), XAseco2, or both. The events it responds to are from X2, but the screenshots from X1. What's up with that? :?
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco(2)]plugin : TeamRace

Post by Maverick00 » 03 Jun 2013 19:46

Hi,

I'm sorry for my bad english.

This plugin works for xaseco2.

The screenshots are from TM2 stadium.

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 09 Jun 2013 16:56

Update to the version 2.0

http://95.130.9.140/TM/Plugins/TeamRace/V.2.0.zip

matches can be save and display on a web page
with a new command in the game : /teamrace save or by click save in the menu teamrace

Image

We can see :
  • Date and name of the match
  • Name of each team
  • Scores of the map
  • Scores of the points
  • history of each map with the points and name of players, in each team blue and red, when you hover your mouse over each map
administration page allows you to delete games

Image

For cons, I can not restart XAseco if I put the following lines to be Include: Third-Party Plugins UpToDate :?

Code: Select all

Aseco::registerEvent('onSync', 'undef_sync');
function undef_sync($aseco){
$aseco->plugin_versions[] = array(
      'plugin'   => 'Affichage_team_race.php',
      'author'   => 'Maverick00',
      'version'   => '2.0'
	);
}
These lines are not active in the plugin for now

wronski
highway camper
highway camper
Posts: 4
Joined: 12 Jun 2013 17:01
Owned TM-games: TMNF, TMUF, TM²C
Location: Germany
Contact:

Re: [Xaseco2]plugin : TeamRace

Post by wronski » 12 Jun 2013 17:17

Great plugin so far!


There are a few more features that would be nice here, e.g.:

1) the possibility to define the standard style and the shown team names etc. in the .xml-file

2) after map restart a reset of all points to the standing before, because you often have a warmup duration that exceeds the normal warmup phase. Now you always have to adjust the points manually.

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 13 Jun 2013 09:39

If you want to display the names of the first two team xml file to start xaseco, you can change the code on line 243 :

Code: Select all

if(file_exists('TeamRace.xml')){
		$conf_file = 'TeamRace.xml';
		if ($xml = $aseco->xml_parser->parseXml($conf_file)) {
		
				$resultweb=$xml['TEAMRACE']['RESULT_WEB'][0]['ADRESS_WEB'][0];
				$nomdesteams[0]=$xml['TEAMRACE']['TEAMS'][0]['TEAM'][0]['TAG'][0];
				$nomdesteams[1]=$xml['TEAMRACE']['TEAMS'][0]['TEAM'][1]['TAG'][0];
			$id=1;
			foreach ($xml['TEAMRACE']['COLORS'][0]['COLOR'] as $color) {
				$textcolor[$id]=$color;
				$id++;
			}
		}	
	}
   $nombredemap=1;
   $nomdelamp[2]="";
   $affiche="on";
   $nomimage='http://95.130.9.140/TM/IMG/fondteamrace.png';
   $scoretotal[0][0]=0;
	$scoretotal[1][0]=0;
	$scoretotal[0][1]=0;
	$scoretotal[1][1]=0;
	$scoretotal[0][2]=0;
	$scoretotal[1][2]=0;
	$playerblue[0]='';
   //$nomdesteams[0]="Team Bleue";
	//$nomdesteams[1]="Team Rouge";
	$nomrencontre="Tournament";
} 
new lines :

Code: Select all

$nomdesteams[0]=$xml['TEAMRACE']['TEAMS'][0]['TEAM'][0]['TAG'][0];
				$nomdesteams[1]=$xml['TEAMRACE']['TEAMS'][0]['TEAM'][1]['TAG'][0];
lines changed :

Code: Select all

 //$nomdesteams[0]="Team Bleue";
	//$nomdesteams[1]="Team Rouge";
And with the command /teamrace start you have already the reset of all scores.

wronski
highway camper
highway camper
Posts: 4
Joined: 12 Jun 2013 17:01
Owned TM-games: TMNF, TMUF, TM²C
Location: Germany
Contact:

Re: [Xaseco2]plugin : TeamRace

Post by wronski » 13 Jun 2013 18:54

Thanks for your help with the teams!

The problem with "/teamrace start" is that really all points are set to zero, that means map-points, total-points and points of the current map. When you now have a match and you have already played a few maps, but you want to restart the current map, then with "/teamrace start" the standings of the whole match are deleted. So a further command like for example "\teamrace mapres" would be nice, which restarts the map and only sets the points of the current map to zero, but lets total-points and map-points untouched.

Example:
Map points: 1 - 1
Total points: 14 - 6
Current map: 3 - 0

After restart of the current map it should be:
Map points: 1 - 1
Total points: 14 - 6
Current map: 0 - 0

With the current plugin you have instead (with /admin res):
Map points: 2 - 1
Total points: 17 - 6
Current map: 0 - 0

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 14 Jun 2013 19:50

I modified the plugin for a restart of the map retaining the previous scores by the command / teamrace remap, or via the menu.

Enjoy !

Update version V.2.1 : http://95.130.9.140/TM/Plugins/TeamRace/V.2.1.zip
Last edited by Xymph on 14 Jun 2013 20:47, edited 1 time in total.
Reason: Keep http:// in your URLs so the forum links them automatically

wronski
highway camper
highway camper
Posts: 4
Joined: 12 Jun 2013 17:01
Owned TM-games: TMNF, TMUF, TM²C
Location: Germany
Contact:

Re: [Xaseco2]plugin : TeamRace

Post by wronski » 15 Jun 2013 15:50

Now it works, thank you very much! :thumbsup:

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 10 Sep 2013 15:11

An error has occurred in the plugin file and does not display the name of the "tournament" when the map goes. Here is the corrected version. Only Affichage_team_race.php file changes to line 613. It is therefore not necessary to copy all the files for those who already have the plugin.

Version 2.2 --> http://95.130.9.140/TM/Plugins/TeamRace/V.2.2.zip

wronski
highway camper
highway camper
Posts: 4
Joined: 12 Jun 2013 17:01
Owned TM-games: TMNF, TMUF, TM²C
Location: Germany
Contact:

Re: [Xaseco2]plugin : TeamRace

Post by wronski » 03 Oct 2013 18:38

Do you think you can release a version for Xaseco1 aswell? That would be awesome!

weasel
speedy pilot
speedy pilot
Posts: 334
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: [Xaseco2]plugin : TeamRace

Post by weasel » 03 Oct 2013 20:56

wronski wrote:Do you think you can release a version for Xaseco1 aswell? That would be awesome!
a big +1 to that.

That would be awesome.

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 18 Jan 2014 13:44

Update !

Version 2.3 --> http://95.130.9.140/TM/Plugins/TeamRace/V.2.3.zip
adding names of teams to choose from the menu

pr0ducer
highway camper
highway camper
Posts: 4
Joined: 29 Jan 2014 08:40
Owned TM-games: TM2 Stadium

Re: [Xaseco2]plugin : TeamRace

Post by pr0ducer » 29 Jan 2014 08:48

Hi, Maverick00.
I have a question. Can I see how many points were received by each player on the map? As in FAST.

Maverick00
tricycle manager
tricycle manager
Posts: 28
Joined: 27 May 2013 20:58
Owned TM-games: TMU

Re: [Xaseco2]plugin : TeamRace

Post by Maverick00 » 24 Feb 2014 13:18

not yet, it will update

Post Reply