• 0
x13th

Char server stopped

Question

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 by x13th

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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

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

Share this post


Link to post
Share on other sites
  • 0

 

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...