A new release! (May 19, 2015)
A new release! (May 19, 2015)
A new release is available! 87 commits have been made since the last release.
Changelog:
https://github.com/Source-Python-Dev-Team/Source.Python/compare/ff92726...master
Download:
https://github.com/Source-Python-Dev-Team/Source.Python/releases/tag/d9d9593
Changelog:
https://github.com/Source-Python-Dev-Team/Source.Python/compare/ff92726...master
Download:
https://github.com/Source-Python-Dev-Team/Source.Python/releases/tag/d9d9593
Thank you for the update, been hoping for one for a while, just have a problem
I haven't tried this on a server yet but I seem to crash when loading CSGO in insecure mode. CSGO doesnt even get into the first image, just goes black and crashes. Not to sure whether this helps or not but I can't find any other logs/crash files. This is just me copying and pasting the files directly into my CSGO folder and it used to work but the new update seems to of caused the problem.
I haven't tried this on a server yet but I seem to crash when loading CSGO in insecure mode. CSGO doesnt even get into the first image, just goes black and crashes. Not to sure whether this helps or not but I can't find any other logs/crash files. This is just me copying and pasting the files directly into my CSGO folder and it used to work but the new update seems to of caused the problem.
- L'In20Cible
- Project Leader
- Posts: 1534
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Getting this error after the latest update:
The same code worked fine before the update, here's the line causing the error: https://github.com/Hero-Wars-Dev-Team/Hero-Wars/blob/master/addons/source-python/plugins/hw/player.py#L133
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File '../addons/source-python/packages/source-python/events/listener.py', line 93, in fire_game_event
callback(game_event)
File '../addons/source-python/plugins/hw/hw.py', line 369, in round_start
player = Player(index)
File '../addons/source-python/plugins/hw/player.py', line 133, in __init__
self.bump_weapon.add_hook(HookType.PRE, weapon_bump)
File '../addons/source-python/packages/source-python/entities/entity.py', line 84, in __getattr__
for server_class in self.server_classes:
File '../addons/source-python/packages/source-python/entities/entity.py', line 225, in server_classes
for server_class in server_classes.get_entity_server_classes(self):
File '../addons/source-python/packages/source-python/entities/classes.py', line 143, in get_entity_server_classes
datamap = entity.datamap
Boost.Python.ArgumentError: Python argument types in
None.None(Player)
did not match C++ signature:
None(CBaseEntityWrapper {lvalue})
The same code worked fine before the update, here's the line causing the error: https://github.com/Hero-Wars-Dev-Team/Hero-Wars/blob/master/addons/source-python/plugins/hw/player.py#L133
I honestly don't know what to tell you. I don't get that error, myself. Here is my test script:
That script correctly prints out a MemberFunction instance as long as one player is on the server (using index 1). I tested both CS:S and CS:GO on Windows. What game are you having this issue on?
*Edit: just tested the same code on CS:S and CS:GO for Linux, and they both worked fine, too.
Syntax: Select all
from players.entity import PlayerEntity
player = PlayerEntity(1)
print(player.bump_weapon)
That script correctly prints out a MemberFunction instance as long as one player is on the server (using index 1). I tested both CS:S and CS:GO on Windows. What game are you having this issue on?
*Edit: just tested the same code on CS:S and CS:GO for Linux, and they both worked fine, too.
- L'In20Cible
- Project Leader
- Posts: 1534
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Where did the global_vars instance move?
Syntax: Select all
# this throws an ImportError:
from core import global_vars
Syntax: Select all
from engines.server import global_vars
Also, I wanted to announce that we have merged the BMS branch into the master branch. Due to this, and a fix today for a CS:GO function, we have posted another release.
https://github.com/Source-Python-Dev-Team/Source.Python/releases/tag/90bf270
Csgo server crashes when loading sourcepython.
https://www.dropbox.com/s/z81ac9k8tpqltf2/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202015-05-22%2014.36.03.png?dl=0
https://www.dropbox.com/s/z81ac9k8tpqltf2/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202015-05-22%2014.36.03.png?dl=0
Return to “News & Announcements”
Who is online
Users browsing this forum: Google [Bot] and 2 guests