Teamranking plugin 1.12 for RASP (TMU) - incl. Teamchat

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Teamranking plugin 1.12 for RASP (TMU) - incl. Teamchat

Post by Mistral » 30 Nov 2006 20:39

Get it: Download v1.12
@Edit 02.09.2008 - New download link - hope i uploaded the correct source

History:
1.12 - minor bugfixes, made standalone again.
1.1 - added /team add and /team remove for admins; replaced hardcoded "100" with "$maxrecs"
1.01 - fixed typo that got uploaded with wrong "1.00 - release"
1.00 - teams with only one member get an average of 100 (no "team"); teams with no members become delete on trackchange.
0.94 - added $precision for "/team list" also
0.93 - added $precision for decimals of rank when displayed
0.92 - first release

What am I:
The plugin will show a toplist of local registered teams based on the members average. It will compute a team average out of _all_ member's player average.
The basic idea is to aggregate players already existing statistics as a team.
A message feature is included for your own team.

things done so far:
/topteams - similar to /top5, just for teams (top15)
/team - command for teammanagement (just type it for online help and show your team)
/team create <shortname> <adminpass> <playerpass>
/team join <shortname> <playerpass>
/team add <login> <shortname> - server admins only - forces player to join team
/team leave
/team remove <login> - server admins only - forces player to leave his team
/team list [shortname] - show members and individual ranks (mutlipage)
/team rename <adminpass> <longname>
/team playerpass <adminpass> <newplayerpass>
/team adminpass <oldadminpass> <newadminpass>
/team kick <adminpass> <playerid>
/teamrank - will be similar to /rank - you can configure it to be shown automatically on every new track
/team msg - send a message to your online teammates
/tm - alias for /team msg

Changes during betatest:
Every team has a shortname now (teamname - f.e. clantag) and a longname.
/team list finished
/team rename finished
/team playerpass finished
/team adminpass finished
team rank is recalculated immediately on join/leave of a member
fixed issue when longname contained blanks
/team kick finished
/teamrank finished
/team msg finished
/tm alias for /team msg added

How to:
- create a team
- give it a long name (/team rename)
- tell shortname and playerpass to your teammembers and let them join
- watch your teamranking (/topteams)
- drive like mad
- watch your teamranking (/topteams)
- chat with your team mates (/team msg alias /tm)
Last edited by Mistral on 25 Mar 2007 07:48, edited 33 times in total.

eyez
Pit Crew
Pit Crew
Posts: 379
Joined: 15 Mar 2006 17:46
Location: Aberdeen, UK
Contact:

Post by eyez » 30 Nov 2006 22:54

Nice idea. :)

I dont use php aseco so I wont be testing it. Can I ask how the calculation works? Does it draw from the rasp calculations or make its own?
AMD X2 3800+
1gb Dual-channel RAM (2x512 kingston DDR400)
PowerColor Radeon x700 256mb GFX
SoundBlaster Audigy 2 ZS Platinum Pro

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 30 Nov 2006 23:21

eyez wrote:Nice idea. :)

I dont use php aseco so I wont be testing it. Can I ask how the calculation works? Does it draw from the rasp calculations or make its own?
Its just using the rs_rank table for all members, so the teamranking is generated immediately (next track). calculation is done on every new track for every team:

Code: Select all

$query = "SELECT round(sum(r.avg)/count(r.avg)) FROM ".$membertable." t, rs_rank r where t.playerid=r.playerid and t.teamid=".$teamid;
PS: i meant join the server, create a team and get some rank. i wont spread half done code.

User avatar
El Fuego
solid chaser
solid chaser
Posts: 1097
Joined: 27 Oct 2006 11:00
Owned TM-games: TMUF, TM2 C/S
Location: Nae too far frae Glesgie
Contact:

Post by El Fuego » 01 Dec 2006 08:51

This looks like a nice extension of my TEAMCHAT plugin, but taking it much further. If this plugin integrates the functionality of my TEAMCHAT plugin I'd probably use this instead. :)

If you want/need any help in debugging/enhancing let me know and I'll gladly help. I'll happily test it out on my TMU server to work out any other bugs that might be there which may or may not be related to language (e.g. my PC setup is English, yours is probably German). 8)
Cheers!
.FUEY.
Diary Of A Mad Man

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 01 Dec 2006 09:19

El Fuego wrote:This looks like a nice extension of my TEAMCHAT plugin, but taking it much further. If this plugin integrates the functionality of my TEAMCHAT plugin I'd probably use this instead. :)

