[XASECO] Plugin: Nickname Sync 1.1

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

Moderators: Xymph, TM-Patrol

.anDy
pedestrian
pedestrian
Posts: 13
Joined: 28 Nov 2010 20:46
Owned TM-games: TMUF
Location: Germany

[XASECO] Plugin: Nickname Sync 1.1

Post by .anDy » 20 Feb 2011 14:15

Everybody knows it, that the nicknames from local records and global records are no longer equal after a while.
This happens if a player changes his/her nickname and plays on other servers …

This plugin synchronize the nicknames from global records with your database. So the nicknames in your widgets will be equal ;)

Supported global databases:
• Dedimania
• Gerymania

Tested with:
• XASECO v1.12, XASECO v1.13
• Gerymania 0.9.4
• Records Eyepiece 0.9.6a - Records Eyepiece 0.9.9

Installation:
Just add the following line to your "plugins.xml" after all other plugins and copy “plugin.nickname_sync.php” to your plugins folder.

Code: Select all

<plugin>plugin.nickname_sync.php</plugin>
Changelog:
• Free up memory after SQL-Query
• Added global "Plugins Register Pool" to enabling version check (for plugin.third-party-plugins-uptodate.php)
• No longer updating "UpdatedAt" on database

Download v1.1

Have Fun!
.anDy
Last edited by .anDy on 01 Jul 2011 10:35, edited 3 times in total.

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by reaby » 20 Feb 2011 18:14

nice one!

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1309
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by undef.de » 20 Feb 2011 18:27

Very nice.... i love it! :pil
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by Ant » 21 Feb 2011 01:23

This is a really good idea, hopefully XAseco stats will update the nicknames as well when this plugin is executed - I see no reason why it wouldn't though.

Thanks for this :D

Edit: It doesn't seem to update on XAseco Stats actually, maybe thats because the person I tested hasn't logged into trackmania for ages, I don't know. Is it possible to sync with Nadeos DB as well though ?

The person I tested on the stats you can see here

Edit2: Sorry, it seems to have updated now - I think I just needed to wait a while, I'm too impatient lol

.anDy
pedestrian
pedestrian
Posts: 13
Joined: 28 Nov 2010 20:46
Owned TM-games: TMUF
Location: Germany

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by .anDy » 21 Feb 2011 15:48

Ant wrote: It doesn't seem to update on XAseco Stats actually, maybe thats because the person I tested hasn't logged into trackmania for ages, I don't know. Is it possible to sync with Nadeos DB as well though ?
Maybe you understand the functionality of the plugin wrong. The plugin synchronizes the nicknames of the 30 dedimania/gerymania records with your database...
So to have the latest nickname of a player:
• player needs a global record on a track
• this track must be loaded with running dedimania/gerymania plugin

Your scenario, that all nicknames are uptodate isn't possible with that plugin. A plugin with that functionality in xaseco would affect the performance, especially with thousands of players ;)
If you want to update all nicknames, you should create a script (independent of xaseco) which gets the latest nicknames from nadeo and run it every 24h via cronjob or something like that.

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by Ant » 21 Feb 2011 15:52

Oh ok, thanks for the explanation - I might look into creating a script like that then, could take a while though as my php skills aren't the best :wink:

TheBigG
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 16 Oct 2010 19:45
Owned TM-games: TMN! TMF
Location: Germany

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by TheBigG » 21 Feb 2011 16:34

hi i don't know if it is a bug of xaseco or your plugin i did test your plugin and after starting xaseco stats (activiti) is wrong
Image
How i can delete that players from database?
xaseco is version 1.12
record eyepiece version 0.96a

.anDy
pedestrian
pedestrian
Posts: 13
Joined: 28 Nov 2010 20:46
Owned TM-games: TMUF
Location: Germany

Re: [XASECO] Plugin: Nickname Sync 1.0

Post by .anDy » 21 Feb 2011 16:57

TheBigG wrote:hi i don't know if it is a bug of xaseco or your plugin i did test your plugin and after starting xaseco stats (activiti) is wrong
How i can delete that players from database?
xaseco is version 1.12
record eyepiece version 0.96a
Must be happened before you use my plugin...
I will send you the solution for that via pm ;)

.anDy
pedestrian
pedestrian
Posts: 13
Joined: 28 Nov 2010 20:46
Owned TM-games: TMUF
Location: Germany

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by .anDy » 27 Mar 2011 19:12

There is an update out there... see my first post

Pastis
sunday driver
sunday driver
Posts: 53
Joined: 21 Jan 2010 20:20
Owned TM-games: tmu
Manialink(s): LFT
Location: Nancy France

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by Pastis » 28 Mar 2011 15:11

Hello


SE Plugin is beautiful but must not work with Gerymania!
For the following:


The database has gery does not update the nickname!


Simple example if on my server I run a map or I have a 3 year old record.
my local it finds with my old login
which is present day and this x times!


The top for Gerymania would be the performs reverse;)


But very nice product that you have made!


Thank you
pastis

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by nocturne » 28 Mar 2011 17:32

Though I don't really see the point, personally... I think you could accomplish this better with a standalone script (run perhaps weekly by cronjob) that reads from your players table line by line, and uses the tmf data fetcher class to sync with the TMF ladder.
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
sterretje22
road tourist
road tourist
Posts: 87
Joined: 29 May 2010 23:47
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): fireteam
Location: Oudenburg(BE)
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by sterretje22 » 01 Apr 2011 23:12

nice work!
`·.¸¸.->ѕтαя~ƒιяє<-.¸¸.·´
ImageImage
Image
`·.¸¸.->~ƒιяє~<-.¸¸.·´
Image

User avatar
nicomoore0
speedy pilot
speedy pilot
Posts: 313
Joined: 27 May 2008 16:58
Owned TM-games: All
Location: Scotland
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by nicomoore0 » 29 Jun 2011 14:18

1.13 compatible?
C®AżΨ αηηιнιllαтσя ッ

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1309
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by undef.de » 29 Jun 2011 15:54

nicomoore0 wrote:1.13 compatible?
Yes... runs fine with 1.13 here.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

.anDy
pedestrian
pedestrian
Posts: 13
Joined: 28 Nov 2010 20:46
Owned TM-games: TMUF
Location: Germany

Re: [XASECO] Plugin: Nickname Sync 1.1

Post by .anDy » 01 Jul 2011 10:39

nicomoore0 wrote:1.13 compatible?
Yes like undef.de said, it works great :D
Thanks for your question, i forgot to add xaseco v1.13 in the first post ;)

Post Reply