Char server stopped

x13th

New member
Messages
78
Points
0
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

 
Last edited by a moderator:
Because the pointer is still uninitialized.

Have you called

inter_clan_defaults()

Function to initialize the pointers?

 
Because the pointer is still uninitialized.

Have you called

inter_clan_defaults()

Function to initialize the pointers?
Yep, that's how I fixed it.
default_biggrin.png


 
-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.
default_biggrin.png


Finally I converted it to Herc. I want to share it but we have rules we cant share if we're not the author.

 
-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.

 
Unfortunately it's just initial released by rAthena. No Alt + G. Only additional stats and emblem

973801e784c54e16a42235b01e7811d7.png


 
Back
Top