Smoke

Hercules Battlegrounds

214 posts in this topic

TY for the release, i will try it.

Good Work!

Share this post


Link to post
Share on other sites

Well now we know who's going to be making battlegrounds now! Instances might see a -slight- decrease (jk jk) xD

Share this post


Link to post
Share on other sites

Hello everyone,

 

So I worked on an eAmod BG migration to Hercules as a plugin a long while ago and decided to release it in it's very beta state.

I thought someone might use it instead of it rotting in my folders. Source is included and this is a fully free release.

 

Installation

1) Place plugin files in plugin directory. (If you wish to re-compile the code, please do so the standard way.)

2) Place all script files in the default directory provided in the repository (or your own).

3) in conf/plugins.conf please add "hBG".

 

That's it unless I'm missing something that I can't remember.

The plugin has also not been updated in a long while, but then again, neither has Hercules plugin code.

 

What's not working

As I had tested a few months ago -

1) Sprites for red/blue/green skull drops are not added in the repo, including the item codes.

2) Monster sprite duplication from mob_avail is not included yet.

3) BG Ranking.

4) Some battle flags may not work (unsure).

 

Features

The script commands are custom and named differently (with a hBG_ prefix), the Queue system is separate and so both of these will not interfere with official BG systems making it possible to run both simultaneously. The same will be kept in mind for any future additions.

 

Battleground Modes

 

 

Capture the Flag
Eye of Storm
Triple Inferno
Team DeathMatch
Bossnia
Conquest
Stone Control
Domination   
Rush
Free For All

 

 

 

@commands

 

 

@joinbg - join a bg queue.

@leavebg - leave a bg queue.

 

 

 

Script Commands

 

hBG_team_create

hBG_queue_create

hBG_queue_event

hBG_queue_join

hBG_queue_partyjoin

hBG_queue_leave

hBG_queue_data

hBG_queue2team

hBG_queue2team_single

hBG_queue2teams

hBG_queue_checkstart

hBG_balance_teams

hBG_waitingroom2bg

hBG_waitingroom2bg_single

hBG_team_setxy

hBG_team_reveal

hBG_team_conceal

hBG_team_setquest

hBG_viewpointmap

hBG_monster_reveal

hBG_monster_set_team

hBG_monster_immunity

hBG_leave

hBG_destroy

hBG_clean

hBG_get_data

hBG_getareausers

hBG_updatescore

hBG_team_updatescore

hBG_team_guildid

hBG_getitem

hBG_getkafrapoints

hBG_reward

hBG_flooritem2xy

 

 

 

What's good about it

1) Prevents conflicts when updating hercules.

2) Easy to install.

3) Can be easily modified for more functions/features in the future.

 

As for the scripts and battleground modes, most were working the last time I checked.

All in all, it's not in the best stage for use in a production server and it'd be nice to have more eyes on this project to debug. 

Please feel free to open an issue on the repository and i'll get to it as soon as I can.

 

Repository - https://github.com/Smokexyz/HerculesBG

 

If you like my work please star the repository and up vote this post :)

So in the future I may release eAmod's Factions (From WoW) and Guild/Faction Region system as plugins as well.

 

Enjoy!

 

Error

 

Warning	1	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	165	1	hBG
Warning	2	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	3	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	168	1	hBG
Error	4	error C2039: 'class_' : is not a member of 'mmo_charstatus'	Hercules-master\src\plugins\hBG.c	402	1	hBG
Warning	5	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	832	1	hBG
Warning	6	warning C4018: '>=' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1900	1	hBG
Warning	7	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1954	1	hBG
Warning	8	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	2068	1	hBG

Share this post


Link to post
Share on other sites
Warning	1	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	165	1	hBG
Warning	2	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	3	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	168	1	hBG
Error	4	error C2039: 'class_' : is not a member of 'mmo_charstatus'	Hercules-master\src\plugins\hBG.c	402	1	hBG
Warning	5	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	832	1	hBG
Warning	6	warning C4018: '>=' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1900	1	hBG
Warning	7	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1954	1	hBG
Warning	8	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	2068	1	hBG

