Costume Item Plugins

attachicon.gif
costume.jpg

i'm using lastest Hercules GIT,

I got this error, how can i fix it?

Thanh you.
maybe the latest revision affect that.. will try to update it soon...

 
pls help

Code:
[Warning]: HPM:plugin_load: failed to load 'plugins/HPMHooking_login.so' (error: plugins/HPMHooking_login.so: cannot open shared object file: No such file or directory), skipping...[Warning]: HPM:plugin_load: failed to load 'plugins/costumeitem.so' (error: plugins/costumeitem.so: cannot open shared object file: No such file or directory), skipping...
 
pls help

[Warning]: HPM:plugin_load: failed to load 'plugins/HPMHooking_login.so' (error: plugins/HPMHooking_login.so: cannot open shared object file: No such file or directory), skipping...[Warning]: HPM:plugin_load: failed to load 'plugins/costumeitem.so' (error: plugins/costumeitem.so: cannot open shared object file: No such file or directory), skipping...
Make sure that you compiled does two completely. and you add it in conf/plugins.conf

 
plugins_list: [

 /* Enable HPMHooking when plugins in use rely on Hooking */

 "HPMHooking",

 //"db2sql",

 //"sample",

 //"other",

 "costumeitem",
make sure that you compile it both without error just like what the error says.. it cant detect does two files.. meaning it not yet compiled or have error on compilation..

 
MAKE   plugin.o
make[1]: Entering directory `/home/emulador/src/plugins'
make[1]: *** No rule to make target `o'.  Stop.
make[1]: Leaving directory `/home/emulador/src/plugins'
make: *** [plugin.o] Error 2

used command "make plugins"

Code:
 costumeitem.c: In function 'status_calc_mine':costumeitem.c:552: error: 'struct status_interface' has no member named 'base_pc_maxhp'costumeitem.c:577: error: 'struct status_interface' has no member named 'base_pc_maxsp'make[1]: *** [../../plugins/costumeitem.so] Error 1make[1]: Leaving directory `/home/emulador/src/plugins'make: *** [plugins] Error 2
 
Hello, I was having these errors:

Error 3 error C2039: 'base_pc_maxhp' : is not a member of 'status_interface' c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c 552 1 costumeitemError 4 error C2039: 'base_pc_maxsp' : is not a member of 'status_interface' c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c 577 1 costumeitem 
So I changed those lines:

sd->status.max_sp = status->base_pc_maxsp(sd, bstatus);sd->status.max_sp = status->base_pc_maxhp(sd, bstatus);
for this
 
sd->status.max_sp = status->get_base_maxsp(sd, bstatus);sd->status.max_sp = status->get_base_maxsp(sd, bstatus); 
With the changes, the errors are gone and compiled

But I do not know if my changes are correct

Is this right?


 
Hello, I was having these errors:

Error 3 error C2039: 'base_pc_maxhp' : is not a member of 'status_interface' c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c 552 1 costumeitemError 4 error C2039: 'base_pc_maxsp' : is not a member of 'status_interface' c:usersandredocumentsherculeshercules-mastersrcpluginscostumeitem.c 577 1 costumeitem 
So I changed those lines:

sd->status.max_sp = status->base_pc_maxsp(sd, bstatus);sd->status.max_sp = status->base_pc_maxhp(sd, bstatus);
for this
 
sd->status.max_sp = status->get_base_maxsp(sd, bstatus);sd->status.max_sp = status->get_base_maxsp(sd, bstatus); 
With the changes, the errors are gone and compiled

But I do not know if my changes are correct

Is this right?

WOOOWWWW !!! NICE NICE NICE !!!

TY !

 
I also got a problem on line 552 and 577.
and i tried replacing those line with this

552- sd->status.max_hp = status->get_base_maxhp(sd, bstatus);
577- sd->status.max_sp = status->get_base_maxsp(sd, bstatus);
and it work.

thnx

 
mMkOX2m.jpg


Ok, how do I solve this thing? should I download that said .dll file? If yes, where do I put it?

EDIT: .dll solved.

But this is the prob now.

D0ozDQ6.jpg


 I have the same problem, could u tell me how did u solve it, please??

 
Last edited by a moderator:
Why cant load the plugin?

make[1]: Entering directory `/home/ro/Hercules/src/plugins' CC sample.c PLUGIN sample CC db2sql.c PLUGIN db2sql CC HPMHooking.c (CHAR) PLUGIN HPMHooking_char CC HPMHooking.c (LOGIN) PLUGIN HPMHooking_login CC HPMHooking.c (MAP) PLUGIN HPMHooking_mapmake[1]: Leaving directory `/home/ro/Hercules/src/plugins'

I have enable the plugin in Plugins.conf

Code:
plugins_list: [	"HPMHooking",	"costumeitem",	//"db2sql",	//"sample",	//"other",]
 
Add it to the makefile

Why cant load the plugin?

make[1]: Entering directory `/home/ro/Hercules/src/plugins' CC sample.c PLUGIN sample CC db2sql.c PLUGIN db2sql CC HPMHooking.c (CHAR) PLUGIN HPMHooking_char CC HPMHooking.c (LOGIN) PLUGIN HPMHooking_login CC HPMHooking.c (MAP) PLUGIN HPMHooking_mapmake[1]: Leaving directory `/home/ro/Hercules/src/plugins'

I have enable the plugin in Plugins.conf

Code:
plugins_list: [	"HPMHooking",	"costumeitem",	//"db2sql",	//"sample",	//"other",]
 
Back
Top