parse mgx file

96 views
Skip to first unread message

kebo...@gmail.com

unread,
Feb 11, 2014, 8:07:14 PM2/11/14
to aoc...@googlegroups.com
i want to make a statistic with mgx file by the following.

   1)building amount and types for each player
   2)units amount and types for each player
   3)parse achievement data from mgx file

i have search google and have no luck. there are some amazing projects on sf.net and github.
such as:
  1)aoc-mgx-utils on sourceforge: this project count the whole buildings and units for all player, but i can't 
                          find how to count for each player.
  2)aoc-mgx-format on github: this project did a good job on analyze game command reverse engineering, but i
                          cant find how to know each command issued by which player.

anybody can help? sorry for my awful english.

biegleux

unread,
Feb 14, 2014, 4:25:58 AM2/14/14
to aoc...@googlegroups.com
Hi kebo,

1) & 2) as far as I remember, these commands don't hold player's id, but the generated id of the object performing the action (id of a villager constructing a building or id of the building the unit is trained in, respectively), to my knowledge the answer to the question how the ids are generated by the engine is unanswered at the time of writing this
3) checkout http://svn.code.sf.net/p/aoc-mgx-utils/aoc-mgx-utils-svn/ achievement data are available since UP 1.4 (RC2), mode Multiplayer, you won't find this information in earlier versions of recorded games

If you have any question, please ask.

Best regards,
  biegleux


Dňa streda, 12. februára 2014 2:07:14 UTC+1 kebo wang napísal(-a):

kebo wang

unread,
Feb 14, 2014, 10:33:54 PM2/14/14
to aoc...@googlegroups.com

Thanks for your response. I think your projects are great!
Unfortunately, my firends and i play aoc 1.0c and AoFE, but no UP. 
Clearly UP guys know how to gather achievement information from game. 
It's still good for me If i can access those information
Is there any way just like UP to gather achievement information from game?


在 2014年2月14日星期五UTC+8下午5时25分58秒,biegleux写道:

biegleux

unread,
Feb 15, 2014, 3:25:46 AM2/15/14
to aoc...@googlegroups.com

Hi,
maybe I was not clear.
UP team just added this information into recorded games, concretely they reverse engineered the executable so the game could include a custom DirectPlay lobby message into recorded games as a custom body command. This custom DirectPlay message is being sent by the game to lobby server after the game has finished and contains achievements data, among other data. If you play single-player mode or multi-player mode without lobby server, message won't be created and no achievements data can be found even in UP 1.4 RC2.
To get achievements for AOC you need to start the game by a lobby server and catch this custom message, that's the way how all AOC matchmaking servers are getting this data. You don't have this information in AOC recorded games.

--
You received this message because you are subscribed to the Google Groups "aoc-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aoc-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages