-
Notifications
You must be signed in to change notification settings - Fork 37
TF2 Crashes on Plugin Load #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I hacked together a functioning build (for TF2/Linux only) based on Python 3.12. My fork is pretty messy, but it should be usable for anyone looking to do something similar: https://github.com/waldotf/Source.Python . Here's the compiled I blindly bundled the same Big thanks to @verstatx, @spitice, and @benjl for the progress they made on public forks, as well as to @Ayuto for answering some questions I had about the build process. |
All four of you did a wonderful job. |
Nope, I just monitored the Github forks for this project and looked for anyone working on the same problems. Probably could have saved some time with proper communication, but I'm far enough outside my ambit that I assumed anyone with the motivation and know-how wouldn't get much out of it. |
Just wanted to let you know that I'm finally working on the update. You can keep track of the work here: The Windows portion is already finished and the servers are starting. Next steps will be Linux and updating game data. If anyone is volunteering to update the game data it would be a great help! If everything is working again we can focus on refactoring some parts of SP like introducing Git submodules. I would also like to apologize for the super massive delay. I have been busy with many other things and the required changes were a lot bigger than expected. Hopefully, the new version will be out until the weekend. |
I have compiled css version to windows it seem to work almost fully(after updating game data), but OnTakeDamage code doesn't work for me, it gives following error: ValueError: Conversion from "BaseHandle" (<_entities.BaseEntityHandle object at 0x1EAA1728>) to "Index" failed. |
New builds are available on our download page! If anything is not working, please create a new issue. Tomorrow I will check the BaseHandle conversion error, fix the wiki layout/design and publish another release to reflect the latest changes. |
This actually works fine for me. from entities import TakeDamageInfo
from entities.hooks import EntityCondition, EntityPreHook
from memory import make_object
@EntityPreHook(EntityCondition.is_bot_player, 'on_take_damage')
@EntityPreHook(EntityCondition.is_human_player, 'on_take_damage')
def _pre_take_damage(stack_data):
info = make_object(TakeDamageInfo, stack_data[1])
print(info.attacker)
print(info.inflictor) If the issue still persists, please create a new issue with steps to reproduce. I will now close the actual issue. |
Same timing as #504, but probably needs a separate fix. Source.Python fully loads, but segfaults immediately on loading my plugin.
Looks like the plugin interrogating the STV user is breaking something, similar to the condition crashing Sourcemod (alliedmodders/sourcemod#2264). Running under gdb, I get this stack trace (truncated the Python calls):
GDB stack trace
Attempting to rebuild against the updated hl2sdk (alliedmodders/hl2sdk@ebd971b) runs into a bunch of missing typedefs -- looks like some more patching is needed. Not surprising since they're incorporating the shiny new tf2 2013 SDK.
The text was updated successfully, but these errors were encountered: