Hello I hope someone is still active here in this group.
I was using the s2protocol to parse replay for quite some time, then decided to switch to the sc2reader, since it does present me with so much more information.
But now as I am using it, I noticed a strange "Bug"?? in the program. I wrote my own plugin to handle TrackerEvents.
But somehow the event does only contain the income rates and not other important values like minerals_army_used.
(event.name) => PlayerStatsEvent
(event.pid) => 8
(event.player) => Player 8 - DarthAlasar (Protoss)
(event.ff_minerals_lost_army) => 0
(event.ff_minerals_lost_economy) => 0
(event.ff_minerals_lost_technology) => 0
(event.ff_vespene_lost_army) => 0
(event.ff_vespene_lost_economy) => 0
(event.ff_vespene_lost_technology) => 0
(event.food_made) => 26.0
(event.food_used) => 19.0
(event.frame) => 3360
(event.load_context) => <bound method PlayerStatsEvent.load_context of <sc2reader.events.tracker.PlayerStatsEvent object at 0x7f5b8c99cc50>>
(event.minerals_collection_rate) => 600
(event.minerals_current) => 215
(event.minerals_killed) => 0
(event.minerals_killed_army) => 0
(event.minerals_killed_economy) => 0
(event.minerals_killed_technology) => 0
(event.minerals_lost) => 0
(event.minerals_lost_army) => 0
(event.minerals_lost_economy) => 0
(event.minerals_lost_technology) => 0
(event.minerals_used_active_forces) => 0
(event.minerals_used_current) => 1500
(event.minerals_used_current_army) => 0
(event.minerals_used_current_economy) => 1500
(event.minerals_used_current_technology) => 0
(event.minerals_used_in_progress) => 450
(event.minerals_used_in_progress_army) => 0
(event.minerals_used_in_progress_economy) => 450
(event.minerals_used_in_progress_technology) => 0
(event.resources_killed) => 0
(event.resources_lost) => 0
(event.resources_used_current) => 1500
(event.resources_used_in_progress) => 450
(event.second) => 210
(event.stats) => {0: 215, 1: 0, 2: 600, 3: 0, 4: 18, 5: 0, 6: 450, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0, 12: 1500, 13: 0, 14: 0, 15: 0, 16: 0, 17: 0, 18: 0, 19: 0, 20: 0, 21: 0, 22: 0, 23: 0, 24: 0, 25: 0, 26: 0, 27: 0, 28: 0, 29: 77824, 30: 106496, 31: 0, 32: 0, 33: 0, 34: 0, 35: 0, 36: 0, 37: 0, 38: 0}
(event.vespene_collection_rate) => 0
(event.vespene_current) => 0
(event.vespene_killed) => 0
(event.vespene_killed_army) => 0
(event.vespene_killed_economy) => 0
(event.vespene_killed_technology) => 0
(event.vespene_lost) => 0
(event.vespene_lost_army) => 0
(event.vespene_lost_economy) => 0
(event.vespene_lost_technology) => 0
(event.vespene_used_active_forces) => 0
(event.vespene_used_current) => 0
(event.vespene_used_current_army) => 0
(event.vespene_used_current_economy) => 0
(event.vespene_used_current_technology) => 0
(event.vespene_used_in_progress) => 0
(event.vespene_used_in_progress_army) => 0
(event.vespene_used_in_progress_economy) => 0
(event.vespene_used_in_progress_technology) => 0
(event.workers_active_count) => 18
Here's a debugging output from one of the events.
At first I thought it was a damaged replay file, but running it over all replays in the test_replays folder generated similiar output for all Trackerevents (for replays that do feature TrackerEvents, of course).
You cannot tell me that sc2reader has these fields, but is not able to correctly fill them, cause even s2protocol can do that.
Am I missing something stupid?
System info:
Ubuntu 14, python 2.7, mypq per pip installed, test replays all of the in the git repo included replay files
Thanks for your help in advance
Matthias