Add Linux x86-64 support for HL2DM#533
Open
speedvoltage wants to merge 2 commits into
Open
Conversation
speedvoltage
marked this pull request as ready for review
July 16, 2026 11:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DynamicHooks PR: Add Linux x86-64 System V hook support Ayuto/DynamicHooks#11
This PR aims at providing 64-bit support for Source.Python. I started this 6 months ago for fun, but mainly because I am working on a custom SSDK for HL2DM. I tested this on Ubuntu, and Half-Life 2: Deathmatch only. Anyone who would like to continue on from this should hopefully have an easier time.
SP plugins load in-game, including detouring functions. I tested chat hooks, HUD text, timers, and a bunch of other stuff.
I wanted to help some folks who sadly could not get EventScript working since it was not open source.
I am not too sure I can keep working on this due to other high importance game projects, but like I said, this should hopefully set up base for anyone else who wants to keep updating this.
Anyways, some output from a 64-bit HL2MP server:
Plugin validations:
Plugin behavior:
Behavior after level change:
Test plugin used:
Source.Python unloading on server shutdown:
Screenshot of in-game interaction with Source.Python x64:

Note: I was able to launch Source.Python on a custom server_srv.so binary, but any detouring may or may not crash servers. I know I have had that problem on Sourcemod where I had to update all the vtable offsets and signatures because of my custom code. I have not gone as far as detouring any function on my custom server_srv.so, though, so keep that in mind.
Thank you.