Skip to content

parser part of the POV demo data is None #302

@Uwwal

Description

@Uwwal

####reproduce:
I recorded this demo on a third-party server using the console command line, and then tried to parse it using awpy / demoparser2, find that some of the data was None.
I also tried using demosinfocs-golang, and the None data can be parsed, so I don't think it's a problem with the demo.

demo link
####my code:

import os

from demoparser2 import *

demo_dir_path = r'C:\Users\gema1\Desktop\CSDMEO'

demo_file_path = os.path.join(demo_dir_path, '123mginf.dem')
# print(demo_file)
demo_path = os.path.join(demo_dir_path, demo_file_path)
parser = DemoParser(demo_path)

# tick = parser.parse_ticks(["X", "Y"])

events = parser.parse_event('bomb_dropped')
pass

####result:
I found that this problem occurred in these events, and there may be other ones as well
bomb_dropped / bomb_planted / bomb_defuse / shot
bomb_dropped result:
Image
demosinfocs-golang bomb_dropped result:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions