[BM:S] AttributeError

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

[BM:S] AttributeError

Postby Painkiller » Sat Dec 11, 2021 9:45 pm

I get an error code can someone help me?


Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/entities/_base.py", line 244, in __getattr__
    instance, value = self.dynamic_attributes[attr]


KeyError: 'materialize'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/entities/hooks.py", line 225, in on_networked_entity_created
    _waiting_entity_hooks.initialize(entity.index)
  File "../addons/source-python/packages/source-python/entities/hooks.py", line 212, in initialize
    if hook.initialize(entity):
  File "../addons/source-python/packages/source-python/entities/hooks.py", line 162, in initialize
    self.hooked_function = getattr(entity, self.function)
  File "../addons/source-python/packages/source-python/entities/_base.py", line 246, in __getattr__
    raise AttributeError('Attribute "{0}" not found'.format(attr))

AttributeError: Attribute "materialize" not found

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 35 guests