AnnieRuru 957 Posted December 3, 2015 (edited) Problem if your server having some custom plugin that crash your server, the error look something like this [Info]: Hercules 32-bit for Windows[Info]: Git revision (src): '1e2f24a2fcb13b8a2fe06f4cc829670303760929'[Info]: Git revision (scripts): '1e2f24a2fcb13b8a2fe06f4cc829670303760929'[Info]: OS version: 'Windows 7 Ultimate Service Pack 1 (build 7601) [x86]'[Info]: CPU: 'x86 CPU, Family 6, Model 23, Stepping 10 [2]'[Info]: Compiled with Microsoft Visual C++ 2010 (v1600)[Info]: Compile Flags: N/A[Info]: Server supports up to '4096' concurrent connections.[Status]: HPM: Loaded plugin 'HPMHooking' (0.2).[Warning]: HPMDataCheck:movespeed: 'npc_chat_interface' size mismatch 1 != 36[Fatal Error]: HPM:plugin_load: 'plugins/movespeed.dll' failed DataCheck, out of sync from the core (recompile plugin)!Map-Server has terminated abnormally.Restarting in 15 seconds, press Ctrl+C to cancelthere is a 'npc_chat_interface' size mismatch 1 != 36 error on it.. Why it happen this will happens to all plugins that has map/npc.h on it #include "map/npc.h"any plugin that has this line, will throw the above error this is because @Haru just recently added PCRE_SUPPORT on this commit https://github.com/HerculesWS/Hercules/issues/909#issuecomment-161577329 The sample plugin was updated in 1e2f24a with a missing predefined macro. As such, all third party plugins will need a similar update to their VS project... This is unfortunate, but it's pretty much the only viable way that Visual Studio allows..How to solve Windows Compiler kindly follow the step 17 for windows compiler http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC#Step_17 Under Configuration Properties - click C/C++ -- open Preprocessor --- change 'Preprocessor Definitions' to _WINDLL;PCRE_SUPPORT;%(PreprocessorDefinitions) yes, all plugins from now on has to compile with PCRE_SUPPORT; to prevent this error now, someone has to post up the solution on non-windows platform Edited December 13, 2015 by AnnieRuru Quote Share this post Link to post Share on other sites
Samuel 83 Posted December 3, 2015 @@AnnieRuru thanks, will try this one. hmm will this patch can solve the pcre prob with our plugin like for this one? http://herc.ws/board/topic/3977-odin-server-side-manner/?fromsearch=1 Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted December 3, 2015 not yet, there is no hooking point for npc_chat.c yet https://github.com/HerculesWS/Hercules/blob/master/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc I didn't see npc_chat-> or libpcre-> here, maybe the hercules bot didn't include npc_chat.c yet I guess Haru will fix it soon because I also found this line https://github.com/HerculesWS/Hercules/blob/master/src/map/npc.h#L360 Quote Share this post Link to post Share on other sites
Samuel 83 Posted December 3, 2015 yeah, just saw your testings in issues, thanks! Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 8, 2015 Im having this problem in centos. help me Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted December 8, 2015 Im having this problem in centos. help meType this: yum install pcre-develThen reconfigure and clean recompile by ./configuremake cleanmake all Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 8, 2015 @@Dastgir I have follow your instruction. The problem are from the git file. I download new makefile.in then replace and its works. Quote Share this post Link to post Share on other sites
Kuya Jeo 120 Posted December 9, 2015 Im having this problem in centos. help meType this: yum install pcre-develThen reconfigure and clean recompile by ./configuremake cleanmake all me too i have a problem in centos, when i edit Makefile.in, when i used make clean, i got looping/nonstop make clean Quote Share this post Link to post Share on other sites
Kong 9 Posted December 11, 2015 I'm using Debian and it doesn't compile correctly, it returns a lot of errors Quote Share this post Link to post Share on other sites