We have posted a new release again!
The changelog can be found here:
https://github.com/Source-Python-Dev-Team/Source.Python/compare/2eb3a29...master
As always, the download can be found in the release section on the GitHub page:
https://github.com/Source-Python-Dev-Team/Source.Python/releases
A new release!
There were some fairly major changes made the last few days, so we felt it necessary to post another new build!!
https://github.com/Source-Python-Dev-Team/Source.Python/releases
https://github.com/Source-Python-Dev-Team/Source.Python/releases
Whenever i attempt to use <BaseEntity>.take_damage() im getting the following error:
[SP] Loading plugin 'test'...
[SP] Caught an Exception:
Traceback (most recent call last):
File '..\addons\source-python\packages\source-python\plugins\manager.py', line
78, in __missing__
instance.globals['load']()
File '..\addons\source-python\plugins\test\test.py', line 22, in load
BaseEntity(index).take_damage(1.0)
File '..\addons\source-python\packages\source-python\entities\specials.py', li
ne 143, in take_damage
self.take_damage(take_damage_info)
File '..\addons\source-python\packages\source-python\entities\specials.py', li
ne 131, in take_damage
take_damage_info.damage = damage
Boost.Python.ArgumentError: Python argument types in
None.None(TakeDamageInfo, TakeDamageInfo)
did not match C++ signature:
None(class CTakeDamageInfo {lvalue}, float)
[SP] Plugin 'test' was unable to be loaded.
Whoops. Forgot to rename the virtual method inside the take_damage method to on_take_damage. This caused the method to re-call itself. I will commit that fix and post a new release. Thank you for reporting.
*Edit - done:
https://github.com/Source-Python-Dev-Team/Source.Python/releases
*Edit - done:
https://github.com/Source-Python-Dev-Team/Source.Python/releases
Return to “News & Announcements”
Who is online
Users browsing this forum: No registered users and 6 guests