try to change line 402 from 

WFIFOW(fd,c*104+18) = psd->status.class_;

to 

WFIFOW(fd,c*104+18) = psd->status.class;

Share this post


Link to post
Share on other sites

 

Warning	1	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	165	1	hBG
Warning	2	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	3	warning C4138: '*/' found outside of comment Hercules-master\src\plugins\hBG.c	168	1	hBG
Error	4	error C2039: 'class_' : is not a member of 'mmo_charstatus'	Hercules-master\src\plugins\hBG.c	402	1	hBG
Warning	5	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	832	1	hBG
Warning	6	warning C4018: '>=' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1900	1	hBG
Warning	7	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	1954	1	hBG
Warning	8	warning C4018: '<' : signed/unsigned mismatch Hercules-master\src\plugins\hBG.c	2068	1	hBG

try to change line 402 from 

WFIFOW(fd,c*104+18) = psd->status.class_;

to 

WFIFOW(fd,c*104+18) = psd->status.class;

 

Thank you!
But from what I can tell, the maps are missing, right?
 
Or should I duplicate existing maps?
 

[spoiler]
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '234'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '235'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '236'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '237'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '238'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '239'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '240'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '241'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '242'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '243'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '248'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '249'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '250'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '251'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '252'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '253'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '254'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '255'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '256'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '257'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '258'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '259'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '260'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '261'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '262'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '263'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '264'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '269'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '281'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '296'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a03" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a03' in file 'npc/custom/hBG/bg_tier
ra_boss.txt', line '318'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '133'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '230'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '327'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '427'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '439'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '454'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '470'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '486'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '504'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '520'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '535'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '553'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '578'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '606'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '607'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '608'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '609'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '610'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '611'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '612'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '613'. Skipping line...
[Debug]: mapindex_name2id: Map "bat_a04" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'bat_a04' in file 'npc/custom/hBG/bg_tier
ra_dom.txt', line '614'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '158'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '196'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '198'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '236'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '238'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '276'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '282'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '283'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '284'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '285'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '286'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '287'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '288'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '289'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '290'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '295'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '302'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '304'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '311'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '313'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '320'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '325'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '337'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '349'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '364'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '386'. Skipping line...
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'region_8' in file 'npc/custom/hBG/bg_tie
rra_ti.txt', line '408'. Skipping line...
[Info]: Done loading '16433' NPCs:
        -'3476' Warps
        -'2' Shops
        -'12955' Scripts
        -'3381' Spawn sets
        -'49266' Mobs Cached
        -'0' Mobs Not Cached
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "region_8" not found in index list!
[Debug]: mapindex_name2id: Map "rush_cas01" not found in index list!
[Debug]: mapindex_name2id: Map "rush_cas01" not found in index list!
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas01', type 4, x1/
y1 - 198,224 | x2/y2 - 207,233
[Debug]: mapindex_name2id: Map "rush_cas02" not found in index list!
[Debug]: mapindex_name2id: Map "rush_cas02" not found in index list!
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas02', type 4, x1/
y1 - 142,44 | x2/y2 - 151,53
[Debug]: mapindex_name2id: Map "rush_cas03" not found in index list!
[Debug]: mapindex_name2id: Map "rush_cas03" not found in index list!
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas03', type 4, x1/
y1 - 56,6 | x2/y2 - 69,17
[Debug]: mapindex_name2id: Map "rush_cas04" not found in index list!
[Debug]: mapindex_name2id: Map "rush_cas04" not found in index list!
[Warning]: setcell: Attempted to run on unexistent map 'rush_cas04', type 4, x1/
y1 - 266,286 | x2/y2 - 275,295
[Debug]: mapindex_name2id: Map "schg_cas06" not found in index list!
[Debug]: mapindex_name2id: Map "schg_cas06" not found in index list!
[Debug]: mapindex_name2id: Map "schg_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "schg_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "schg_cas08" not found in index list!
[Debug]: mapindex_name2id: Map "schg_cas08" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas06" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas06" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas07" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas08" not found in index list!
[Debug]: mapindex_name2id: Map "arug_cas08" not found in index list!
[Status]: Event 'OnInit' executed with '2191' 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 '5121'.

