sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

DHook's status linux64, x64

Open RocKs-Painkiller opened this issue 8 months ago • 6 comments

Hello Sourcemod Team, I wanted to ask about the status of your Linux64 + x64 DHooks and which games are supported.

(I read that Windows works partially, but Linux doesn't at all.)

I run a Linux64 Half Life 2: Deathmatch server.

Greetings Painkiller

RocKs-Painkiller avatar Apr 12 '25 20:04 RocKs-Painkiller

DHooks isn't game specific. If it's fixed for x64 it will work on all x64 games. DHooks is fixed for windows x64 (I did the work), linux hasn't received any fix because there are ton of issues with SourceHook (the backend of dhooks), and frankly speaking its too much work so I've decided not to do it. But I'll be happy to review any pull requests for it.

Kenzzer avatar Apr 13 '25 09:04 Kenzzer

So there seem to be problems on Windows. https://github.com/Alienmario/customguns-hl2dm It doesn't seem to work on 64-bit without DHooks.

L 04/14/2025 - 12:04:22: [SM] [4] Line 735, customguns.sp::OnPlayerRunCmd L 04/14/2025 - 12:04:22: [SM] Exception reported: Hook not setup for a virtual hook. L 04/14/2025 - 12:04:22: [SM] Blaming: customguns.smx L 04/14/2025 - 12:04:22: [SM] Call stack trace: L 04/14/2025 - 12:04:22: [SM] [0] DHookEntity L 04/14/2025 - 12:04:22: [SM] [1] Line 638, customguns.sp::spawnGun L 04/14/2025 - 12:04:22: [SM] [2] Line 608, customguns.sp::giveCustomGun L 04/14/2025 - 12:04:22: [SM] [3] Line 178, C:\server\hl2dm\hl2mp\addons\sourcemod\scripting\include\customguns/menu.inc::onMenuClosing

RocKs-Painkiller avatar Apr 14 '25 16:04 RocKs-Painkiller

So there seem to be problems on Windows. https://github.com/Alienmario/customguns-hl2dm It doesn't seem to work on 64-bit without DHooks.

This plugin does not appear to contain any windows64 gamedata. I suggest reporting the issue on that project

psychonic avatar Apr 14 '25 18:04 psychonic

So there seem to be problems on Windows. https://github.com/Alienmario/customguns-hl2dm It doesn't seem to work on 64-bit without DHooks.

This plugin does not appear to contain any windows64 gamedata. I suggest reporting the issue on that project

Thanks for the quick reply.

RocKs-Painkiller avatar Apr 14 '25 18:04 RocKs-Painkiller

Would it be possible for someone to find the 64-bit game data for this?

It's pretty difficult for me to figure it out, as I don't have the necessary knowledge.

Perhaps someone can do it easily.

I suspect the plugin creator doesn't do this because many people are still working on 32-bit game data.

Regards, Painkiller

RocKs-Painkiller avatar Apr 15 '25 06:04 RocKs-Painkiller

Would it be possible for someone to find the 64-bit game data for this?

It's pretty difficult for me to figure it out, as I don't have the necessary knowledge.

Perhaps someone can do it easily.

I suspect the plugin creator doesn't do this because many people are still working on 32-bit game data.

Regards, Painkiller

Try this tool https://asherkin.github.io/vtable/

yurakone avatar Apr 26 '25 07:04 yurakone