Discussion in 'Released Mods' started by cola_colin, August 15, 2013.
No. You're just that good.
Well I've had a good run, but now I'm quitting PA to go play Starcraft. So long and thanks for all the fish.
Hitchhiker's Guide reference! This is definitely going into my forums hall of fame!
His name is a beeblebro away from the galactic president?
released an update that fixes a few things, read the changelog on the page about it.
i.e. the apm should be correct again
What I won't be able to fix is that the army composition can get wrong in larger games. This is because PA appears to just drop alerts in case of heavy load.
Could you add an APM chart to the player pages on the site? It would be neat to see how my APM varies over games.
How is the "show live updates on the webpage" setting meant to work? In the game http://www.nanodesu.info/pastats/chart?gameId=11919 I had it unselected, but the results did not show up even after the game.
There is data there now.
Basically it locks away your data (units/graphs/hopefully everything) until the game is finished. If you however leave the game in some unforeseen way or it bugs or whatever your mod does not send the "unlock" message. In that case the game would stay locked forever. To prevent this there is a background task that periodically checks for ended games and unlocks all data in them. So it can take a bit of time until it is unlocked.
OK, good to know that it works as designed.
I'm back after far too long, and I'm installing mods before I play a game! Glad to see you've put even more work into pastats, it looks great
I have now started writing the mod (https://github.com/orfjackal/pa-mentor). Currently it reads the data from http://www.nanodesu.info/pastats/report/get and does some map-reduce to calculate the percentiles of those stats at each timepoint. Next I'll implement downloading new game data from PA Stats automatically, but it would be nice to have a web service for reading that information.
Here are the web services (preferably JSON format) that I would need:
- List of all games, somewhat like http://www.nanodesu.info/pastats/listgames It should have the following data: game id, game started time, last updated time (so that I can download only those that have new data). The list should be sorted and paginated so that newest games are first. Here's a example of what an "/api/games" it could look like:
- A web service for the unit created/destroyed events. The same data that is currently in the armyDataSource element on http://www.nanodesu.info/pastats/chart pages - I don't like scraping HTML.
- The same details about the game as shown on the top of http://www.nanodesu.info/pastats/chart pages. I'm the most interested in knowing who won the game, so that I can include only the statistics of winners into PA Mentor. The other details are a bonus.
One question about the data in e.g. http://www.nanodesu.info/pastats/report/get?gameId=11919 - Is the "timepoint" value based on the server's clock or on the clock on each player's machine? I'm wondering whether the timepoints of different players are in sync and how to get the starting time of the game, so that I can convert those timepoints to be relative to the game's starting time.
All timepoints are based on the server time. In first versions they were indeed based on the players machines, until somebody reported data with a clock that was 10 minutes off
So yes they are in sync and a min and max of the points from a player should give you the exact moment that player started playing and finished playing.
The start of a game is min of all points in the game, that's how all charts on the page itself work, too.
In doubt this call is used to get "now":
So there are a few calls that come close to what you want already:
provides a list of all games withing the game timespan start + duration (in seconds, start is an unixtimestamp)
who participated (players who do not use pa stats are reported as id = -1 and name "Anon".
The call is meant for ladders, so it lists all teams in the game and the winner. Each team has an id, the game's have a field called winner that holds the id of the winner-team. Note that this call only returns games that were not vs AI and that in fact have a winner reported to them. Also note that only games of the last few weeks ...er since the beginning of december roughly... will be reported, as the function was only implemented recently and older games lack some data for this to work.
Returns the data of the armyEventData source. In fact it is a bit more accurate I think and also contains x/y/z location-data about the events and a probably pointless event id. I somehow anticipated you would need this and I needed it for development, too
I think generally you are probably only interested in data of finished games, so the winner list might be what you need as a list of games, as it only contains finished non AI games that have a winner. Is that correct?
Yes. I think with those I can get all the data I need. Thanks.
Here is a preview of the current progress:
Basically I still need to implement just the automatic downloading of new games into the database. Then I'll install it on a server and release the first version.
I'll be adding a game started-time to the webservice that returns the winners over the weekend, just so you know, ORFJackal.
Is there a way to make APM statistics divisible over an array of types of actions? I think a lot of interesting information could be gleaned about a player based on where the 100 APM was focused. It could be as simple as Combat, Fab/Building, and Camera actions graphed as separate APM lines.
This would help to see the intentions of the players through the data - things like rushing and turtling would be obvious from just how the graphs appeared.
The current apm capturing does not care what action results from pressing the button, it really only counts the button-presses. Capturing things like "gave a move command" should be possible, but would be an entirely new extension to it. So not quick to do.
Things like "turtle" or "rush" should be clear from the things build though.
Separate names with a comma.