Extracting data to create “Match Statistics” using (flash-based) game-replay files

社会主义新天地 提交于 2019-12-24 14:30:20

问题


I play a very basic multiplayer flash-applet game @ http://www.haxball.com (check it out!)

Haxball’s match Replay files can be recorded by users in-game, and saved to disk as “.hbr” files. These Replay files can later be viewed by loading the .hbr replay file directly in the haxball.com interface, or by uploading the .hbr file publicly to a third-party service like "haxballtube.com"

My goal is to launch a third-party web-service which will allow users to upload haxball match replay files (.hbr), which will then be analyzed – with meaningful “match statistics” (goals, shots on net, possession %, etc.) extracted from the uploaded replay file, summarized, and reported back to the user.

A GREAT example with similar functionality can be seen here: http://www.playwithanton.ru/haxball/stat/ (to test functionality - you will need to either load or link to a haxball game replay file (.hbr) to analyze and to generate statistics from. I will provide links to an example replay file below - as part of the discussion)

Does anybody have any idea how the above example may have been created?

I do not have any real programming experience – I am hoping some helpful person can point me in the right direction regarding how I might be able to extract data and meaningful statistics from these .hbr files, and how I might produce something similar to the above example. My primary goal is to see this project to completion, and hopefully to learn some programming along the way.

Thanks for reading - any input/direction is MUCH appreciated!


回答1:


This is a nice idea. You will have a lot of problems to decompile the code and get the results of the game from the hbr because it may not contain the "Goal Scored" event. It may contain simple events: up, down, left right.

I have been playing for a while Bilu Ball which is exactly like haxball. The only difference is that it will keep track of all the games a player player ( the have accounts, something haxball will never have ) and track games player, score, goals and other stuff.

So I guess it is better to wait for Bilu Ball to implement leagues, teams and leader boards instead of wasting time with haxball.



来源:https://stackoverflow.com/questions/15178590/extracting-data-to-create-match-statistics-using-flash-based-game-replay-fil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!