Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identified bug where parser duplicates queued units #116

Open
byrnesy924 opened this issue Jan 24, 2025 · 0 comments
Open

Identified bug where parser duplicates queued units #116

byrnesy924 opened this issue Jan 24, 2025 · 0 comments

Comments

@byrnesy924
Copy link

byrnesy924 commented Jan 24, 2025

Think I've identified an issue where the parser will output two records for a queued unit in the player inputs. The two records are 0.2 seconds apart, and in game only one unit is queued.

Code i'm using:

with open(self.path_to_game, "rb") as g:
            match = parse_match(g)
            match_json = serialize(self.match)

inputs = match_json["inputs"]
inputs_df = pd.json_normalize(inputs)

output in question, where in game only 1 villager is queued:

timestamp type param player
00:01:53.230000 Queue Villager 1
00:01:53.438000 Queue Villager 1

Looks like it appears in both the actions and inputs data. I've attached the game where I found this as a .txt - if there is a better way to do this let me know as Github did not like me uploading a .aoe2record file.

double_villagers.txt

I know basically 0 about how the parser works but might try spend some time to figure this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant