Hercules Battlegrounds

Hello. Need a help here. I really have no idea how to make this work and I just followed everything that's been said. Anyway, I have screenshots of the errors please take a look here http://imgur.com/a/66jqM . Images are in order to avoid confusions.

 
Here there is no step about the conf, i've got the same error the first time i install a plugin, you have to declare the plugin in conf->plugin.conf ^^

 
Hello again. DLL problem has been fixed but I got new set of errors in my map-server. Take a look here:

flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01B' (
flag=0).
[Status]: Event 'OnInit' executed with '97' NPCs.
[Info]: Hercules, Copyright © 2012-2016, Hercules Dev Team and others.
[Info]: Licensed under the GNU General Public License, version 3 or later.
[Status]: Server is 'ready' and listening on port '0'.

[Status]: Done reading 'Hercules Battlegrounds' v1.0a emblem data files. [By Smo
kexyz]
[Status]: Hercules Battlegrounds v1.0a has been initialized. [by Smokexyz]
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 192.168.1.4:6121
[Status]: Logging in to char server...
[Fatal Error]: Connection to char-server failed 3.

Map-Server has terminated abnormally.
Restarting in 15 seconds, press Ctrl+C to cancel.
[Status]: Memory manager initialized: log/map-server.exe.leaks


Hercules Development Team presents
_ _ _
| | | | | |
| |_| | ___ _ __ ___ _ _| | ___ ___
| _ |/ _ \ '__/ __| | | | |/ _ \/ __|
| | | | __/ | | (__| |_| | | __/\__ \
\_| |_/\___|_| \___|\__,_|_|\___||___/

http://herc.ws/board/

[Info]: Hercules 32-bit for Windows
[Info]: Git revision (src): 'd961ab29ed635fdf5ff4ffa1dcf1ebbd013e750e'
[Info]: Git revision (scripts): 'd961ab29ed635fdf5ff4ffa1dcf1ebbd013e750e'
[Info]: OS version: 'Windows 7 Ultimate Service Pack 1 (build 7601) [x86_64]'
[Info]: CPU: 'x86_64 CPU, Family 21, Model 48, Stepping 1 [2]'
[Info]: Compiled with Microsoft Visual C++ 2015 (v1910)
[Info]: Compile Flags: N/A
[Info]: Timer Function Type: ticks count
[Info]: Server uses 'select' as event dispatcher
[Info]: Server supports up to '4096' concurrent connections.
[Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support.
[Status]: HPM: Loaded plugin 'Hercules Battlegrounds' (1.0a) built with HPMHooki
ng support.
[Status]: HPM: There are '2' plugins loaded, type 'plugins' to list them
[Error]: conf/map/maps.conf:1281 - syntax error
[Warning]: Not all IP addresses in /conf/map/map-server.conf configured, auto-de
tecting...
[Info]: Defaulting to 192.168.1.4 as our IP address
[Info]: Map Server IP Address : '192.168.1.4' -> '192.168.1.4'.
[Info]: Char Server IP Address : '192.168.1.4' -> '192.168.1.4'.
[Warning]: Missing configuration 'battle_configuration/hBG_enabled' in file conf
/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_from_town_only' in fi
le conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_ip_check' in file con
f/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_idle_announce' in fil
e conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_idle_autokick' in fil
e conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_balanced_queue' in fi
le conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_reward_rates' in file
conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_xy_interval' in file
conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_ranked_mode' in file
conf/map/battle.conf!
[Info]: Logging item transactions to table 'picklog'.
[Info]: Logging chat to table 'chatlog'.
[Info]: Logging commands to table 'atcommandlog'.
[Info]: Logging item transactions to table 'picklog'.
[Info]: Logging chat to table 'chatlog'.
[Info]: Logging commands to table 'atcommandlog'.
[Info]: Connecting to the Map DB Server....
[Status]: connect success! (Map Server Connection)
[Info]: [SQL]: Connecting to the Log Database ragnarok At 127.0.0.1...
[Status]: [SQL]: Successfully 'connected' to Database 'ragnarok'.
[Status]: Loading maps (using db/pre-re/map_cache.dat as map cache)...
[Info]: Successfully loaded '0' maps.
[Error]: timer_add_interval: invalid interval (tick=15662063 00B58480[hBG_send_x
y_timer] id=0 data=0 diff_tick=0)
[Status]: Done reading '62' command aliases in 'conf/atcommand.conf'.
[Status]: Done reading '4' channels in 'conf/channels.conf'.
[Error]: load_translations: map server default_language setting '' is not a load
ed language
[Status]: Done reading '6163' entries in 'pre-re/item_db.conf'.
[Status]: Done reading '0' entries in 'item_db2.conf'.
[Status]: Done reading '156' entries in 'item_combo_db'.
[Status]: Done reading '42' entries in 'db/pre-re/item_group.conf'.
[Status]: Done reading '4' entries in 'db/pre-re/item_chain.conf'.
[Status]: Done reading '162' entries in 'db/pre-re/item_packages.conf' ©.
[Status]: Done reading '186' entries in 'db/item_options.conf'.
[Status]: Done reading '16' entries in 'db/cashshop_db.conf'.
[Status]: Done reading '1120' entries in 'db/pre-re/skill_db.conf'.
[Status]: Done reading '264' entries in 'db/produce_db.txt'.
[Status]: Done reading '136' entries in 'db/create_arrow_db.txt'.
[Status]: Done reading '205' entries in 'db/abra_db.txt'.
[Status]: Done reading '17' entries in 'db/spellbook_db.txt'.
[Status]: Done reading '23' entries in 'db/magicmushroom_db.txt'.
[Status]: Done reading '133' entries in 'db/skill_reproduce_db.txt'.
[Status]: Done reading '16' entries in 'db/skill_improvise_db.txt'.
[Status]: Done reading '74' entries in 'db/skill_changematerial_db.txt'.
[Status]: Done reading '13' zones in 'db/pre-re/map_zone_db.conf'.
[Status]: Done reading '0' entries in 'db/mob_item_ratio.txt'.
[Status]: Done reading '40' entries in 'mob_chat_db.txt'.
[Status]: Done reading '1006' entries in 'pre-re/mob_db.conf'.
[Status]: Done reading '0' entries in 'mob_db2.conf'.
[Status]: Done reading '5515' entries in 'db/pre-re/mob_skill_db.txt'.
[Status]: Done reading '0' entries in 'db/mob_skill_db2.txt'.
[Warning]: mob_readdb_mobavail: Unknown mob id 2100.
[Error]: sv_readdb: Could not process contents of line 44 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2101.
[Error]: sv_readdb: Could not process contents of line 45 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2102.
[Error]: sv_readdb: Could not process contents of line 46 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2103.
[Error]: sv_readdb: Could not process contents of line 47 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2104.
[Error]: sv_readdb: Could not process contents of line 48 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2105.
[Error]: sv_readdb: Could not process contents of line 49 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2106.
[Error]: sv_readdb: Could not process contents of line 50 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2107.
[Error]: sv_readdb: Could not process contents of line 51 of "db/mob_avail.txt".

[Status]: Done reading '0' entries in 'db/mob_avail.txt'.
[Status]: Done reading '464' entries in 'pre-re/mob_branch.txt'.
[Status]: Done reading '13' entries in 'pre-re/mob_poring.txt'.
[Status]: Done reading '45' entries in 'pre-re/mob_boss.txt'.
[Status]: Done reading '331' entries in 'mob_pouch.txt'.
[Status]: Done reading '25' entries in 'mob_classchange.txt'.
[Status]: Done reading '6' entries in 'db/pre-re/mob_race2_db.txt'.
[Status]: Done reading '15' entries in 'db/pre-re/exp.txt'.
[Status]: Done reading '4' entries in 'db/pre-re/attr_fix.txt'.
[Status]: Done reading '175' entries in 'db/pre-re/statpoint.txt'.
[Status]: Done reading '7' groups in 'conf/groups.conf'.
[Status]: Done reading '134' entries in 'db/job_db2.txt'.
[Status]: Done reading '3' entries in 'db/pre-re/size_fix.txt'.
[Status]: Done reading '5' entries in 'pre-re/refine_db.conf'.
[Status]: Done reading '392' entries in 'db/sc_config.txt'.
[Status]: Done reading '116' entries in 'db/pre-re/job_db.conf'.
[Error]: sv_readdb: Could not process contents of line 17 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 18 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 19 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 20 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 21 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 26 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 27 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 28 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 29 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 30 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 35 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 36 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 37 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 38 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 39 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 44 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 45 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 46 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 47 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 48 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 53 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 54 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 55 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 56 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 61 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 62 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 63 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 64 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 65 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 70 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 71 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 72 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 73 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 74 of "db/castle_db.txt".

[Status]: Done reading '0' entries in 'db/castle_db.txt'.
[Status]: Done reading '15' entries in 'db/guild_skill_tree.txt'.
[Status]: Done reading '59' pets in 'pre-re/pet_db.txt'.
[Status]: Done reading '0' pets in 'pet_db2.txt'.
[Status]: Done reading '13' entries in 'db/pre-re/homunculus_db.txt'.
[Status]: Done reading '99' levels in 'pre-re/exp_homun.txt'.
[Status]: Done reading '82' entries in 'db/homun_skill_tree.txt'.
[Status]: Done reading '61' entries in 'db/mercenary_db.txt'.
[Status]: Done reading '157' entries in 'db/mercenary_skill_db.txt'.
[Status]: Done reading '12' elementals in 'db/elemental_db.txt'.
[Status]: Done reading '36' entries in 'db/elemental_skill_db.txt'.
[Status]: Done reading '3044' entries in 'quest_db.conf'.
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/merchants/shops.txt', lin
e '54'. Stopping...
* w1=OnInit:
* w2=
* w3=
* w4=
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/pre-re/merchants/shops.tx
t', line '39'. Stopping...
* w1=OnInit:
* w2=
* w3=
* w4=
[Error]: Missing 4 right curlys in file 'npc/custom/hBG/bg_flavius_td.txt', line
'243'.
[Info]: Done loading '531' NPCs:
-'0' Warps
-'0' Shops
-'531' Scripts
-'0' Spawn sets
-'0' Mobs Cached
-'0' Mobs Not Cached
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas01', type 4, x1/
y1 - 198,224 | x2/y2 - 207,233
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas02', type 4, x1/
y1 - 142,44 | x2/y2 - 151,53
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas03', type 4, x1/
y1 - 56,6 | x2/y2 - 69,17
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas04', type 4, x1/
y1 - 266,286 | x2/y2 - 275,295
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Guillaume_Flag' (flag
=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Croix_Flag' (flag=0).

[Warning]: setcell: Attempted to run on unexistent map 'bat_c01', type 4, x1/y1
- 50,124 | x2/y2 - 57,131
[Warning]: setcell: Attempted to run on unexistent map 'bat_c01', type 4, x1/y1
- 142,52 | x2/y2 - 149,59
[Error]: npc_enable: Attempted to show a non-existing NPC 'Pointed Tree#rus11' (
flag=1).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM03A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM03B' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM02A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM02B' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01B' (
flag=0).
[Status]: Event 'OnInit' executed with '97' NPCs.
[Info]: Hercules, Copyright © 2012-2016, Hercules Dev Team and others.
[Info]: Licensed under the GNU General Public License, version 3 or later.
[Status]: Server is 'ready' and listening on port '0'.

[Status]: Done reading 'Hercules Battlegrounds' v1.0a emblem data files. [By Smo
kexyz]
[Status]: Hercules Battlegrounds v1.0a has been initialized. [by Smokexyz]
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 192.168.1.4:6121
[Status]: Logging in to char server...
[Fatal Error]: Connection to char-server failed 3.

Map-Server has terminated abnormally.
Restarting in 15 seconds, press Ctrl+C to cancel.

Also, here's my VS log http://imgur.com/a/4jcUG and my plugins.conf:

Code:
//====================================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//=
//=            [URL="http://herc.ws/board/"]http://herc.ws/board/[/URL]
//====================================================
//== Topic Discussion ================================
//== [URL="http://herc.ws/board/"]http://herc.ws/board/[/URL]topic/549-introducing-hercules-plugin-manager/
//====================================================
//== Description =====================================
//The plugin system allows you to create customized scripts
//outside of the source. These scripts won't conflict with any
//future source updates - think of it as a /conf/import/ for the source.
//====================================================

/* --------------- Format ---------------
After you have listed your  plugin(s) in "quotations",
you need to put in a comma, to separate the plugins.
-----------------------------------------
plugins_list: [
	"example",
	"other",
]
-----------------------------------------
Please note that your scripts need to be saved
in the .c (source code) extension and placed in the /src/plugin/ folder.
-----------------------------------------
*/
plugins_list: [
	/* Enable HPMHooking when plugins in use rely on Hooking */
	"HPMHooking",
	//"db2sql",
	//"sample",
	//"other",
	"hBG",
]
 
 
Problems.
1: When the player picks up the flag he should not be able to use any type of potions and skills and is able to use.
2: Everyone inside the battlegrounds can use the urgent call, not just the leader.
3: Emblems are not appearing at the top of the characters using the most current version of Hercules.
Ao5ewua.png

4: When using alt + g does not appear the guild that you belong to the Battlegrounds, is appearing the outside.
5: emergency call is pulling players even after being out of battlegrounds.

It is having a possible crash on the map-server that I have not yet identified, if someone has the same problem and can share if it's just me would be grateful.

Easycore
 
I've got this errors  i don't know what to do, help me !!

Compiled with vs2012 express..

1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(1071): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2058): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2059): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2533): warning C4018: '>=' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2591): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2597): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2603): error C2143: syntax error : missing ';' before 'type'
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2604): error C2065: 'i' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2605): error C2065: 'i' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2624): error C2143: syntax error : missing ';' before 'type'
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2625): error C2143: syntax error : missing ';' before 'type'
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2627): error C2065: 'i' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2628): error C2065: 'i' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2631): error C2065: 'pos' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2631): error C2065: 'i' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2633): error C2065: 'qm' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2633): error C2065: 'pos' : undeclared identifier
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2633): warning C4047: '=' : 'int' differs in levels of indirection from 'hBG_queue_member *'
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2633): warning C4047: '==' : 'int' differs in levels of indirection from 'void *'
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2633): error C2223: left of '->sd' must point to struct/union
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(2727): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(3732): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(3734): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\murillo\desktop\hercules-masterpri\src\plugins\hbg.c(3872): warning C4018: '<' : signed/unsigned mismatch
I got the same error, It was solved by compiling with MSVS 2015.
But which version?? 'couse i try as many as possible ( VS2015 express .... community , professional ) and i got error when i try to open in hercules-14.sln....

