[(X)Aseco/FAST] AutoQueue v0.60b

Discover FAST, a records keeping server control script with a public records system called Dedimania, which will show records from the server on tm-exchange.com

Moderators: Slig, TM-Patrol

=THC=Flash
speedy pilot
speedy pilot
Posts: 536
Joined: 31 Dec 2006 12:40
Owned TM-games: TMN ESWC, TMNF, TMUF
Location: Portugal

Re: [(X)Aseco/FAST] AutoQueue v0.45

Post by =THC=Flash » 31 Aug 2008 11:40

One question: do you have to have Aseco or Fast installed in your computer to install this plugin? I dont have Aseco or Fast because i'm not running any server, im just a player, so can i have this plugin installed?

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.45

Post by Slig » 31 Aug 2008 12:13

=THC=Flash wrote:One question: do you have to have Aseco or Fast installed in your computer to install this plugin? I dont have Aseco or Fast because i'm not running any server, im just a player, so can i have this plugin installed?
It's a server script plugin.

I don't know any client script actually, but anyway such feature can be done only on server side.

=THC=Flash
speedy pilot
speedy pilot
Posts: 536
Joined: 31 Dec 2006 12:40
Owned TM-games: TMN ESWC, TMNF, TMUF
Location: Portugal

Re: [(X)Aseco/FAST] AutoQueue v0.45

Post by =THC=Flash » 31 Aug 2008 17:58

OK, thx for the info! :thumbsup:

Zooz
TM-Patrol
TM-Patrol
Posts: 5326
Joined: 13 Aug 2005 08:58
Owned TM-games: TMO, TMS, TMNF, TMUF
Manialink(s): zooz
Location: The Netherlands

Re: [(X)Aseco/FAST] AutoQueue v0.45

Post by Zooz » 31 Aug 2008 19:03

Suggestion: When someone leaves near the end of the match, then kick 1 less player, or 2 less for 2 leavers etc. Otherwise, if you have 8 players total, the last 2 leave before the end, and 3 get kicked, players 4 and 5 will get kicked unfairly.

Zooz
TM-Patrol
TM-Patrol
Posts: 5326
Joined: 13 Aug 2005 08:58
Owned TM-games: TMO, TMS, TMNF, TMUF
Manialink(s): zooz
Location: The Netherlands

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Zooz » 06 Sep 2008 11:07

Appearantly it's possible for players to just jump out of the queue into the game with /play. I think that command should be disabled when autoqueue is active.

Any way to do that myself? I can't find it.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by f*ckfish » 06 Sep 2008 12:28

This play command has nothing to do with the queue plugin. I saw it today on Delirium and don't know, where it comes from.

/edit: okay, found it, it's line 12 in ./plugins/cmd/chat.spec.php

Code: Select all

registerCommand('play','/play : make playerself to play');
Just comment it out like this:

Code: Select all

//registerCommand('play','/play : make playerself to play');
inactive, sorry

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by jamie_macdonald » 06 Sep 2008 14:46

Ty F$%kfish ... v kind of you to find

Zooz
TM-Patrol
TM-Patrol
Posts: 5326
Joined: 13 Aug 2005 08:58
Owned TM-games: TMO, TMS, TMNF, TMUF
Manialink(s): zooz
Location: The Netherlands

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Zooz » 06 Sep 2008 16:51

Ok, thanks, I didn't know where to find the chat commands...

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Slig » 07 Sep 2008 08:10

f*ckfish wrote:This play command has nothing to do with the queue plugin. I saw it today on Delirium and don't know, where it comes from.
A possibility for the AutoQueue would be to set all players who are not supposed to play in force spectator state, this way they would not be able to try to enter as player, and the /play command would be disabled for them.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by f*ckfish » 07 Sep 2008 09:07

Mmh.. actually that's what I do. I use ForceSpectator(login, 1) on every spectator. If you press "Enter", you'll get the message "You are not allowed..." Is there another thing I forgot that is needed to force them so FAST will know, they are forced spectators?
When I release players, I use ForceSpectator(login, 2) and ForceSpectator(login, 0) to make them able to drive and remove the forced mode, but as soon as they reenter the spectator mode, ForceSpectator(login, 1) is called and they have to wait for the plugin to release them.
inactive, sorry

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Slig » 07 Sep 2008 11:45

Wow, i did not looked the code before... nice work to do a plugin for several scripts system in the same file ! :D

The difficulty is that aseco use a direct synchronous query() with immediate response, while Fast use asynchronous addCall() and the response will be in a future events calls or a callback, and for most stored in global datas. It premit to use multicall queries and so avoid to wait dedicated response at each query and permit to store uptodate datas available to all plugins, but forbid immediate response. Both have advantages and drawbacks...
f*ckfish wrote: Is there another thing I forgot that is needed to force them so FAST will know, they are forced spectators?
If you were using addCall(null,'ForceSpectator', $login, $mode) and not a making a direct query() to the dedicated then Fast would know. Or else do a addCall(null,'GetPlayerInfo',$login) after the query('ForceSpectator', $login, $mode).

