Skip to content
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

joke_medigun_mod_drain_health failing to load after recent TF update #28

Closed
Nolo001-Aha opened this issue Jun 25, 2020 · 4 comments
Closed
Labels
bug Something isn't working platform-specific This doesn't work on every platform

Comments

@Nolo001-Aha
Copy link

The plugin simply fails to load with the following stack:

L 06/25/2020 - 16:51:15: [SM] Exception reported: Invalid Handle 0
L 06/25/2020 - 16:51:15: [SM] Blaming: customattribs\joke_medigun_mod_drain_health.smx
L 06/25/2020 - 16:51:15: [SM] Call stack trace:
L 06/25/2020 - 16:51:15: [SM]   [0] DHookEnableDetour
L 06/25/2020 - 16:51:15: [SM]   [1] Line 69, joke_medigun_mod_drain_health.sp::OnPluginStart
L 06/25/2020 - 16:51:15: [SM] Unable to load plugin "customattribs\joke_medigun_mod_drain_health.smx": Error detected in plugin startup (see error logs)

I am running Windows and I do not run any other plugins that may be detouring the function before this one.

I am very certain that this is caused by the recent Team Fortress update. I have a local SCRDS with older version of TF, and there it managed to get loaded just fine. Both "production" and "local" servers run the exact same gamedata.
After updating the local server, however, attempts to load the plugin resulted in the same error stack.

Server environment (please complete the following information):

  • Operating System:Windows
  • SourceMod version: 1.10.0.6462
@Nolo001-Aha Nolo001-Aha added the bug Something isn't working label Jun 25, 2020
@nosoop
Copy link
Owner

nosoop commented Jun 25, 2020

That particular line doesn't correspond to the latest version; can you verify with the source that it should be pointing to this one?

DHookEnableDetour(dtCreateRagdoll, false, OnCreateRagdollPre);

@nosoop nosoop added the platform-specific This doesn't work on every platform label Jun 25, 2020
@Nolo001-Aha
Copy link
Author

The version that I run has the exact same piece of code on line 69 that you showed.

@Nolo001-Aha
Copy link
Author

Built a plugin from my source code and attempted to load it to make sure, and yeah it is still line 69.

@nosoop
Copy link
Owner

nosoop commented Jun 25, 2020

Thanks — that suggests that the signature for CTFPlayer::CreateRagdollEntity() is also broken.

@nosoop nosoop closed this as completed in c299f8f Jun 25, 2020
nosoop added a commit that referenced this issue Sep 8, 2020
Related to #28.  Accidentally missed this one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform-specific This doesn't work on every platform
Projects
None yet
Development

No branches or pull requests

2 participants