PCRE_SUPPORT on latest GIT

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
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

 
Last edited by a moderator:
yeah, just saw your testings in issues, thanks!

 
Im having this problem in centos. help me
Type this: yum install pcre-develThen reconfigure and clean recompile by

Code:
./configuremake cleanmake all
 
@@Dastgir I have follow your instruction. The problem are from the git file. I download new makefile.in then replace and its works. 
default_sad.png


 
I'm using Debian and it doesn't compile correctly, it returns a lot of errors

 
Back
Top