Skip to content

AttributeError: 'NoneType' object has no attribute 'entity_id' #3

@Major-Jiean

Description

@Major-Jiean
from DemoParser import DemoParser

import example.round_stats_functions as my

path = r"C:\Users\jiazh\Desktop\CSGOdemoPythonParser-master\13.dem"
dump_path = r"C:\Users\jiazh\Desktop\CSGOdemoPythonParser-master\demodump.txt"

x = DemoParser(path, dump=dump_path, ent="NONE")

x.subscribe_to_event("parser_start", my.new_demo)
x.subscribe_to_event("gevent_player_team", my.player_team)
x.subscribe_to_event("gevent_player_death", my.player_death)
x.subscribe_to_event("gevent_player_spawn", my.player_spawn)
x.subscribe_to_event("gevent_bot_takeover", my.bot_takeover)
x.subscribe_to_event("gevent_begin_new_match", my.begin_new_match)
x.subscribe_to_event("gevent_round_end", my.round_end)
x.subscribe_to_event("gevent_round_officially_ended", my.round_officially_ended)
x.subscribe_to_event("parser_update_pinfo", my.update_pinfo)
x.subscribe_to_event("cmd_dem_stop", my.cmd_dem_stop)
x.subscribe_to_event("parser_demo_finished_print", my.print_match_stats)

x.parse()

hello,I tried to run the example using my demo,but there is a AttributeError: 'NoneType' object has no attribute 'entity_id' Can you help me with this ? thank you !

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