hermansimensen / eventqueue-fix

Replaces general event queue found within Source-engine games with a lag-resistant event queue per player entity
GNU General Public License v3.0
19 stars 7 forks source link

Pls help me for this error #20

Closed FinnTR closed 1 year ago

FinnTR commented 1 year ago

L 09/24/2022 - 16:21:37: [SM] Exception reported: Pass flags are only supported for virtual hooks. L 09/24/2022 - 16:21:37: [SM] Blaming: eventqueuefix.smx L 09/24/2022 - 16:21:37: [SM] Call stack trace: L 09/24/2022 - 16:21:37: [SM] [0] DHookAddParam L 09/24/2022 - 16:21:37: [SM] [1] Line 155, eventqueuefix.sp::LoadDHooks L 09/24/2022 - 16:21:37: [SM] [2] Line 50, eventqueuefix.sp::OnPluginStart [SM] Plugin eventqueuefix.smx failed to load: Error detected in plugin startup (see error logs).

[SM] Displaying 24 extensions: [01] Automatic Updater (1.11.0.6911): Updates SourceMod gamedata files [02] Webternet (1.11.0.6911): Extension for interacting with URLs [03] BanId Fix (1.0): Correcting 'Ghost players' error [04] SDK Tools (1.11.0.6911): Source SDK Tools [05] BinTools (1.11.0.6911): Low-level C/C++ Calling API [06] Accelerator (2.5.0): SRCDS Crash Handler [07] Console Cleaner (1.1.0): Console warning suppressor [08] CS Tools (1.11.0.6911): CS extended functionality [09] SteamWorks Extension (1.2.3): Exposes SteamWorks functions to Developers [10] DHooks (1.11.0.6911): Dynamic Hooks [11] SDK Hooks (1.11.0.6911): Source SDK Hooks [12] Regex (1.11.0.6911): Provides regex natives for plugins [13] TAU LIB (1.1): [14] Client Preferences (1.11.0.6911): Saves client preference settings [15] SQLite (1.11.0.6911): SQLite Driver [16] Top Menus (1.11.0.6911): Creates sorted nested menus [17] SMJansson (2.3.1/3): JSON parser/writer [18] REST in Pawn (1.3.1): Provides HTTP and JSON natives for plugins [19] GeoIP (1.11.0.6911): Geographical IP information [20] Socket (3.0.1): Socket extension for SourceMod [21] PTaH (1.1.3): Additional CS:GO Hooks and Natives [22] file "closestpos.ext.so": /home/csgoserver/serverfiles96/csgo/addons/sourcemod/extensions/closestpos.ext.so: cannot open shared object file: No such file or directory [23] SendProxy Manager (1.2): Change stuff without actually changing stuff! [24] MySQL-DBI (1.11.0.6911): MySQL driver implementation for DBI

rtldg commented 1 year ago

Same issue as #19. I'm pretty sure it'll work fine if you edit this line https://github.com/hermansimensen/eventqueue-fix/blob/ff6b07a5c2c4cc7d60d38030c3024222f08e934e/scripting/eventqueuefix.sp#L155 and change it to

DHookAddParam(addEventThree, HookParamType_Object, 20);

and then compile the plugin.

The issue & this change haven't gotten enough testing so the plugin just hasn't been updated yet.

FinnTR commented 1 year ago

L 09/24/2022 - 16:59:37: [SM] Exception reported: Invalid address 0x5748 is pointing to reserved memory. L 09/24/2022 - 16:59:37: [SM] Blaming: eventqueuefix.smx L 09/24/2022 - 16:59:37: [SM] Call stack trace: L 09/24/2022 - 16:59:37: [SM] [0] LoadFromAddress L 09/24/2022 - 16:59:37: [SM] [1] Line 179, D:\Plugins\eventqueuefix.sp::EntityToBCompatRef L 09/24/2022 - 16:59:37: [SM] [2] Line 196, D:\Plugins\eventqueuefix.sp::DHook_AddEventThree

@rtldg this is spammed and server crashed.

rtldg commented 1 year ago

I don't know what the cause of that is. I'm not sure if it'd be related to sourcemod 1.11 not allowing pass-flags and then the parameters in the hook fucking up, or if the offset used on line 179 (g_iRefOffset) needs to be updated. So I guess there's no fix right now. I'll try to do some testing later, but no promises

FinnTR commented 1 year ago

understood, im waiting :)

FinnTR commented 1 year ago

@rtldg I tried this version and worked!