Player Data

Hello!

I've started hosting my own AAPG server. I bought it from gameservers.com so i dont need to worrie about the hardware. I have this project to collect data and make Highscore list from my server and i was wondering if there is possibility to gather player data from server? I would like to get data from each match, round and player. Data like, player name, kills, deaths, assists etc. I asked from gametracker.com and they recommended to ask from devs.

So, any ideas?

Comments

  • RollingInTheHurtRollingInTheHurt Posts: 73Player
    https://developer.valvesoftware.com/wiki/Server_Queries for the basic stuff.
    https://www.americasarmy.com/soldier/insert-player-here for the more player specific stuff that will require a website scraper.
    Sadly AAPG does not have any XML/JSON/RSS feeds of server stats or player account data.
  • Rihhard-Rihhard- Posts: 6Player
    So, if i understood right, all i can get is what gametracker.com is getting from the server? Which means, only player names, score and duration?

    Any ideas, is there a way to program something that collects info from server? So i could get more specific data about players. And i was curious about these .gamestat files? What are they for?
  • RollingInTheHurtRollingInTheHurt Posts: 73Player
    edited September 12
    That's correct.
    The only details you can query from the AAPG server using the Steam query data is:
    - Server Name.
    - IP Address.
    - Game.
    - Map.
    - Player Slots.
    - Server Latency.
    - Player Name.
    - Player Score.
    - Player Time on Server.

    If your looking for a GameTracker clone you can investigate it here:
    https://www.codecanyon.net/item/phpgametracker-game-servers-statistics/14964038

    If you are wanting to get player specific data you will need to use a website scraping script (in the programming language of your choice) that rips the page data from https://www.americasarmy.com/soldier/insert-player-here and compiles the data arrays into whatever you project requires.

    I do hope AA5 has an API for both server and player data. It would make things so much easier.
  • Rihhard-Rihhard- Posts: 6Player
    Alrighty, thanks for your info.

    Well that website scraping doesnt help me, because it shows all games together. So i guess my only chance at the moment is to do it manually with demorec files. In the end its good exercise for my programming skills.
  • RollingInTheHurtRollingInTheHurt Posts: 73Player
    An AA Dev recently said that an API for game data will be coming in the near future.
    Yeah I have a couple conversations open with some data/database guys from the forums here and the outside world to make sure we get them what they want for all that stuff. It won't be this update but I'm penciling it in for the next one. From our pov, with adding private lobbies and clan tags, getting those stats out becomes highest priority for a true competitive mode.
  • Rihhard-Rihhard- Posts: 6Player
    Sounds like a very promising news for my project. Thanks for digging that info out.
Sign In or Register to comment.