If you want/need any help in debugging/enhancing let me know and I'll gladly help. I'll happily test it out on my TMU server to work out any other bugs that might be there which may or may not be related to language (e.g. my PC setup is English, yours is probably German). 8)
I have seen the implemetation of your plugin and there were some issues i didnt want to deal with (remember my post before you startet your plugin?):
- only server admins have permissions (no team admins)
- the teamname in the players table is NULL in TMU for all (probably cuz of the change to groups now, i dont wann touch this)
- players dont have control which team they are in

so i went a completely different way, implementing my own tables into the database:
teams table:
- teamid
- shortname
- longname
- adminpass (knowing this password you can manage the team)
- playerpass (knowing this password you can join the team - and you can leave it if you want)
- average (computed based on members average from rs_rank)

teammembers table:
- playerid (from players table)
- teamid (from teams table)

a command /team msg should be easy to implement - even giving the player itself control if they want to be a part of the chat or not would need a slight change to the members table (new column listening, /team chat [on|off]). might be a nice extension - will think about if todo list is done.

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 01 Dec 2006 14:58

Teamname won't be empty in the next ASECO TMU release. I found out where NADEO hid it.

For anyone who's had the 2GB long log file when the TMU/TMN server crashes, I found a way to test for it and stop ASECO after 1 error.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

User avatar
El Fuego
solid chaser
solid chaser
Posts: 1097
Joined: 27 Oct 2006 11:00
Owned TM-games: TMUF, TM2 C/S
Location: Nae too far frae Glesgie
Contact:

Post by El Fuego » 01 Dec 2006 15:34

Cool. Any timeline for the TMU Aseco update?
Cheers!
.FUEY.
Diary Of A Mad Man

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 01 Dec 2006 15:48

Which Team will a player be in? I didnt find anything at Nadeo where i can join a team ... just this groups. Which group is in the "Team" column when a player is member of three groups? I dont expect it to work like we want it to.

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 01 Dec 2006 16:01

Mistral wrote:Which Team will a player be in? I didnt find anything at Nadeo where i can join a team ... just this groups. Which group is in the "Team" column when a player is member of three groups? I dont expect it to work like we want it to.
Good point, we'll have to find out what's in the data before I can go much further. I'll be making some changes over the weekend and I'll put in some debug code so we can find out what the data looks like (/admin debug will enable/disable it).

Who has a server with regulars know to be in groups? ShredCo isn't that busy and I'd hate to get hung up on testing for lack of people.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 01 Dec 2006 16:13

we have a group, i have even two ... Mistral World Selection - Germany/Bavaria/Munich

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Post by Assembler Maniac » 01 Dec 2006 16:16

Mistral wrote:we have a group, i have even two ... Mistral World Selection - Germany/Bavaria/Munich
Great. When I'm ready to test I'll send over the files for testing, or you can send a few players over to ShredCo. Either way we get to see what's in the data from the server and adjust code as needed.
Asus P4C800-E Deluxe
P4 3.2Ghz @ 3.35Ghz
2G Kingston Hyper-X DDR 2
ATI Radeon X850 XT Platinum 256M
Sound Blaster Audigy II
2x 120G Maxtor Hard drives
HDTV Tuner Card (Fusion 5 Gold)

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 01 Dec 2006 16:29

Assembler Maniac wrote:
Mistral wrote:we have a group, i have even two ... Mistral World Selection - Germany/Bavaria/Munich
Great. When I'm ready to test I'll send over the files for testing, or you can send a few players over to ShredCo. Either way we get to see what's in the data from the server and adjust code as needed.
have been there - alone ^^ ... why you dont just join some groups yourself? ;) create them if neccessary :)

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Post by Mistral » 01 Dec 2006 18:27

The plugin might be finished. Thanks for the few people that where testing.

If anyone is interested in being a part of the extended beta -> PM me to get the plugin.

I'll give a beta-license to the first 1000 testers ;)

User avatar
utal
speedy pilot
speedy pilot
Posts: 408
Joined: 30 Apr 2006 01:25
Owned TM-games: TMN, TMU, TMO, TMS
Location: Massamá, Portugal
Contact:

Post by utal » 01 Dec 2006 19:00

i'm going to install right now!

tks Mistral :)

User avatar
utal
speedy pilot
speedy pilot
Posts: 408
Joined: 30 Apr 2006 01:25
Owned TM-games: TMN, TMU, TMO, TMS
Location: Massamá, Portugal
Contact:

Post by utal » 01 Dec 2006 19:45

instaled... and worked :)

now lets populate that team list ;)

tks!!
utal

Post Reply