Page 1 of 1

_basetypes not found in newest release

Posted: Sun Mar 15, 2015 6:06 pm
by Predz

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File '../addons/source-python/packages/source-python/plugins/manager.py', line 72, in __missing__
    instance = self.instance(plugin_name, self.base_import)
  File '../addons/source-python/packages/source-python/plugins/instance.py', line 82, in __init__
    self._plugin = import_module(import_name)
  File '../addons/source-python/plugins/herowars/herowars.py', line 25, in <module>
    from herowars.heroes import *
  File '../addons/source-python/plugins/herowars/heroes/warden_scourge.py', line 12, in <module>
    from basetypes import TakeDamageInfo
  File '../addons/source-python/packages/source-python/basetypes.py', line 10, in <module>
    from _basetypes import Color
 
ImportError: No module named '_basetypes'


Appears every time I install the new March 8th release for CSGO. Not to sure what the problem would be :confused:

Have tried reinstalling this release on Dedicated Servers and on my own machine inside CSGO.

Forgot to mention, server being tested on is Linux.

Posted: Sun Mar 15, 2015 6:22 pm
by L'In20Cible
basetypes has been removed. TakeDamageInfo is now forwarded to entities:

Syntax: Select all

from entities import TakeDamageInfo


And Color has been forwarded to colors:

Syntax: Select all

from colors import Color


The problem is that you still have the old basetypes.py on your server (which is no longer shipped with the releases).

Posted: Sun Mar 15, 2015 6:40 pm
by Predz
Thank you!

Didn't realize this change had happened, but makes sense :D