"Only registered user get recs" plugin

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

Moderators: Xymph, TM-Patrol

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

"Only registered user get recs" plugin

Post by bmandk » 24 May 2009 12:27

Hello!

As the titel says i want a plugin so that all can come in and play but only the registered users can get records.. Is that possible?

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

Re: "Only registered user get recs" plugin

Post by Xymph » 24 May 2009 12:31

bmandk wrote:As the titel says i want a plugin so that all can come in and play but only the registered users can get records.. Is that possible?
Probably, but not easily. Define 'registered users'? And who would manage 'registration', and how?
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

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: "Only registered user get recs" plugin

Post by bmandk » 24 May 2009 12:52

Xymph wrote:
bmandk wrote:As the titel says i want a plugin so that all can come in and play but only the registered users can get records.. Is that possible?
Probably, but not easily. Define 'registered users'?
Like u write them in a config file for the plugin like admins and ops or something.
Xymph wrote:And who would manage 'registration', and how?
The MasterAdmin with a command or add them to the config file :)

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

Re: "Only registered user get recs" plugin

Post by Xymph » 24 May 2009 19:21

Ok, should be feasible. The trick is that such a plugin needs to use the onPlayerFinish1 event to get processed before the local/Dedimania records plugins, and needs to set $finish_item->score to 0 for unregistered players so that they are ignored by those records plugins.

But it's still quite a bit of work, and I'm not going to do it as I don't think it belongs in the main XAseco distribution (and I also don't like the general principle). Good luck. :wink:
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

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: "Only registered user get recs" plugin

Post by bmandk » 24 May 2009 20:29

Well i dont know ANYTHING at all to code sooo thats not gonna be in my todo list :P

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: "Only registered user get recs" plugin

Post by Knutselmaaster » 25 May 2009 06:34

it would be very nice to have that in matches, so that accidental recs from spec players isn't counted!

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: "Only registered user get recs" plugin

Post by bmandk » 25 May 2009 19:43

Ye it would be really nice if you made it xymph

matzi
happy cruiser
happy cruiser
Posts: 161
Joined: 20 Aug 2008 14:52
Owned TM-games: TMO TMN TMU TMF
Location: Austria
Contact:

Re: "Only registered user get recs" plugin

Post by matzi » 25 May 2009 19:50

If xymph doesn't want to code it maybe I'll try it. I can code PHP well, just have to look up how exactly XAseco work...

greetz
Matzi

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: "Only registered user get recs" plugin

Post by Knutselmaaster » 25 May 2009 20:25

That would be great!

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: "Only registered user get recs" plugin

Post by bmandk » 25 May 2009 20:36

Ye go for it! :P

User avatar
FoxShadow
smooth traffic navigator
smooth traffic navigator
Posts: 247
Joined: 03 Nov 2006 20:37
Owned TM-games: TMNF, TMUF
Location: Puerto Esperanza, Misiones, Argentina
Contact:

Re: "Only registered user get recs" plugin

Post by FoxShadow » 26 May 2009 13:11

oh no, cheaters will be sad. :roflol:

Really nice idea, good luck with that. :thumbsup:
Image
Image
Image

User avatar
lille79
Pit Crew
Pit Crew
Posts: 881
Joined: 09 Dec 2007 15:04
Owned TM-games: TMN, TMNF, TMUF
Location: Norway
Contact:

Re: "Only registered user get recs" plugin

Post by lille79 » 26 May 2009 14:20

Someone in Norway has done something similar. You have to type some kind of registration-confirmation to be allowed to play. Don't know how it's built though...
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: "Only registered user get recs" plugin

Post by w1lla » 26 May 2009 20:23

i think its shady or TMN called on this forum...

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

matzi
happy cruiser
happy cruiser
Posts: 161
Joined: 20 Aug 2008 14:52
Owned TM-games: TMO TMN TMU TMF
Location: Austria
Contact:

Re: "Only registered user get recs" plugin

Post by matzi » 02 Jun 2009 16:31

Ok I'm ready
You can download it here: Download

You have to put it before "plugin.localdatabase.php" to prevent records. If you put it right after that plugin the player gets the message which place he claimed, but the Fufi widgets don't recognise the record (but I haven't tested that really, was just a side-effect I recognised^^)

commands are:

recordsblock off
recordsblock on
recordsblock add login
recordsblock rem login
recordsblock remove login
recordsblock save
recordsblock load

when you add a record the record is not automatically saved to the xml file!

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

Re: "Only registered user get recs" plugin

Post by Assembler Maniac » 02 Jun 2009 16:41

matzi wrote:Ok I'm ready
You can download it here: Download

You have to put it before "plugin.localdatabase.php" to prevent records. If you put it right after that plugin the player gets the message which place he claimed, but the Fufi widgets don't recognise the record (but I haven't tested that really, was just a side-effect I recognised^^)

commands are:

recordsblock off
recordsblock on
recordsblock add login
recordsblock rem login
recordsblock remove login
recordsblock save
recordsblock load

when you add a record the record is not automatically saved to the xml file!
Are those only admin commands, or can anyone use them? (if it's anyone, you're in for a world of trouble)

If they're admin only, do you need the /admin ahead of them?

(I personally don't like the idea of limiting who can get records, but these are important questions from an author point of view)

Post Reply