_basetypes not found in newest release

Please post any questions about developing your plugin here. Please use the search function before posting!
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

_basetypes not found in newest release

Postby Predz » Sun Mar 15, 2015 6:06 pm

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.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sun Mar 15, 2015 6:22 pm

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).
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

Postby Predz » Sun Mar 15, 2015 6:40 pm

Thank you!

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

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 137 guests