Batfoxkid / Freak-Fortress-2-Rewrite

The gamemode that's now also a standalone boss maker.
https://forums.alliedmods.net/forumdisplay.php?f=154
GNU General Public License v3.0
19 stars 9 forks source link

[BUG] DHooks crash on Windows when attacking any enemy player as a boss #17

Closed TheGreatWeegee closed 2 years ago

TheGreatWeegee commented 2 years ago

Reposting this bug here from Discord.

Error: server falls flat on attacking any enemy during boss round as a boss - REDs attacking the boss seems to work fine. Crashes with error: [DHOOKS] FATAL: Failed to find return address of original function. Check the arguments and return type of your detour setup.

How to replicate:

  1. Download fresh Rewrite from the repository and compile it.
  2. Launch Windows server.
  3. Hit a player during the boss round.

Any additional plugins do not cause this - it happens even when everything is disabled except the plugins needed for gamemode to work.

Plugins list at the moment of removing everything: 01 "Admin File Reader" (1.11.0.6905) by AlliedModders LLC 02 "Admin Help" (1.11.0.6905) by AlliedModders LLC 03 "Admin Menu" (1.11.0.6905) by AlliedModders LLC 04 "Anti-Flood" (1.11.0.6905) by AlliedModders LLC 05 "Basic Ban Commands" (1.11.0.6905) by AlliedModders LLC 06 "Basic Chat" (1.11.0.6905) by AlliedModders LLC 07 "Basic Comm Control" (1.11.0.6905) by AlliedModders LLC 08 "Basic Commands" (1.11.0.6905) by AlliedModders LLC 09 "Basic Info Triggers" (1.11.0.6905) by AlliedModders LLC 10 "Basic Votes" (1.11.0.6905) by AlliedModders LLC 11 "Client Preferences" (1.11.0.6905) by AlliedModders LLC 12 "Freak Fortress 2: Rewrite" (Beta 7/2/2022) by Batfoxkid based on the original done by many others 13 "Fun Commands" (1.11.0.6905) by AlliedModders LLC 14 "Fun Votes" (1.11.0.6905) by AlliedModders LLC 15 "Nextmap" (1.11.0.6905) by AlliedModders LLC 16 "Player Commands" (1.11.0.6905) by AlliedModders LLC 17 "Reserved Slots" (1.11.0.6905) by AlliedModders LLC 18 "Simple Chat Processor (Redux)" (2.3.0) by Simple Plugins, Mini 19 "[TF2] TF2Attributes" (1.3.3@nosoop-1.7.1.1) by FlaminSarge 20 "TF2 Utils" (0.19.1) by nosoop 21 "[TF2] Custom Attributes" (0.4.1) by nosoop 22 "[TF2] Econ Data" (0.18.2) by nosoop 23 "[TF2] OnTakeDamage Hooks" (1.2.0) by nosoop

Link to crash dump on Accelerator.

TheGreatWeegee commented 2 years ago

If needed, tell me, I will add you to my sharing list on Accelerator for more info, because Accelerator doesn't show raw dumps and console, as far as I seen.

TheGreatWeegee commented 2 years ago

I think that it might be a problem with a hook leading to the ammo pack generation on player kill, since all bosses one-shot players anyway and at the moment of getting hit players are as good as dead.

L 07/08/2022 - 21:17:54: [SM] Error (line 0, column 0): Stream failed to open L 07/08/2022 - 21:17:54: [DHOOKS] Function "CTFPlayer::DropAmmoPack" uses unsupported pass flags in argument "info". Flags are only supported for virtual hooks: line: 331 col: 4 L 07/08/2022 - 21:17:54: [DHOOKS] Function "CTFPlayer::DropAmmoPack" uses unsupported pass flags in argument "info". Flags are only supported for virtual hooks: line: 331 col: 4 L 07/08/2022 - 21:17:54: [SM] Exception reported: Function signature "CTFPlayer::DropAmmoPack" was not found. L 07/08/2022 - 21:17:54: [SM] Blaming: freak_fortress_2.smx L 07/08/2022 - 21:17:54: [SM] Call stack trace: L 07/08/2022 - 21:17:54: [SM] [0] DynamicDetour.FromConf L 07/08/2022 - 21:17:54: [SM] [1] Line 95, freak_fortress_2\dhooks.sp::CreateDetour L 07/08/2022 - 21:17:54: [SM] [2] Line 63, freak_fortress_2\dhooks.sp::DHook_Setup L 07/08/2022 - 21:17:54: [SM] [3] Line 272, C:\tf2server\tf\addons\sourcemod\scripting\freak_fortress_2.sp::OnPluginStart L 07/08/2022 - 21:17:54: [SM] Unable to load plugin "freak_fortress_2.smx": Error detected in plugin startup (see error logs)

TheGreatWeegee commented 2 years ago

bump?