show a message that the software doesn't support the .sln files.... (and the VS2015 stop running)...

This happens when i try to open in every vs2015.....

http://imgur.com/a/I3r7j

 
@Hit`

Add maps from "resnametable.txt" to your mapcache.
If you don't know how, see this topic.


 
Problems.
1: When the player picks up the flag he should not be able to use any type of potions and skills and is able to use.
A temporary solution to the skills, is to add this below of "disable_items;" lines in hBG\bg_flavius_ctf.txt:

// Disable skill usage
atcommand "@addperm disable_skill_usage";

And add this below of "enable_items;" lines:

// Enable Skill usage
atcommand "@rmvperm disable_skill_usage";

enable_items() and disable_items() only works when a NPC Script is running.

 
Last edited by a moderator:
@Hit`

Add maps from "resnametable.txt" to your mapcache.


Problems.

1: When the player picks up the flag he should not be able to use any type of potions and skills and is able to use.
A temporary solution to the skills, is to add this below of "disable_items;" lines in hBG\bg_flavius_ctf.txt:

// Disable skill usage
atcommand "@addperm disable_skill_usage";

And add this below of "enable_items;" lines:

// Enable Skill usage
atcommand "@rmvperm disable_skill_usage";

enable_items() and disable_items() only works when a NPC Script is running.
Hi. Sorry for the very noobish question but how do I add maps into mapcache?

 
Glad to see so many people help out
default_smile.png


