You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In order to easily improve the Server Browser by showing more server information to the client, we should merge #3761 which adds new default "rules" that a server can set to define its description, social media URLs, etc. All of this information can already be stored in the rules key-value pairs of the server's ASE query response (Port 22126 UDP by default).
So, we need a way to obtain this information in the client, to then display it correctly in the Server Browser (e.g. showing a server's tags).
Describe the solution you'd like
The Server Browser obtains the server list from MTA's servers
Add new ASE Flag to return the Rules table which you can also call Rules Map or Rules List (see Client/core/ServerBrowser/CServerList.h)
Modify the Master server list MTA service (requires backend access) to return the data
Edit the C++ scripts so they can fetch and parse the string key-value pairs from the Rules table fetched
(FUTURE) Revamp the Server Browser UI to parse and use the new information
Describe alternatives you've considered
Doing nothing will unfortunately not allow us to make progress in getting the issues #3761 resolves easily, without having to refactor/rewrite A LOT of code.
Additional context
Curiosities:
This is how ASE format includes key-value pairs in its structure
This is how OpenGSQ-Python parses the ASE response, in particular the rules part
Game-State is dealing with the rules table that servers provide in their ASE response properly 🥳
(not an advertisement) e.g. https://www.game-state.com/164.132.200.104:22003/ contains:
Author: AGRP Team
Script Version: 24.08.12
The JSON server list provided by https://mtasa.com/api/ also does not contain the server Rules array. I am unsure where this API is used, but it would be nice to also update it.
Security Policy
I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
The text was updated successfully, but these errors were encountered:
Fernando-A-Rocha
changed the title
Add information to the serverlist ("rules" table provided by ASE)
Add information to the Server List ("rules" table provided by ASE)
Oct 11, 2024
Fernando-A-Rocha
changed the title
Add information to the Server List ("rules" table provided by ASE)
Add information to MTA Server List ("rules" table provided by ASE)
Oct 11, 2024
Is your feature request related to a problem? Please describe.
In order to easily improve the Server Browser by showing more server information to the client, we should merge #3761 which adds new default "rules" that a server can set to define its description, social media URLs, etc. All of this information can already be stored in the rules key-value pairs of the server's ASE query response (Port 22126 UDP by default).
So, we need a way to obtain this information in the client, to then display it correctly in the Server Browser (e.g. showing a server's tags).
Describe the solution you'd like
The Server Browser obtains the server list from MTA's servers
mtasa-blue/Client/core/ServerBrowser/CServerList.h
Lines 43 to 60 in 55d3922
See https://master.multitheftauto.com/ase/mta/ (list of server info such as name, player count, etc in ASE format), which can be fetched and parsed using a script such as https://github.com/Fernando-A-Rocha/ase2json_py
Several things need be done, imo:
Describe alternatives you've considered
Doing nothing will unfortunately not allow us to make progress in getting the issues #3761 resolves easily, without having to refactor/rewrite A LOT of code.
Additional context
Curiosities:
This is how ASE format includes key-value pairs in its structure
This is how OpenGSQ-Python parses the ASE response, in particular the rules part
Game-State is dealing with the rules table that servers provide in their ASE response properly 🥳
(not an advertisement) e.g. https://www.game-state.com/164.132.200.104:22003/ contains:
Author: AGRP Team
Script Version: 24.08.12
The JSON server list provided by https://mtasa.com/api/ also does not contain the server Rules array. I am unsure where this API is used, but it would be nice to also update it.
Security Policy
The text was updated successfully, but these errors were encountered: