Jump to content
  • 0
Sign in to follow this  
imustluvpain

hBG.c and HPMHooking.h Errors

Question

Hi guys. I'm having this error after adding hBG.c plugin from http://herc.ws/board/topic/14083-hercules-battlegrounds/ . Hoping for some help please. Thanks in advance! :)

 

In file included from hBG.c:44:
../plugins/HPMHooking.h:25: error: nested redefinition of 'enum HPluginHookType'
../plugins/HPMHooking.h:25: error: redeclaration of 'enum HPluginHookType'
../plugins/HPMHooking.h:26: error: redeclaration of enumerator 'HOOK_TYPE_PRE'
../common/HPMi.h:75: note: previous definition of 'HOOK_TYPE_PRE' was here
../plugins/HPMHooking.h:27: error: redeclaration of enumerator 'HOOK_TYPE_POST'
../common/HPMi.h:76: note: previous definition of 'HOOK_TYPE_POST' was here
In file included from hBG.c:44:
../plugins/HPMHooking.h:46:42: error: HPMHooking/HPMHooking.Defs.inc: No such file or directory
../plugins/HPMHooking.h:48:1: warning: "addHookPre" redefined
In file included from ../common/hercules.h:35,
                 from hBG.c:15:
../common/HPMi.h:110:1: warning: this is the location of the previous definition
In file included from hBG.c:44:
../plugins/HPMHooking.h:53:1: warning: "addHookPost" redefined
In file included from ../common/hercules.h:35,
                 from hBG.c:15:
../common/HPMi.h:111:1: warning: this is the location of the previous definition
In file included from hBG.c:44:
../plugins/HPMHooking.h:60:1: warning: "hookStop" redefined
In file included from ../common/hercules.h:35,
                 from hBG.c:15:
../common/HPMi.h:114:1: warning: this is the location of the previous definition
In file included from hBG.c:44:
../plugins/HPMHooking.h:61:1: warning: "hookStopped" redefined
In file included from ../common/hercules.h:35,
                 from hBG.c:15:
../common/HPMi.h:115:1: warning: this is the location of the previous definition
hBG.c: In function 'hBG_send_guild_member_list':
hBG.c:599: error: 'struct mmo_charstatus' has no member named 'class'
hBG.c: In function 'hBG_add_rank_points':
hBG.c:1559: error: too few arguments to function 'clif->disp_message'
hBG.c:1560: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:1564: error: too few arguments to function 'clif->disp_message'
hBG.c:1565: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'npc_parse_unknown_mapflag_pre':
hBG.c:3202: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'clif_charnameupdate_pre':
hBG.c:3236: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'skill_check_condition_castbegin_pre':
hBG.c:3247: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'skillnotok_pre':
hBG.c:3255: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'skill_castend_nodamage_id_pre':
hBG.c:3304: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'status_get_guild_id_pre':
hBG.c:3325: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'status_get_emblem_id_pre':
hBG.c:3345: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'bg_team_leave_pre':
hBG.c:3364: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'guild_isallied_pre':
hBG.c:3404: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c: In function 'plugin_init':
hBG.c:3593: error: 'HPMHOOK_pre_npc_parse_unknown_mapflag' undeclared (first use in this function)
hBG.c:3593: error: (Each undeclared identifier is reported only once
hBG.c:3593: error: for each function it appears in.)
hBG.c:3593: error: expected ')' before numeric constant
hBG.c:3593: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3593: warning: left-hand operand of comma expression has no effect
hBG.c:3594: error: 'HPMHOOK_pre_clif_charnameupdate' undeclared (first use in this function)
hBG.c:3594: error: expected ')' before numeric constant
hBG.c:3594: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3594: warning: left-hand operand of comma expression has no effect
hBG.c:3595: error: 'HPMHOOK_pre_status_get_guild_id' undeclared (first use in this function)
hBG.c:3595: error: expected ')' before numeric constant
hBG.c:3595: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3595: warning: left-hand operand of comma expression has no effect
hBG.c:3596: error: 'HPMHOOK_pre_status_get_emblem_id' undeclared (first use in this function)
hBG.c:3596: error: expected ')' before numeric constant
hBG.c:3596: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3596: warning: left-hand operand of comma expression has no effect
hBG.c:3597: error: 'HPMHOOK_pre_map_quit' undeclared (first use in this function)
hBG.c:3597: error: expected ')' before numeric constant
hBG.c:3597: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3597: warning: left-hand operand of comma expression has no effect
hBG.c:3598: error: 'HPMHOOK_pre_guild_isallied' undeclared (first use in this function)
hBG.c:3598: error: expected ')' before numeric constant
hBG.c:3598: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3598: warning: left-hand operand of comma expression has no effect
hBG.c:3599: error: 'HPMHOOK_pre_skill_check_condition_castbegin' undeclared (first use in this function)
hBG.c:3599: error: expected ')' before numeric constant
hBG.c:3599: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3599: warning: left-hand operand of comma expression has no effect
hBG.c:3600: error: 'HPMHOOK_pre_skill_not_ok' undeclared (first use in this function)
hBG.c:3600: error: expected ')' before numeric constant
hBG.c:3600: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3600: warning: left-hand operand of comma expression has no effect
hBG.c:3601: error: 'HPMHOOK_pre_skill_castend_nodamage_id' undeclared (first use in this function)
hBG.c:3601: error: expected ')' before numeric constant
hBG.c:3601: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3601: warning: left-hand operand of comma expression has no effect
hBG.c:3602: error: 'HPMHOOK_pre_bg_team_leave' undeclared (first use in this function)
hBG.c:3602: error: expected ')' before numeric constant
hBG.c:3602: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3602: warning: left-hand operand of comma expression has no effect
hBG.c:3605: error: 'HPMHOOK_post_clif_pLoadEndAck' undeclared (first use in this function)
hBG.c:3605: error: expected ')' before numeric constant
hBG.c:3605: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3605: warning: left-hand operand of comma expression has no effect
hBG.c:3606: error: 'HPMHOOK_post_clif_pUseSkillToId' undeclared (first use in this function)
hBG.c:3606: error: expected ')' before numeric constant
hBG.c:3606: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3606: warning: left-hand operand of comma expression has no effect
hBG.c:3607: error: 'HPMHOOK_post_clif_getareachar_pc' undeclared (first use in this function)
hBG.c:3607: error: expected ')' before numeric constant
hBG.c:3607: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3607: warning: left-hand operand of comma expression has no effect
hBG.c:3608: error: 'HPMHOOK_post_pc_update_idle_time' undeclared (first use in this function)
hBG.c:3608: error: expected ')' before numeric constant
hBG.c:3608: error: 'struct HPMi_interface' has no member named 'hooking'
hBG.c:3608: warning: left-hand operand of comma expression has no effect
hBG.c:3664:89: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c: In function 'server_preinit':
hBG.c:3664: error: 'addBattleConf' undeclared (first use in this function)
hBG.c:3665:96: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3666:90: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3667:95: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3668:95: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3669:96: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3670:94: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3671:93: error: macro "addBattleConf" passed 4 arguments, but takes just 3
hBG.c:3672:93: error: macro "addBattleConf" passed 4 arguments, but takes just 3
make[1]: *** [../../plugins/hBG.so] Error 1
make[1]: Leaving directory `/root/trunk/src/plugins'
make: *** [plugins] Error 2

 

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

It's best to get the latest revision of Hercules and try. I don't think HPM is fully implemented in your revision, I'm guessing it's a year or two old.

Share this post


Link to post
Share on other sites
  • 0

If you have a server running with many custom edits, copying all files over it would basically remove the edits. Best to checkout the latest revision of hercules in a new directory and then add Hercules BG.

Share this post


Link to post
Share on other sites
  • 0

If you have a server running with many custom edits, copying all files over it would basically remove the edits. Best to checkout the latest revision of hercules in a new directory and then add Hercules BG.

 

After making a new directory sir, should i config inter-server.conf?

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
Answer this question...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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