In fact with Fast most of your query() could be avoid : GetPlayerInfo and GetDetailedPlayerInfo values are already in the global $_player[$login] array ; maxplayers and maxspecs are already in global the $_ServerOptions array ; GetWarmUp is already in global $_WarmUp. And those arrays are up-to-date (or it's a bug).


I noticed a little inversion (lines 849-850) :
registerCommand('unqueue', 'Put yourself into the waiting queue.');
registerCommand('queue', 'Remove yourself out of the waiting queue.');

And also :
* Version 0.46 (XAseco 1.03, FAST 3.2.x, ASECO 2.2.0c)
$autoqueueVersion = '0.35';

Zooz
TM-Patrol
TM-Patrol
Posts: 5326
Joined: 13 Aug 2005 08:58
Owned TM-games: TMO, TMS, TMNF, TMUF
Manialink(s): zooz
Location: The Netherlands

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Zooz » 07 Sep 2008 14:35

Idlekick kicks anyone who doesn't finish in warmups, even though they are driving through checkpoints. That's kind of a problem, is it fixable? ^^

Also
f*ckfish wrote:This play command has nothing to do with the queue plugin. I saw it today on Delirium and don't know, where it comes from.

/edit: okay, found it, it's line 12 in ./plugins/cmd/chat.spec.php

Code: Select all

registerCommand('play','/play : make playerself to play');
Just comment it out like this:

Code: Select all

//registerCommand('play','/play : make playerself to play');
I can still use /play after this, somehow. It only seems to remove /play from the help texts.

Zooz
TM-Patrol
TM-Patrol
Posts: 5326
Joined: 13 Aug 2005 08:58
Owned TM-games: TMO, TMS, TMNF, TMUF
Manialink(s): zooz
Location: The Netherlands

Re: [(X)Aseco/FAST] AutoQueue v0.45

Post by Zooz » 07 Sep 2008 16:17

Zooz wrote:Suggestion: When someone leaves near the end of the match, then kick 1 less player, or 2 less for 2 leavers etc. Otherwise, if you have 8 players total, the last 2 leave before the end, and 3 get kicked, players 4 and 5 will get kicked unfairly.
This problem still exists and it's still highly unfair for the players who get hit by it. Fix please?

Another suggestion: Time delay for loserkick. Currently they can't even check out the scoreboard before getting kicked, if you allow admins to set a delay they can allow the losers to look at the scoreboard for X seconds before getting the kick.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by f*ckfish » 07 Sep 2008 23:40

Zooz wrote:Suggestion: When someone leaves near the end of the match, then kick 1 less player, or 2 less for 2 leavers etc. Otherwise, if you have 8 players total, the last 2 leave before the end, and 3 get kicked, players 4 and 5 will get kicked unfairly.

Another suggestion: Time delay for loserkick. Currently they can't even check out the scoreboard before getting kicked, if you allow admins to set a delay they can allow the losers to look at the scoreboard for X seconds before getting the kick.
...
I can still use /play after this, somehow. It only seems to remove /play from the help texts.
I'll try to fix all of it in the next weak, although I cannot promise anything since I'm currently moving into another apartment.
Zooz wrote:Idlekick kicks anyone who doesn't finish in warmups, even though they are driving through checkpoints. That's kind of a problem, is it fixable? ^^
That's indeed weird, I'll have a look at it.
Slig wrote:Wow, i did not looked the code before... nice work to do a plugin for several scripts system in the same file ! :D
Thanks =)
Slig wrote:The difficulty is that aseco use a direct synchronous query() with immediate response, while Fast use asynchronous addCall() and the response will be in a future events calls or a callback, and for most stored in global datas. It premit to use multicall queries and so avoid to wait dedicated response at each query and permit to store uptodate datas available to all plugins, but forbid immediate response. Both have advantages and drawbacks...

If you were using addCall(null,'ForceSpectator', $login, $mode) and not a making a direct query() to the dedicated then Fast would know. Or else do a addCall(null,'GetPlayerInfo',$login) after the query('ForceSpectator', $login, $mode).
That's good to know :thumbsup:
Slig wrote:In fact with Fast most of your query() could be avoid : GetPlayerInfo and GetDetailedPlayerInfo values are already in the global $_player[$login] array ; maxplayers and maxspecs are already in global the $_ServerOptions array ; GetWarmUp is already in global $_WarmUp. And those arrays are up-to-date (or it's a bug).
Nice info, that could speed the things up.
Slig wrote:I noticed a little inversion (lines 849-850) :
registerCommand('unqueue', 'Put yourself into the waiting queue.');
registerCommand('queue', 'Remove yourself out of the waiting queue.');

And also :
* Version 0.46 (XAseco 1.03, FAST 3.2.x, ASECO 2.2.0c)
$autoqueueVersion = '0.35';
:oops:
inactive, sorry

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: [(X)Aseco/FAST] AutoQueue v0.46

Post by Slig » 08 Sep 2008 08:17

Zooz wrote:
f*ckfish wrote:Just comment it out like this:

Code: Select all

//registerCommand('play','/play : make playerself to play');
I can still use /play after this, somehow. It only seems to remove /play from the help texts.
Really strange :?
You can just delete the file ./plugins/cmd/chat.spec.php
Btw when fufi will have fixed the plugin about that the command will just be disabled automatically when the player is forced spec.

Post Reply