[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '2').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.
[Status]: Requested '34' guild castles from char-server...
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Received '34' guild castles from char-server.
[/spoiler]

 

Edited by Iniciando do 0

Share this post


Link to post
Share on other sites

 

 

 

And the maps?

The maps are duplicates. mapcache.exe duplicates the maps when you use the contents in resnametable.txt.

 

I started testing the script now and found some errors. Are they:
 
* When the player joins the battlefield, if he is stopped / seated at the time of registration and the game starts, he is expelled from the battle. That is, the inactive time (AFK) is being counted off the BG map.
 
* When thrown out of the battlefield due to not moving (AFK), sometimes the kicked player gets stuck at his return point, and still remains in the guild, as if he were inside the BG map. 
 
* You are not allowed to use guild skill within battle, they do not appear. Guild Level is 1, and should be 50.

 
@edit
* When the admin / Game Master uses @reloadscript and has a battle in progress, the battle in question ends, without expelling the players from within the map, and begins to announce the new battle.
 
* When using "Team Building Mode" as 2 - Balanced, the game hangs at the time the game starts, without players, because it does not teleport the players to the battle map.
// Team Building Mode: 0 = Linear, 1 = Random, 2 = Balanced
Set .TeamBuildingMode, 1;
 
* By clicking on the kafra in the bat_room room, nothing happens.
 
OBS: I will continue the tests and if I find new errors, I will report.I started testing the script now and found some errors. Are they:
Edited by Iniciando do 0

Share this post


Link to post
Share on other sites

Once this is stable, I'd definitely move to hercules as my server emulator. eAmod BG is the only reason why I can't move out of rAmod.

Share this post


Link to post
Share on other sites

Great this is one of the awesome plugin, looks like the long wait is going to end soon, waiting for stable version and improvements.

Thank you @Smokexyz .

Share this post


Link to post
Share on other sites

Added 2 commits:

 

1) Added maps.conf
Added map_index.txt

Added mob_avail.txt
Added quest_db.conf
Implemented guild skills to be shown but not usable yet.
Corrected logout cleanup functions.
Cleanup of some queue to team building functions.
 

Working guild skills in BGs with less than 3 teams.

More code optimization.
 
This should most probably get us into a somewhat stable state without crashes, so we can start completing the features.
Updated original post.
Edited by Smokexyz

Share this post


Link to post
Share on other sites

 

Added 2 commits:

 

1) Added maps.conf

Added map_index.txt

Added mob_avail.txt

Added quest_db.conf

Implemented guild skills to be shown but not usable yet.

Corrected logout cleanup functions.

Cleanup of some queue to team building functions.

 

Working guild skills in BGs with less than 3 teams.

More code optimization.
 
This should most probably get us into a somewhat stable state without crashes, so we can start completing the features.
Updated original post.

 

Error and warnings to compile.

 

