Incama Posted October 19, 2019 Share Posted October 19, 2019 Hey everyone! @TEDERIs released a MTA ASE bytecode reader last year, i made a version of it in Python. It's not the greatest python code but it works and maybe it is useful for someone. I plan to build on it in the future. https://github.com/Incama2/ase2json_py Original library: https://github.com/tederis/ase2json Sample output: [ { "ip": "46.174.49.47", "port": 22099, "playersCount": 15, "maxPlayersCount": 60, "gameName": "", "serverName": "MTA | Corona | Role Play", "modeName": "", "mapName": "", "version": "1.6n", "passworded": false, "players": [], "httpPort": 32099 }, { "ip": "46.174.48.113", "port": 22003, "playersCount": 5, "maxPlayersCount": 30, "gameName": "", "serverName": "MTA Province Freeroam [vk.com/mtaprovincefreeroam]", "modeName": "", "mapName": "", "version": "1.6n", "passworded": false, "players": [], "httpPort": 32003 }, { "ip": "46.174.50.52", "port": 22038, "playersCount": 0, "maxPlayersCount": 30, "gameName": "", "serverName": "Default MTA Server", "modeName": "", "mapName": "", "version": "1.6n", "passworded": true, "players": [], "httpPort": 32038 }, { "ip": "46.174.50.52", "port": 22004, "playersCount": 0, "maxPlayersCount": 30, "gameName": "", "serverName": "MTA PROVINCE FAKE | 1 SERVER | ", "modeName": "", "mapName": "", "version": "1.6n", "passworded": true, "players": [], "httpPort": 32004 }, { "ip": "46.174.50.52", "port": 22008, "playersCount": 6, "maxPlayersCount": 100, "gameName": "", "serverName": "Fenix Provincial || BETA 2.0 || Offical Server #1", "modeName": "", "mapName": "", "version": "1.6n", "passworded": false, "players": [], "httpPort": 32008 }, ... { "ip": "37.187.207.95", "port": 22003, "playersCount": 0, "maxPlayersCount": 200, "gameName": "", "serverName": "Korkmaz Roleplay V1 Beta", "modeName": "", "mapName": "", "version": "1.4", "passworded": false, "players": [], "httpPort": 22005 }, { "ip": "88.253.134.70", "port": 22003, "playersCount": 8, "maxPlayersCount": 200, "gameName": "", "serverName": "Diablo Roleplay|200K Giris|Mal Varligi Veriliyor|Hayallerini Yasat Turk Real Life Gercek", "modeName": "", "mapName": "", "version": "1.4", "passworded": false, "players": [], "httpPort": 0 }, { "ip": "85.102.56.176", "port": 22003, "playersCount": 4, "maxPlayersCount": 500, "gameName": "", "serverName": "Pablo Roleplay ❄ Amerikan Roleplay'ın Nirvanası ..", "modeName": "", "mapName": "", "version": "1.4", "passworded": false, "players": [], "httpPort": 0 }, { "ip": "37.187.242.161", "port": 19998, "playersCount": 0, "maxPlayersCount": 16, "gameName": "", "serverName": "PAC OSO Clanserver", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 }, { "ip": "37.187.242.161", "port": 22000, "playersCount": 0, "maxPlayersCount": 8, "gameName": "", "serverName": "Party And Co Maptesting Server", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 }, { "ip": "37.187.242.161", "port": 19999, "playersCount": 0, "maxPlayersCount": 32, "gameName": "", "serverName": "PAC ASO Clanserver", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 }, { "ip": "37.187.242.161", "port": 19005, "playersCount": 0, "maxPlayersCount": 12, "gameName": "", "serverName": "PAC 3xC Clan server", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 }, { "ip": "46.174.50.52", "port": 22041, "playersCount": 0, "maxPlayersCount": 30, "gameName": "", "serverName": "GTA GARAGE CLUB CR 1.3 [ Пароль в паблике. ]", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 } ] It uses Python 2.7 Link to comment
Woovie Posted January 13, 2020 Share Posted January 13, 2020 Funny, I actually added this functionality too, via https://mtasa.com/api/ 2 Link to comment
Knot Host Posted May 4, 2020 Share Posted May 4, 2020 Good Work. Helpful for most server owners to analysis the player count and peak duration etc. Link to comment
Mora101 Posted December 14, 2020 Share Posted December 14, 2020 How to find a specifc server link from that json instead of searching for it? Link to comment
Incama Posted January 4, 2022 Author Share Posted January 4, 2022 On 14/12/2020 at 19:00, Mora101 said: How to find a specifc server link from that json instead of searching for it? If it's still relevant, you can use the GameQ PHP library (as far as i know this is the same that game-state.net uses) for that. https://github.com/Austinb/GameQ Link to comment
FernandoMTA Posted February 22 Share Posted February 22 On 13/01/2020 at 17:44, Woovie said: Funny, I actually added this functionality too, via https://mtasa.com/api/ Interesting. Is there any documentation? Like a route to get information on a specific server instead of obtaining the full list as JSON? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now