you still cant follow the instruction don't you?![]()
1. Download and extract files using 7z or any application that can extract it.
2. extract it in your server directory ex: C:/RO Server/Hercules/
2.1. edit conf/plugins.conf and add autopots
3. find autopots/autopots.sln and recompile it.
4. You can now start using your ready made plugins![]()
so it will merge to your server files.
I think you cant get what I mean,
try to make your own compiler..
http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC
make[1]: Entering directory `/home/*/server/src/plugins' CC autopots.cautopots.c: In function âautoatpots_timerâ:autopots.c:76: warning: unused variable âitemâautopots.c: In function âatcommand_autopotsâ:autopots.c:130: warning: implicit declaration of function âsscanf_sâautopots.c: In function âautoatpots_timerâ:autopots.c:111: warning: array subscript is above array boundsautopots.c:117: warning: array subscript is above array boundsmake[1]: Leaving directory `/home/*/server/src/plugins'
Thanks. I thought it's an error because I cannot use the plugins. Though it's ok on my Windows system sandbox^ Thanks for your info.
I will check it this weekend, However it is only a warning and you can still use it on game.
2>..srcpluginsautopots.c(120): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(120): error C2223: left of '->add' must point to struct/union2>..srcpluginsautopots.c(120): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(120): error C2223: left of '->gettick' must point to struct/union2>..srcpluginsautopots.c(172): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(172): error C2223: left of '->add' must point to struct/union2>..srcpluginsautopots.c(172): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(172): error C2223: left of '->gettick' must point to struct/union2>..srcpluginsautopots.c(214): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(214): error C2223: left of '->add' must point to struct/union2>..srcpluginsautopots.c(214): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(214): error C2223: left of '->gettick' must point to struct/union2>..srcpluginsautopots.c(256): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(256): error C2223: left of '->add' must point to struct/union2>..srcpluginsautopots.c(256): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(256): error C2223: left of '->gettick' must point to struct/union2>..srcpluginsautopots.c(270): error C2065: 'timer' : undeclared identifier2>..srcpluginsautopots.c(270): warning C4047: '=' : 'int' differs in levels of indirection from 'void *'
CC autopots.c
autopots.c: In function ‘autoatpots_timer’:
autopots.c:79: warning: unused variable ‘item’
autopots.c:114: warning: array subscript is above array bounds
autopots.c:120: warning: array subscript is above array bounds
Cant reproduce. Make sure you are using version 4.1Hercules Development Team presents
_ _ _
| | | | | |
| |_| | ___ _ __ ___ _ _| | ___ ___
| _ |/ _ '__/ __| | | | |/ _ / __|
| | | | __/ | | (__| |_| | | __/__
_| |_/___|_| ___|__,_|_|___||___/
http://herc.ws/board/
[info]: Hercules 32-bit for Linux
[info]: Git revision (src): '47ff8ed7fa7603974a6f5e41b5290e5e24916317'
[info]: Git revision (scripts): '47ff8ed7fa7603974a6f5e41b5290e5e24916317'
[info]: OS version: 'Debian GNU/Linux 6.0.5 (squeeze) [i686]'
[info]: CPU: 'Intel® Xeon® CPU E3-1270 v3 @ 3.50GHz [1]'
[info]: Compiled with GCC v4.4.5
[info]: Compile Flags: -g -O2 -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -march=i686 -Wno-unused-parameter -Wno-clobbered -Wempty-body -Wformat-security -Wno-format-nonliteral -Wno-switch -Wno-missing-field-initializers -fno-strict-aliasing -DMAXCONN=16384 -I../common -DHAS_TLS -DHAVE_SETRLIMIT -DHAVE_STRNLEN -I/usr/include -DHAVE_MONOTONIC_CLOCK
[info]: Server supports up to '1024' concurrent connections.
[Warning]: HPMlugin_load: failed to load 'plugins/autopots.so' (error: plugins/autopots.so: cannot open shared object file: No such file or directory), skipping...
[status]: HPM: There are '1' plugins loaded, type 'plugins' to list themmake[1]: Entering directory `/home/xxx/trunk/src/plugins'
PLUGIN sample
PLUGIN db2sql
PLUGIN HPMHooking_char
PLUGIN HPMHooking_login
PLUGIN HPMHooking_map
PLUGIN auraset
CC autopots.c
autopots.c: In function 'autoatpots_timer':
autopots.c:79: warning: unused variable 'item'
autopots.c: In function 'atcommand_autopots':
autopots.c:133: warning: implicit declaration of function 'sscanf_s'
autopots.c: In function 'autoatpots_timer':
autopots.c:114: warning: array subscript is above array bounds
autopots.c:120: warning: array subscript is above array bounds
/tmp/ccxwrLU2.o: In function `atcommand_autosp':
/home/xxx/trunk/src/plugins/autopots.c:231: undefined reference to `sscanf_s'
/home/xxx/trunk/src/plugins/autopots.c:232: undefined reference to `sscanf_s'
/home/xxx/trunk/src/plugins/autopots.c:228: undefined reference to `sscanf_s'
/tmp/ccxwrLU2.o: In function `atcommand_autohp':
/home/xxx/trunk/src/plugins/autopots.c:189: undefined reference to `sscanf_s'
/home/xxx/trunk/src/plugins/autopots.c:190: undefined reference to `sscanf_s'
/tmp/ccxwrLU2.o:/home/xxx/trunk/src/plugins/autopots.c:186: more undefined references to `sscanf_s' follow
collect2: ld returned 1 exit status
make[1]: *** [../../plugins/autopots.so] Error 1
make[1]: Leaving directory `/home/xxx/trunk/src/plugins'
make: *** [plugins] Error 2
xxx@Nostalgic:~/trun
Any solutions ?
We use essential cookies to make this site work, and optional cookies to enhance your experience.