x13th 7 Posted November 30, 2016 (edited) I'm trying to convert rAthena Clan system to Herc and now after compiling no error shows up until when i run the server the char server stopped. I'm using windows btw. I found what causing it but dont know why. If I add inter_clan->sql_init(); to int inter_init_sql(const char *file) the char server will stopped working so here's the whole code int inter_init_sql(const char *file) { inter->config_read(file, false); //DB connection initialized inter->sql_handle = SQL->Malloc(); ShowInfo("Connect Character DB server.... (Character Server)\n"); if( SQL_ERROR == SQL->Connect(inter->sql_handle, char_server_id, char_server_pw, char_server_ip, (uint16)char_server_port, char_server_db) ) { Sql_ShowDebug(inter->sql_handle); SQL->Free(inter->sql_handle); exit(EXIT_FAILURE); } if( *default_codepage ) { if( SQL_ERROR == SQL->SetEncoding(inter->sql_handle, default_codepage) ) Sql_ShowDebug(inter->sql_handle); } wis_db = idb_alloc(DB_OPT_RELEASE_DATA); inter_guild->sql_init(); inter_storage->sql_init(); inter_party->sql_init(); inter_pet->sql_init(); inter_homunculus->sql_init(); inter_mercenary->sql_init(); inter_elemental->sql_init(); inter_mail->sql_init(); inter_auction->sql_init(); inter_clan->sql_init(); geoip->init(); inter->msg_config_read("conf/messages.conf", false); return 0; } here's my int_clan.c http://upaste.me/97313640759e978d3 and my int_clan.h http://upaste.me/f64c36408e18094f3 Edited November 30, 2016 by x13th Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted November 30, 2016 Because the pointer is still uninitialized. Have you called inter_clan_defaults() Function to initialize the pointers? Quote Share this post Link to post Share on other sites
0 x13th 7 Posted November 30, 2016 Because the pointer is still uninitialized. Have you called inter_clan_defaults() Function to initialize the pointers? Yep, that's how I fixed it. Quote Share this post Link to post Share on other sites
0 Aeromesi 180 Posted November 30, 2016 -Cough- should totally bring the Clan System to Hercules x13th with a nice ole PR...We're so behind on actual content it's not even funny, and I love Hercules.. 2 x13th and Khazou reacted to this Quote Share this post Link to post Share on other sites
0 x13th 7 Posted December 1, 2016 -Cough- should totally bring the Clan System to Hercules x13th with a nice ole PR... We're so behind on actual content it's not even funny, and I love Hercules.. Yeah. Me too love Hercules thats why i didnt switch to rAthena. Finally I converted it to Herc. I want to share it but we have rules we cant share if we're not the author. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted December 1, 2016 -Cough- should totally bring the Clan System to Hercules x13th with a nice ole PR... We're so behind on actual content it's not even funny, and I love Hercules.. Yeah. Me too love Hercules thats why i didnt switch to rAthena. :DFinally I converted it to Herc. I want to share it but we have rules we cant share if we're not the author.Hercules accepts any kind of contribution, since all the projects of RO are GPL licensed, you are free to modify/Share it , provided that you give proper credit to them. So you don't need to be the author to share it, you just need to provide proper credit of where you have taken the source from... And everything else is fine. 1 x13th reacted to this Quote Share this post Link to post Share on other sites
0 x13th 7 Posted December 1, 2016 Unfortunately it's just initial released by rAthena. No Alt + G. Only additional stats and emblem Quote Share this post Link to post Share on other sites
I'm trying to convert rAthena Clan system to Herc and now after compiling no error shows up until when i run the server the char server stopped. I'm using windows btw.
I found what causing it but dont know why.
If I add
inter_clan->sql_init();
to
int inter_init_sql(const char *file)
the char server will stopped working
so here's the whole code
here's my int_clan.c
http://upaste.me/97313640759e978d3
and my int_clan.h
http://upaste.me/f64c36408e18094f3
Edited by x13thShare this post
Link to post
Share on other sites