Kichi 6 Posted November 1, 2013 I found the difference between rAthena and Hercules.i try convert Bg Without waiting Room to hercules, and map always crash, i am sure, i made misatakehere the patch that i modified, maybe somebody here could convert it perfectlybattleground.patchCMIIW Quote Share this post Link to post Share on other sites
0 ossi0110 200 Posted November 1, 2013 can u provide a core dump ? Quote Share this post Link to post Share on other sites
0 Kichi 6 Posted November 1, 2013 can u provide a core dump ? im on windows, don't know to create coredump Quote Share this post Link to post Share on other sites
0 Kichi 6 Posted November 1, 2013 int bg_create2( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ) { struct battleground_data *bgd = bg_team_search(bg_id); if ( bgd ) return 0; CREATE(bgd, struct battleground_data, 1); bgd->bg_id = bg_id; bgd->count = 0; bgd->mapindex = mapindex; bgd->x = rx; bgd->y = ry; safestrncpy(bgd->logout_event, ev, sizeof(bgd->logout_event)); safestrncpy(bgd->die_event, dev, sizeof(bgd->die_event)); memset(&bgd->members, 0, sizeof(bgd->members)); idb_put(bg->team_db, bg->team_counter, bgd); return bgd->bg_id;}--------------------------------------if ( bg->create2( script_getnum(st,2), mapindex_name2id( script_getstr(st,3) ), script_getnum(st,4), script_getnum(st,5), script_getstr(st,6), script_getstr(st,7) ) > 0 ) the problem is around there Quote Share this post Link to post Share on other sites
0 Kichi 6 Posted November 1, 2013 no problem i solved this issueit because i didn't define bg->create2 Quote Share this post Link to post Share on other sites
I found the difference between rAthena and Hercules.
i try convert Bg Without waiting Room
to hercules, and map always crash, i am sure, i made misatake
here the patch that i modified, maybe somebody here could convert it perfectly
battleground.patch
CMIIW
Share this post
Link to post
Share on other sites