Jump to content
AnnieRuru

PCRE_SUPPORT on latest GIT

Recommended Posts

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 cancel
there 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 by AnnieRuru

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Im having this problem in centos. help me

Type this: yum install pcre-devel

Then reconfigure and clean recompile by

./configuremake cleanmake all

Share this post


Link to post
Share on other sites

 

Im having this problem in centos. help me

Type this: yum install pcre-devel

Then 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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.