Jump to content
  • 0

Looking for help with Harmony and latest rAthena


Phenomena

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  

Hello community! I have one question about the topic name above:

I tried to use Cydh patch for rAthena to update server with harmony: https://rathena.org/board/topic/101433-harmony-manual-install-for-latest-rathena/?p=282731
It's works fine until rAthena February 2016, after that rAthena changed something in core.c in function int main (int argc, char **argv)...
I tried to find somthing with compare but i don't. So the problem is:

 

Line 361: socket_init();
Line 363: do_init(argc,argv);

After uploading Harmony the Line 362 should be: harmony_core_init();
so the final looking:
Line 361: socket_init();
Line 362: harmony_core_init();
Line 363: do_init(argc,argv);
And this makes server Segmentation Fault redirecting to cli.c to function get_cli_option....

This is harmony_core_init function:

 
 
void harmony_core_init() {
	int *module_version;
	void (*module_init)();

	if (!harmony_load_module(HARMCODEFILE)) {
		ShowFatalError("Unable to load Harmony module.\n");
		exit(EXIT_FAILURE);
	}

	module_version = (int*)harmony_get_symbol("version");
	if (!module_version) {
		ShowFatalError("Unable to determine Harmony version.\n");
		exit(EXIT_FAILURE);
	}

	if (*module_version != HARMSRV_VERSION) {
		ShowFatalError("Invalid Harmony version! Expecting %d, have %d.\n", HARMSRV_VERSION, *module_version);
		ShowFatalError("Did you forget to recompile after updating?\n");
		exit(EXIT_FAILURE);
	}
	ShowStatus("Harmony Version: %d.%d.%d\n", HARMSRV_VERSION_MAJOR, HARMSRV_VERSION_MINOR, HARMSRV_VERSION_PATCH);

	harm_funcs = (struct HARMSRV_HARM_FUNCS*)harmony_get_symbol("harm_funcs");
	ea_funcs = (struct HARMSRV_EA_FUNCS*)harmony_get_symbol("ea_funcs");
	module_init = (void(*)())harmony_get_symbol("Init");
	if (!harm_funcs || !ea_funcs || !module_init) {
		ShowFatalError("Invalid harmony module exports.\n");
		exit(EXIT_FAILURE);
	}

	ea_funcs->alloc = crt_alloc;
	ea_funcs->free = crt_free;
	ea_funcs->exit = crt_exit;
	ea_funcs->fopen = crt_fopen;
	ea_funcs->fclose = crt_fclose;
	ea_funcs->fread = crt_fread;
	ea_funcs->fgets = crt_fgets;

	ea_funcs->harm_msg = harm_msg;
	ea_funcs->harmsrv_abnormal_error = harmony_abnormal_start;
	ea_funcs->ea_fd2harmsession = ea_fd2harmsession;
	ea_funcs->ea_tick = ea_tick;
	ea_funcs->timer_add = ea_timer_add;
	ea_funcs->timer_del = ea_timer_del;
	ea_funcs->socket_disconnect = ea_socket_disconnect;
	ea_funcs->socket_send = ea_socket_send;

	harm_timer = idb_alloc(DB_OPT_BASE);

	module_init();
	harm_funcs->init();
}

Looks like problem with unload memory....

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Just get a new GameGuard, Harmony development is dead + Cydth already stop maintaining his Harmony Patch + Harmony is just a trash nowadays because there is a lot of bypass out there.

 

 

I think no more dev will crack their heads to make/update harmony source.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  

Thank you for your replay, where I can read about GameGuard ( or you mean Gepard Shield )?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Thank you for your replay, where I can read about GameGuard ( or you mean Gepard Shield )?

 

 

Yes Gepard is a good one (some of my client used it).

 

Husky Shield (haven't tried it yet)

Link to comment
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.

×
×
  • Create New...