Warning	1	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	2	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	167	1	hBG
Warning	3	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	169	1	hBG
Warning	4	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	873	1	hBG
Warning	5	warning C4018: '>=' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	1953	1	hBG
Warning	6	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2008	1	hBG
Error	7	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2014	1	hBG
Error	8	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2015	1	hBG
Error	9	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2016	1	hBG
Error	10	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2034	1	hBG
Error	11	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2035	1	hBG
Error	12	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2037	1	hBG
Error	13	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2038	1	hBG
Error	14	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	15	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	16	error C2065: 'qm' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Error	17	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	18	warning C4047: '=' : 'int' differs in levels of indirection from 'hBG_queue_member *' Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	19	warning C4047: '==' : 'int' differs in levels of indirection from 'void *' Hercules-master\src\plugins\hBG.c 2043 1 hBG
Error	20	error C2223: left of '->sd' must point to struct/union	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	21	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2125	1	hBG
Warning	22	warning C4090: 'function' : different 'const' qualifiers	Hercules-master\src\plugins\hBG.c	2913	1	hBG

Share this post


Link to post
Share on other sites

 

 

Added 2 commits:

 

1) Added maps.conf

Added map_index.txt

Added mob_avail.txt

Added quest_db.conf

Implemented guild skills to be shown but not usable yet.

Corrected logout cleanup functions.

Cleanup of some queue to team building functions.

 

Working guild skills in BGs with less than 3 teams.

More code optimization.
 
This should most probably get us into a somewhat stable state without crashes, so we can start completing the features.
Updated original post.

 

Error and warnings to compile.

 

Warning	1	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	2	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	167	1	hBG
Warning	3	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	169	1	hBG
Warning	4	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	873	1	hBG
Warning	5	warning C4018: '>=' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	1953	1	hBG
Warning	6	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2008	1	hBG
Error	7	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2014	1	hBG
Error	8	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2015	1	hBG
Error	9	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2016	1	hBG
Error	10	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2034	1	hBG
Error	11	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2035	1	hBG
Error	12	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2037	1	hBG
Error	13	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2038	1	hBG
Error	14	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	15	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	16	error C2065: 'qm' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Error	17	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	18	warning C4047: '=' : 'int' differs in levels of indirection from 'hBG_queue_member *' Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	19	warning C4047: '==' : 'int' differs in levels of indirection from 'void *' Hercules-master\src\plugins\hBG.c 2043 1 hBG
Error	20	error C2223: left of '->sd' must point to struct/union	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	21	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2125	1	hBG
Warning	22	warning C4090: 'function' : different 'const' qualifiers	Hercules-master\src\plugins\hBG.c	2913	1	hBG

I've pushed 2 more commits eliminating the warnings, I don't have an issue with compiling other than 3 normal warnings regarding unused variables and casts discarding constant qualifiers.

What compiler are you using?

Share this post


Link to post
Share on other sites

 

 

 

Added 2 commits:

 

1) Added maps.conf

Added map_index.txt

Added mob_avail.txt

Added quest_db.conf

Implemented guild skills to be shown but not usable yet.

Corrected logout cleanup functions.

Cleanup of some queue to team building functions.

 

Working guild skills in BGs with less than 3 teams.

More code optimization.
 
This should most probably get us into a somewhat stable state without crashes, so we can start completing the features.
Updated original post.

 

Error and warnings to compile.

 

Warning	1	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	166	1	hBG
Warning	2	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	167	1	hBG
Warning	3	warning C4138: '*/' found outside of comment	Hercules-master\src\plugins\hBG.c	169	1	hBG
Warning	4	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	873	1	hBG
Warning	5	warning C4018: '>=' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	1953	1	hBG
Warning	6	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2008	1	hBG
Error	7	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2014	1	hBG
Error	8	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2015	1	hBG
Error	9	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2016	1	hBG
Error	10	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2034	1	hBG
Error	11	error C2143: syntax error : missing ';' before 'type'	Hercules-master\src\plugins\hBG.c	2035	1	hBG
Error	12	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2037	1	hBG
Error	13	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2038	1	hBG
Error	14	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	15	error C2065: 'i' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2041	1	hBG
Error	16	error C2065: 'qm' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Error	17	error C2065: 'pos' : undeclared identifier	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	18	warning C4047: '=' : 'int' differs in levels of indirection from 'hBG_queue_member *' Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	19	warning C4047: '==' : 'int' differs in levels of indirection from 'void *' Hercules-master\src\plugins\hBG.c 2043 1 hBG
Error	20	error C2223: left of '->sd' must point to struct/union	Hercules-master\src\plugins\hBG.c	2043	1	hBG
Warning	21	warning C4018: '<' : signed/unsigned mismatch	Hercules-master\src\plugins\hBG.c	2125	1	hBG
Warning	22	warning C4090: 'function' : different 'const' qualifiers	Hercules-master\src\plugins\hBG.c	2913	1	hBG