Thank you @Easycore for the many fixes, PRs are merged.

 
@Hit`

Add maps from "resnametable.txt" to your mapcache.

If you don't know how, see this topic.


Problems.

1: When the player picks up the flag he should not be able to use any type of potions and skills and is able to use.
A temporary solution to the skills, is to add this below of "disable_items;" lines in hBG\bg_flavius_ctf.txt:

// Disable skill usage
atcommand "@addperm disable_skill_usage";

And add this below of "enable_items;" lines:

// Enable Skill usage
atcommand "@rmvperm disable_skill_usage";

enable_items() and disable_items() only works when a NPC Script is running.
Hello again. Unfortunately, I don't think it solved my problem cause the error still persist.

Error Log :

[Status]: Memory manager initialized: log/map-server.exe.leaks


Hercules Development Team presents
_ _ _
| | | | | |
| |_| | ___ _ __ ___ _ _| | ___ ___
| _ |/ _ \ '__/ __| | | | |/ _ \/ __|
| | | | __/ | | (__| |_| | | __/\__ \
\_| |_/\___|_| \___|\__,_|_|\___||___/

http://herc.ws/board/

[Info]: Hercules 32-bit for Windows
[Info]: Git revision (src): 'd961ab29ed635fdf5ff4ffa1dcf1ebbd013e750e'
[Info]: Git revision (scripts): 'd961ab29ed635fdf5ff4ffa1dcf1ebbd013e750e'
[Info]: OS version: 'Windows 7 Ultimate Service Pack 1 (build 7601) [x86_64]'
[Info]: CPU: 'x86_64 CPU, Family 21, Model 48, Stepping 1 [2]'
[Info]: Compiled with Microsoft Visual C++ 2015 (v1910)
[Info]: Compile Flags: N/A
[Info]: Timer Function Type: ticks count
[Info]: Server uses 'select' as event dispatcher
[Info]: Server supports up to '4096' concurrent connections.
[Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support.
[Status]: HPM: Loaded plugin 'Hercules Battlegrounds' (1.0a) built with HPMHooki
ng support.
[Status]: HPM: There are '2' plugins loaded, type 'plugins' to list them
[Error]: conf/map/maps.conf:1280 - syntax error
[Warning]: Not all IP addresses in /conf/map/map-server.conf configured, auto-de
tecting...
[Info]: Defaulting to 192.168.1.4 as our IP address
[Info]: Map Server IP Address : '192.168.1.4' -> '192.168.1.4'.
[Info]: Char Server IP Address : '192.168.1.4' -> '192.168.1.4'.
[Warning]: Missing configuration 'battle_configuration/hBG_enabled' in file conf
/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_from_town_only' in fi
le conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_ip_check' in file con
f/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_idle_announce' in fil
e conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_idle_autokick' in fil
e conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_balanced_queue' in fi
le conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_reward_rates' in file
conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_xy_interval' in file
conf/map/battle.conf!
[Warning]: Missing configuration 'battle_configuration/hBG_ranked_mode' in file
conf/map/battle.conf!
[Info]: Logging item transactions to table 'picklog'.
[Info]: Logging chat to table 'chatlog'.
[Info]: Logging commands to table 'atcommandlog'.
[Info]: Logging item transactions to table 'picklog'.
[Info]: Logging chat to table 'chatlog'.
[Info]: Logging commands to table 'atcommandlog'.
[Info]: Connecting to the Map DB Server....
[Status]: connect success! (Map Server Connection)
[Info]: [SQL]: Connecting to the Log Database ragnarok At 127.0.0.1...
[Status]: [SQL]: Successfully 'connected' to Database 'ragnarok'.
[Status]: Loading maps (using db/pre-re/map_cache.dat as map cache)...
[Info]: Successfully loaded '0' maps.
[Error]: timer_add_interval: invalid interval (tick=1439936 00A48480[hBG_send_xy
_timer] id=0 data=0 diff_tick=0)
[Status]: Done reading '62' command aliases in 'conf/atcommand.conf'.
[Status]: Done reading '4' channels in 'conf/channels.conf'.
[Error]: load_translations: map server default_language setting '' is not a load
ed language
[Status]: Done reading '6163' entries in 'pre-re/item_db.conf'.
[Status]: Done reading '0' entries in 'item_db2.conf'.
[Status]: Done reading '156' entries in 'item_combo_db'.
[Status]: Done reading '42' entries in 'db/pre-re/item_group.conf'.
[Status]: Done reading '4' entries in 'db/pre-re/item_chain.conf'.
[Status]: Done reading '162' entries in 'db/pre-re/item_packages.conf' ©.
[Status]: Done reading '186' entries in 'db/item_options.conf'.
[Status]: Done reading '16' entries in 'db/cashshop_db.conf'.
[Status]: Done reading '1120' entries in 'db/pre-re/skill_db.conf'.
[Status]: Done reading '264' entries in 'db/produce_db.txt'.
[Status]: Done reading '136' entries in 'db/create_arrow_db.txt'.
[Status]: Done reading '205' entries in 'db/abra_db.txt'.
[Status]: Done reading '17' entries in 'db/spellbook_db.txt'.
[Status]: Done reading '23' entries in 'db/magicmushroom_db.txt'.
[Status]: Done reading '133' entries in 'db/skill_reproduce_db.txt'.
[Status]: Done reading '16' entries in 'db/skill_improvise_db.txt'.
[Status]: Done reading '74' entries in 'db/skill_changematerial_db.txt'.
[Status]: Done reading '13' zones in 'db/pre-re/map_zone_db.conf'.
[Status]: Done reading '0' entries in 'db/mob_item_ratio.txt'.
[Status]: Done reading '40' entries in 'mob_chat_db.txt'.
[Status]: Done reading '1006' entries in 'pre-re/mob_db.conf'.
[Status]: Done reading '0' entries in 'mob_db2.conf'.
[Status]: Done reading '5515' entries in 'db/pre-re/mob_skill_db.txt'.
[Status]: Done reading '0' entries in 'db/mob_skill_db2.txt'.
[Warning]: mob_readdb_mobavail: Unknown mob id 2100.
[Error]: sv_readdb: Could not process contents of line 45 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2101.
[Error]: sv_readdb: Could not process contents of line 46 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2102.
[Error]: sv_readdb: Could not process contents of line 47 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2103.
[Error]: sv_readdb: Could not process contents of line 48 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2104.
[Error]: sv_readdb: Could not process contents of line 49 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2105.
[Error]: sv_readdb: Could not process contents of line 50 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2106.
[Error]: sv_readdb: Could not process contents of line 51 of "db/mob_avail.txt".

[Warning]: mob_readdb_mobavail: Unknown mob id 2107.
[Error]: sv_readdb: Could not process contents of line 52 of "db/mob_avail.txt".

[Status]: Done reading '0' entries in 'db/mob_avail.txt'.
[Status]: Done reading '464' entries in 'pre-re/mob_branch.txt'.
[Status]: Done reading '13' entries in 'pre-re/mob_poring.txt'.
[Status]: Done reading '45' entries in 'pre-re/mob_boss.txt'.
[Status]: Done reading '331' entries in 'mob_pouch.txt'.
[Status]: Done reading '25' entries in 'mob_classchange.txt'.
[Status]: Done reading '6' entries in 'db/pre-re/mob_race2_db.txt'.
[Status]: Done reading '15' entries in 'db/pre-re/exp.txt'.
[Status]: Done reading '4' entries in 'db/pre-re/attr_fix.txt'.
[Status]: Done reading '175' entries in 'db/pre-re/statpoint.txt'.
[Status]: Done reading '7' groups in 'conf/groups.conf'.
[Status]: Done reading '134' entries in 'db/job_db2.txt'.
[Status]: Done reading '3' entries in 'db/pre-re/size_fix.txt'.
[Status]: Done reading '5' entries in 'pre-re/refine_db.conf'.
[Status]: Done reading '392' entries in 'db/sc_config.txt'.
[Status]: Done reading '116' entries in 'db/pre-re/job_db.conf'.
[Error]: sv_readdb: Could not process contents of line 17 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 18 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 19 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 20 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 21 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 26 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 27 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 28 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 29 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 30 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 35 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 36 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 37 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 38 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 39 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 44 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 45 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 46 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 47 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 48 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 53 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 54 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 55 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 56 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 61 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 62 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 63 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 64 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 65 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 70 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 71 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 72 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 73 of "db/castle_db.txt".

[Error]: sv_readdb: Could not process contents of line 74 of "db/castle_db.txt".

[Status]: Done reading '0' entries in 'db/castle_db.txt'.
[Status]: Done reading '15' entries in 'db/guild_skill_tree.txt'.
[Status]: Done reading '59' pets in 'pre-re/pet_db.txt'.
[Status]: Done reading '0' pets in 'pet_db2.txt'.
[Status]: Done reading '13' entries in 'db/pre-re/homunculus_db.txt'.
[Status]: Done reading '99' levels in 'pre-re/exp_homun.txt'.
[Status]: Done reading '82' entries in 'db/homun_skill_tree.txt'.
[Status]: Done reading '61' entries in 'db/mercenary_db.txt'.
[Status]: Done reading '157' entries in 'db/mercenary_skill_db.txt'.
[Status]: Done reading '12' elementals in 'db/elemental_db.txt'.
[Status]: Done reading '36' entries in 'db/elemental_skill_db.txt'.
[Status]: Done reading '3044' entries in 'quest_db.conf'.
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/merchants/shops.txt', lin
e '54'. Stopping...
* w1=OnInit:
* w2=
* w3=
* w4=
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/pre-re/merchants/shops.tx
t', line '39'. Stopping...
* w1=OnInit:
* w2=
* w3=
* w4=
[Error]: Missing 4 right curlys in file 'npc/custom/hBG/bg_flavius_td.txt', line
'243'.
[Info]: Done loading '531' NPCs:
-'0' Warps
-'0' Shops
-'531' Scripts
-'0' Spawn sets
-'0' Mobs Cached
-'0' Mobs Not Cached
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas01', type 4, x1/
y1 - 198,224 | x2/y2 - 207,233
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas02', type 4, x1/
y1 - 142,44 | x2/y2 - 151,53
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas03', type 4, x1/
y1 - 56,6 | x2/y2 - 69,17
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas04', type 4, x1/
y1 - 266,286 | x2/y2 - 275,295
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Guillaume_Flag' (flag
=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Croix_Flag' (flag=0).

[Warning]: setcell: Attempted to run on unexistent map 'bat_c01', type 4, x1/y1
- 50,124 | x2/y2 - 57,131
[Warning]: setcell: Attempted to run on unexistent map 'bat_c01', type 4, x1/y1
- 142,52 | x2/y2 - 149,59
[Error]: npc_enable: Attempted to show a non-existing NPC 'Pointed Tree#rus11' (
flag=1).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM03A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM03B' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM02A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM02B' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01A' (
flag=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'KVM Officer#KVM01B' (
flag=0).
[Status]: Event 'OnInit' executed with '97' NPCs.
[Info]: Hercules, Copyright © 2012-2016, Hercules Dev Team and others.
[Info]: Licensed under the GNU General Public License, version 3 or later.
[Status]: Server is 'ready' and listening on port '0'.

[Status]: Done reading 'Hercules Battlegrounds' v1.0a emblem data files. [By Smo
kexyz]
[Status]: Hercules Battlegrounds v1.0a has been initialized. [by Smokexyz]
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 192.168.1.4:6121
[Status]: Logging in to char server...
[Fatal Error]: Connection to char-server failed 3.

Map-Server has terminated abnormally.
Restarting in 15 seconds, press Ctrl+C to cancel.


What I did was:

1. Opened WeeMapCache

2. Clicked Cache button and opened map_cache.dat from my db/pre-re folder.

3. Clicked RNT button and opened resnametable.txt extracted from my servertest.grf, prompted to overwrite and I clicked yes.

4. Saved it as map_cache.dat and overwrite existing from my db/pre-re folder.

5. Run mapcache.exe

6. Compiled without errors

Am I missing something? I'm very sorry, please bear with me. Thanks!

 
Does your server renewal or pre-renewal? don't just copy paste from directory try to open those files and understand code.

- Fixed Guild Skills cooldown in Battleground.

- Added 3 new commands ( @leader, @bgsize and @bgmode )

Details on Pull Request.
@Smoke 
default_biggrin.png
nice.

it is possible to add option to enable or disable specific battleground mode from config file? like i don't like Bossnia mode so i want to disable it without touching bg_common file.

such as

// Enable or Disable BG modes

TeamDeathmatch: 1

Bossnia: 1

@hit

download this and replace files fix

also update your battleground npc files and src files

 
Last edited by a moderator:
Easycore
1: Could take a look at why using the most up-to-date hercules is not showing the badge on the player's head, it only appears when hovering over the mouse.
2: When ALT + G is opened within the Battleground the BG guild is not appearing, the outside is appearing.
 
@hit, about this error :

[Warning]: mob_readdb_mobavail: Unknown mob id 2100.
[Error]: sv_readdb: Could not process contents of line 45 of "db/mob_avail.txt".
have you add this in your mob_db.conf ?

https://github.com/Smokexyz/HerculesBG/blob/master/db/pre-re/mob_db.conf
Yes, I was able to finally got rid of that. Also thanks to Sir @caspe for providing the fix I finally got to log back again on my server. Although there are still errors, here http://imgur.com/a/Lbp7k.

 
Hit', about the bg_flavius_td.txt error :

For deathmatch it's about this :

set .@guillaume, hBG_get_data($@BG_Team1, 0);
set .@croix, hBG_get_data($@BG_Team2, 0);

i change to :

    
.@guillaume = hBG_get_data($@BG_Team1, 0);
.@croix = hBG_get_data($@BG_Team2, 0);

and no more spam in console ^^
 
i think there is an error in the pull request :

change this :

.@guillaume, hBG_get_data($@BG_Team1, 0);

.@croix, hBG_get_data($@BG_Team2, 0);
to:
.@guillaume = hBG_get_data($@BG_Team1, 0);

.@croix = hBG_get_data($@BG_Team2, 0);
 
For the first error, you have to disable official BG npc ^^
 
Last edited by a moderator:
Hit', about the bg_flavius_td.txt error :

For deathmatch it's about this :

set .@guillaume, hBG_get_data($@BG_Team1, 0);

set .@croix, hBG_get_data($@BG_Team2, 0);

i change to :

    .@guillaume = hBG_get_data($@BG_Team1, 0);
.@croix = hBG_get_data($@BG_Team2, 0);
and no more spam in console ^^
i think there is an error in the pull request :

change this :

.@guillaume, hBG_get_data($@BG_Team1, 0);

.@croix, hBG_get_data($@BG_Team2, 0);
to:
.@guillaume = hBG_get_data($@BG_Team1, 0);

.@croix = hBG_get_data($@BG_Team2, 0);
 
For the first error, you have to disable official BG npc ^^
Thanks! Flavius TD and official BG is now fixed. What's causing this one here http://imgur.com/a/jqftO

 
Back
Top