From caaf4965b9c614d58008a13cc866f801cebcb1e1 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Sat, 7 Dec 2024 19:49:35 +0800 Subject: [PATCH] Fixed an issue that "Failed to locate host_frametime from engine dll !" in Sven Co-op 5.26 official release buildnum 10257 --- fallguys/meta_api.cpp | 4 ++-- fallguys/signatures.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fallguys/meta_api.cpp b/fallguys/meta_api.cpp index ba9e43d..6fe2b2a 100644 --- a/fallguys/meta_api.cpp +++ b/fallguys/meta_api.cpp @@ -78,7 +78,7 @@ static META_FUNCTIONS gMetaFunctionTable = { plugin_info_t Plugin_info = { META_INTERFACE_VERSION, // ifvers "FallGuys", // name - "1.7", // version + "1.8", // version "2024", // date "hzqst", // author "https://github.com/hzqst/metamod-fallguys", // url @@ -351,7 +351,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */, VAR_FROM_SIGNATURE_FROM_START(engine, sv_models, 13); - VAR_FROM_SIGNATURE_FROM_END(engine, host_frametime, 0); + VAR_FROM_SIGNATURE_FROM_START(engine, host_frametime, 7); VAR_FROM_SIGNATURE_FROM_END(engine, pmovevars, 0); VAR_FROM_SIGNATURE_FROM_START(engine, sv_areanodes, 9); diff --git a/fallguys/signatures.h b/fallguys/signatures.h index abfb688..830e4d5 100644 --- a/fallguys/signatures.h +++ b/fallguys/signatures.h @@ -21,7 +21,7 @@ #define SV_WriteMovevarsToClient_Signature "\x56\x8B\x74\x24\x08\x6A\x2C\x56\xE8\x2A\x2A\x2A\x2A\xD9\x05" #define sv_models_Signature "\x3D\xFE\x1F\x00\x00\x2A\x2A\x0F\xAE\xE8\xFF\x34\x8D" -#define host_frametime_Signature "\xD8\x83\xA8\x00\x00\x00\xD9\x9B\xA8\x00\x00\x00\xE8\x2A\x2A\x2A\x2A\xDD\x05" +#define host_frametime_Signature "\xE8\x2A\x2A\x2A\x2A\xDD\x05\x2A\x2A\x2A\x2A\x83\xC4\x04\x6A\x00" #define pmovevars_Signature "\x56\x8B\x74\x24\x08\x6A\x2C\x56\xE8\x2A\x2A\x2A\x2A\xD9\x05" #define sv_areanodes_Signature "\x8D\x84\x24\xA0\x00\x00\x00\x50\x68\x2A\x2A\x2A\x2A\xE8" #define pg_groupop_Signature "\xE8\x2A\x2A\x2A\x2A\x83\xC4\x2A\x83\xF8\xFF\x75\x2A\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x15"