I've pushed 2 more commits eliminating the warnings, I don't have an issue with compiling other than 3 normal warnings regarding unused variables and casts discarding constant qualifiers.

What compiler are you using?

 

I'm using Microsoft Visual Studio 11.0 2012 in - Hercules-11 SQL Server Compact Edition Database File (.sdf)

Share this post


Link to post
Share on other sites

Could compile fine with VS15, your compiler is 5 years old you maybe should think of using a new one.

Share this post


Link to post
Share on other sites

Commit 40d08d2f8eac2387416a9f4be68b60d7cad7d7be

Improvements in the way BGs are exited, guild information is refreshed.

Removal of BG Skulls on exiting the BG.

Initial implementation of BG stats. @TODO saving to database.

Addition of @bgstart/stop commands for GMs to start and stop battlegrounds. (Credits to Vykimo and Michi for the idea.)

Initial implementation of BG rankings.

Edited by Michi

Share this post


Link to post
Share on other sites

Could compile fine with VS15, your compiler is 5 years old you maybe should think of using a new one.

 

Tks  :)

 

 

--------------

Open New Issue.

 

 

Commit 40d08d2f8eac2387416a9f4be68b60d7cad7d7be

Improvements in the way BGs are exited, guild information is refreshed.

Removal of BG Skulls on exiting the BG.

Initial implementation of BG stats. @TODO saving to database.

Addition of @bgstart/stop commands for GMs to start and stop battlegrounds. (Credits to Vylow and Micheiru for the idea.)

Initial implementation of BG rankings.

 

Problem AFK continues and News. #2

https://github.com/Smokexyz/HerculesBG/issues?q=is%3Aopen+is%3Aissue

 

@edit

 

@Smokexyz 

 

Would it be possible to add the official Ragnarok BGs to Hercules-BG-eAmod mode?

Edited by Iniciando do 0

Share this post


Link to post
Share on other sites

 

Problem AFK continues and News. #2

 

https://github.com/Smokexyz/HerculesBG/issues?q=is%3Aopen+is%3Aissue

 

@edit

 

@Smokexyz 

 

Would it be possible to add the official Ragnarok BGs to Hercules-BG-eAmod mode?

Have you checked out and compiled the latest revision?

 

Yes, I just tested again and the problem persists. Some errors are being presented on map-server also ...

[Error]: script error in file 'npc/custom/hBG/bg_tierra_ti.txt' line 111 column
1
set_label: dup label
108: end;
109:
110: OnTimer900000:

111: OnMatchEnd:
^
112: stopnpctimer;
113: cleanmap "region_8"; // Removes all ground items
114: donpcevent "#gti_respawn::OnBGStop";
[Error]: quest_add: Character 150000 already has quest 8506.
[Error]: quest_add: Character 150002 already has quest 8506.
[Error]: quest_add: Character 150000 already has quest 8506.

About the Official BGs, you forgot to reply.

Share this post


Link to post
Share on other sites

Sure, I don't see why official BGs can't be converted to HBG. By changing the script commands the official script uses to HBG commands, although for this project I won't be doing this.

But feel free to donate any such implementations to my repository.

Edited by Smoke

Share this post


Link to post
Share on other sites

iSr3JtB.png

 

 

SORRY FOR THE BIGASS IMAGE LOL

 

Error! :o

Edited by Skyline

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now