Hi, after todays update of css, sp is no longer working
Here is the error it shows when it attempts to load before crashing
[2025-02-18 22:17:05]: Failed to load plugin "addons/Tickrate_Enabler"
[2025-02-18 22:17:05]: [Source.Python] Loading...
[2025-02-18 22:17:05]: [Source.Python] Could not retrieve interface ServerGameDLL010
[2025-02-18 22:17:05]: Failed to load plugin "addons/source-python"
[2025-02-18 22:17:05]: [Source.Python] Unloading...
[2025-02-18 22:17:05]: Segmentation fault (core dumped)
[2025-02-18 22:17:05]: Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
With everything gone to 64-bit this is going to take some time. The developer said that nothing will be done until the middle of next week. Valve always massively breaks thing when away for a while.
With everything gone to 64-bit this is going to take some time. The developer said that nothing will be done until the middle of next week. Valve always massively breaks thing when away for a while.
The forums aren’t active, where have the devs said this? Last time I saw Ayuto wasn’t interested in working on the 64bit version of this at all, not to mention the Python version itself is 7 versions behind.
If it helps debugging, our community reverted back to EventScripts with SPE because that still works somehow.
EventScripts works because it uses a for (int i=3;i<999;i++) to determine the current version until it finds it while we use an hard-coded definition from the SDK. That said, you guys can try to increment it manually:
Try to open your source-python/bin/core.<dll/so> file with a text editor that won't mess with the encoding (such as notepad++) and replace ServerGameDLL011 with ServerGameDLL012.
If it helps debugging, our community reverted back to EventScripts with SPE because that still works somehow.
EventScripts works because it uses a for (int i=3;i<999;i++) to determine the current version until it finds it while we use an hard-coded definition from the SDK. That said, you guys can try to increment it manually:
Try to open your source-python/bin/core.<dll/so> file with a text editor that won't mess with the encoding (such as notepad++) and replace ServerGameDLL011 with ServerGameDLL012. Originally posted by @jordanbriere in #456
Though you are likely to face other issues related to outdated data.
I have tried earlier to change ServerGameDLL010 to ServerGameDLL011 without any success, giving [Source.Python] Could not retrieve interface ServerGameDLL011
I have tried earlier to change ServerGameDLL010 to ServerGameDLL011 without any success, giving [Source.Python] Could not retrieve interface ServerGameDLL011
Hello there. I've tested a janky SP build against the latest SDK and also some updated data. CS:S on linux only. It seems to generally work and should help you get at least some plugins running.
thanks sp loads now but crashes on my private plugin giving following error, i haven't traced yet which plugin causes it:
[2025-02-20 20:31:07]: free(): invalid pointer
[2025-02-20 20:31:07]: Aborted (core dumped)
[2025-02-20 20:31:07]: Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
[2025-02-20 20:31:07]: Thu Feb 20 20:31:07 EET 2025: Server restart in 10 seconds
I don't get those errors, my plugin uses hooks like weapon purchase, weapon pickup(can't remember proper name via phone), the other for command run(can't remember proper name via phone), post_think, pre_think and round end hook to block, i am running linux server
This will be a bigger change as I need to upgrade to a newer C++ version. By doing that I also need to recompile all dependencies like Boost, Python, DynamicHooks, etc. Since I need to recompile I also decided to upgrade to the latest Python version. So, with the next update Source.Python will run with Python 3.13.
After the upgrade we also need to make some code changes to be able to successfully compile against the latest SDK. After that we will need to check/update the signatures and offsets.
Activity
saltysteev commented on Feb 19, 2025
I can confirm the update also broke SourceMod, and they're actively getting a fix out.
Not sure about SourcePython's speed of development though.
Lunacy1984 commented on Feb 20, 2025
With everything gone to 64-bit this is going to take some time. The developer said that nothing will be done until the middle of next week. Valve always massively breaks thing when away for a while.
saltysteev commented on Feb 20, 2025
The forums aren’t active, where have the devs said this? Last time I saw Ayuto wasn’t interested in working on the 64bit version of this at all, not to mention the Python version itself is 7 versions behind.
Ayuto commented on Feb 20, 2025
Here ;-)
#500
saltysteev commented on Feb 20, 2025
Fair enough I stand corrected. If it helps debugging, our community reverted back to EventScripts with SPE because that still works somehow.
jordanbriere commented on Feb 20, 2025
EventScripts works because it uses a for (int i=3;i<999;i++) to determine the current version until it finds it while we use an hard-coded definition from the SDK. That said, you guys can try to increment it manually:
Though you are likely to face other issues related to outdated data.
srpg commented on Feb 20, 2025
I have tried earlier to change ServerGameDLL010 to ServerGameDLL011 without any success, giving [Source.Python] Could not retrieve interface ServerGameDLL011
jordanbriere commented on Feb 20, 2025
Current version appears to be 12.
kirrm commented on Feb 20, 2025
Hello there. I've tested a janky SP build against the latest SDK and also some updated data. CS:S on linux only. It seems to generally work and should help you get at least some plugins running.
css-linux-feb18-hotfix.zip
P.S. Auto-updater is disabled in there
srpg commented on Feb 20, 2025
thanks sp loads now but crashes on my private plugin giving following error, i haven't traced yet which plugin causes it:
[2025-02-20 20:31:07]: free(): invalid pointer
[2025-02-20 20:31:07]: Aborted (core dumped)
[2025-02-20 20:31:07]: Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
[2025-02-20 20:31:07]: Thu Feb 20 20:31:07 EET 2025: Server restart in 10 seconds
Edit solved the issue
saltysteev commented on Feb 20, 2025
That loads but if a plugin uses anything with hooks I believe it's still crashing.
2025-02-20 21:59:07 - sp.core.command - MESSAGE [SP] Loading plugin 'fsm'...
2025-02-20 21:59:07 - sp.core.command - MESSAGE [SP] Successfully loaded plugin 'fsm'.
2025-02-20 21:59:08 - sp.hooks.exceptions - EXCEPTION [Source.Python]
[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]
File "../addons/source-python/packages/source-python/entities/_base.py", line 363, in dynamic_attributes
for cls, instance in self.server_classes.items():
File "../addons/source-python/packages/source-python/entities/_base.py", line 355, in server_classes
server_classes.get_entity_server_classes(self)
File "../addons/source-python/packages/source-python/entities/_base.py", line 354, in
server_class in reversed(
RecursionError: maximum recursion depth exceeded while calling a Python object
srpg commented on Feb 20, 2025
I don't get those errors, my plugin uses hooks like weapon purchase, weapon pickup(can't remember proper name via phone), the other for command run(can't remember proper name via phone), post_think, pre_think and round end hook to block, i am running linux server
kirrm commented on Feb 21, 2025
Hooks work fine, however that RecursionError is weird. Care to give some code that can reproduce the problem?
saltysteev commented on Feb 21, 2025
Edit: Looks like the hooks exceptions were on my end.
However, I'm getting a Segmentation fault when trying to load any model using engine.precache Model. Specifically in a @event player_spawn
Frag1337 commented on Mar 2, 2025
Any updates on this?
waldotf commented on Mar 2, 2025
#500 (comment)
Lunacy1984 commented on Mar 2, 2025
From #500 (comment)
This will be a bigger change as I need to upgrade to a newer C++ version. By doing that I also need to recompile all dependencies like Boost, Python, DynamicHooks, etc. Since I need to recompile I also decided to upgrade to the latest Python version. So, with the next update Source.Python will run with Python 3.13.
After the upgrade we also need to make some code changes to be able to successfully compile against the latest SDK. After that we will need to check/update the signatures and offsets.
Update gamedata offsets
Ayuto commented on Apr 16, 2025
Closing this in favor of #505.