Sign in to follow this  
TEDERIs

MTA ASE Parser

Recommended Posts

Hi everyone! I have made a simple parser of ASE bytecode to convert it to JSON format. Maybe it'll be useful for someone else. The program automatically downloads bytecode and writes it to readable JSON text plain. Mainly it was developed for Linux purposes, but may be simply built under the Windows.

https://github.com/tederis/ase2json

  • Thanks 1

Share this post


Link to post

I think you're forgotten to make examples and show syntax:

root@s2-zabbixsrv /home/disi # time ./ase2json -l
{
    "serversCount": 4003,
    "playersCount": 7488
}

real    0m0.400s
user    0m0.072s
sys    0m0.024s

And

root@s2-zabbixsrv /home/disi # ./ase2json
{
    "serversCount": 3932,
    "playersCount": 6008,
    "servers": [
        { "ip": "91.203.195.21", "port": 22003, "playersCount": 0, "maxPlayersCount": 50, "gameName": "", "serverName": "Nice :Oing Server alpha", "modeName": "", "mapName": "", "version": "1.9n", "passworded": false, "players": [], "httpPort": 22005 },
        { "ip": "91.203.195.21", "port": 25565, "playersCount": 0, "maxPlayersCount": 50, "gameName": "", "serverName": "NFS project development", "modeName": "", "mapName": "", "version": "1.9n", "passworded": false, "players": [], "httpPort": 25565 },
        { "ip": "5.39.28.22", "port": 22003, "playersCount": 8, "maxPlayersCount": 256, "gameName": "", "serverName": "Coopera 5.0S | FreeRoam | Default Server", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22005 },
        { "ip": "142.44.251.185", "port": 22973, "playersCount": 22, "maxPlayersCount": 300, "gameName": "", "serverName": "[BR]   ✔ BRASIL GAMER INVICTOS 1.0 ✔ 【CarroBR ● MotosBR ● Policias ● PVP】", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22975 },
        { "ip": "68.168.210.78", "port": 22003, "playersCount": 38, "maxPlayersCount": 80, "gameName": "", "serverName": "[BS][US] MTA DayZ Ultimate [#5] \"Blue\" [PVP, Easy, Loot x3, 145 Vehicles, Slow Zombie] -TOP-NON-", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22030 },
        { "ip": "66.70.169.172", "port": 22183, "playersCount": 0, "maxPlayersCount": 700, "gameName": "", "serverName": "Rɑspɑndo Bɑixo - MTA Server [Carros,Motos,Gangues,Corps, etc..]", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22185 },
        { "ip": "54.39.125.26", "port": 22018, "playersCount": 7, "maxPlayersCount": 200, "gameName": "", "serverName": "[BR] ✖ BRASILEIROS NO STYLO FIXA ✖  [ ~PLAY/FREEROAM,GANGS,CORPS....]", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22018 },
        { "ip": "144.217.179.74", "port": 22233, "playersCount": 4, "maxPlayersCount": 1000, "gameName": "", "serverName": " [BR] ● EVOLUTION BRASIL ● ~ Play/Freeroam  ⌜ Gangs ● Corps ● Eventos ⌟", "modeName": "", "mapName": "", "version": "1.5", "passworded": false, "players": [], "httpPort": 22233 },
............................................
          { "ip": "94.23.148.198", "port": 22003, "playersCount": 0, "maxPlayersCount": 200, "gameName": "", "serverName": "☾Turan RolePlay V1.0☽ ❁Giriş 150.000TL❁%100Türk Rolü❁", "modeName": "", "mapName": "", "version": "1.4", "passworded": false, "players": [], "httpPort": 0 },
        { "ip": "145.239.20.87", "port": 27075, "playersCount": 0, "maxPlayersCount": 20, "gameName": "", "serverName": "Twoj serwer @ 1shot1kill.pl", "modeName": "", "mapName": "", "version": "1.4", "passworded": true, "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.42", "port": 22014, "playersCount": 0, "maxPlayersCount": 30, "gameName": "", "serverName": "GTA GARAGE CLUB SA 1.3 [ Пароль в паблике. ]", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 },
        { "ip": "46.174.50.52", "port": 22044, "playersCount": 0, "maxPlayersCount": 30, "gameName": "", "serverName": "Боевая:Классика", "modeName": "", "mapName": "", "version": "1.3", "passworded": true, "players": [], "httpPort": 0 }
    ]
}

 

Edited by Disinterpreter
  • Thanks 1

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.