filter off 'below a number of players'

Designing a filter? Get tips and advice from other users. Suggest new filter features here too.

Moderators: Moderators, Support

filter off 'below a number of players'

Postby tobin » Sun Aug 10, 2008 3:00 pm

How can it be done?

(I've no idea how to 'design' filters, I just need to filter it)
tobin
Novice User
 
Posts: 11
Joined: Sun Aug 10, 2008 2:58 pm

Re: filter off 'below a number of players'

Postby Captin » Sun Aug 10, 2008 4:09 pm

Create a new filter (click the icon that looks like a funnel with a '+' sign)
Fill in the properties for your filter
Then click the logic tab to enter the code that tells Qtracker what to filter on

If you are looking for servers that have more than 'x' players then you can use the following code:
Code: Select all
if [$server_players_active] > #
only servers that have MORE players than specified will show up (as in if you enter 15, only servers with 16 or more players will show up).
User avatar
Captin
Lord and Master
 
Posts: 327
Joined: Tue Dec 16, 2003 6:04 pm
Location: NE Ohio

Re: filter off 'below a number of players'

Postby tobin » Mon Aug 11, 2008 12:59 pm

that's good.

it should be a default option btw (more elegantly designed with a field to enter or a drop down menu).
tobin
Novice User
 
Posts: 11
Joined: Sun Aug 10, 2008 2:58 pm

Re: filter off 'below a number of players'

Postby Morbius » Sun May 16, 2010 9:28 pm

Captin wrote:Create a new filter (click the icon that looks like a funnel with a '+' sign)
Fill in the properties for your filter
Then click the logic tab to enter the code that tells Qtracker what to filter on

If you are looking for servers that have more than 'x' players then you can use the following code:
Code: Select all
if [$server_players_active] > #
only servers that have MORE players than specified will show up (as in if you enter 15, only servers with 16 or more players will show up).




can i do the same if im trying to filter out servers with no players but do i put 0 or 1
User avatar
Morbius
Qtracker Registered Owner
Qtracker Registered Owner
 
Posts: 2
Joined: Sat Jun 13, 2009 7:37 am
Location: Louisville,ky.

Re: filter off 'below a number of players'

Postby Morbius » Sun May 16, 2010 9:36 pm

Captin wrote:Create a new filter (click the icon that looks like a funnel with a '+' sign)
Fill in the properties for your filter
Then click the logic tab to enter the code that tells Qtracker what to filter on

If you are looking for servers that have more than 'x' players then you can use the following code:
Code: Select all
if [$server_players_active] > #
only servers that have MORE players than specified will show up (as in if you enter 15, only servers with 16 or more players will show up).



what if i wanted to create a filter to filter out servers with jump maps only how could i do that.
User avatar
Morbius
Qtracker Registered Owner
Qtracker Registered Owner
 
Posts: 2
Joined: Sat Jun 13, 2009 7:37 am
Location: Louisville,ky.

Re: filter off 'below a number of players'

Postby signa » Mon May 17, 2010 3:03 pm

Morbius wrote:can i do the same if im trying to filter out servers with no players but do i put 0 or 1

you would use a Zero.

if [$server_players_active] > 0

(my qtracker has a filter for that at the top under "all games" called "servers with players". strange, I thought that was a filter that came with the default qtracker install.)

Morbius wrote:...what if i wanted to create a filter to filter out servers with jump maps only how could i do that.

Well there are 2 ways you could do that. You could make a filter that looks for the word "jump" in the server name, but unfortunately that's dependent on server names and is not going to find every server your looking to filter. Another way would be to make a custom filter with all the map names you want to filter inside that filter. you would need to know all the map names and include them in the filter. What game are you playing that you need filters for? Q3?

Here is some code that will filter on server names:

this would hide any servers that don't have "jump" in the server name.
Code: Select all
if find([$server_name], "jump") != -1

this would only show servers that have "jump" in the server name.
Code: Select all
if find([$server_name], "jump") == -1
User avatar
signa
Qtracker Registered Owner
Qtracker Registered Owner
 
Posts: 689
Joined: Mon Oct 17, 2005 10:22 pm
Location: Detroit, MI


Return to Filters

Who is online

Users browsing this forum: No registered users and 1 guest

cron