Custom filter (for server browser)

Racer1Racer1 Join Date: 2002-11-22 Member: 9615Members
edited March 2013 in Ideas and Suggestions
I'd like to have the ability to add a "custom" filter in which you could enter an arbitrary expression. This would be used in conjunction with the other filters to determine the list of servers to show. It would have access to all available server variables and status information using a simple grammar. (That grammar could be a LUA expression itself if that is easy enough).

Example: "(%MaxPlayers% < 20 and %ElapsedTimeSeconds% < 120) or %ServerName% like '*MyClan*'"
- This example would show servers that:
1. Have less than 20 max players and the round elapsed time is less than 120 seconds, or
2. Has a server name with the word "MyClan" in it

Reasoning: Currently, you can filter by game, map, rookie, modded, perf, max ping, empty, full. However, even with this some players don't get what they want, and it clutters up the UI if you add too many options. A custom filter could address all of the criteria players want to use when finding a desired type of server.

- The keyword "like" could use normal "*" wildcard matching. However, I would like regular expression matching via "matches" as well.

Optional future enhancement: An in-game UI could be used to build the expressions (e.g. listing all of the available variables, keywords, etc).
Sign In or Register to comment.