Jump to content

Recommended Posts

  • 1 month later...
  • 4 weeks later...
  • 1 month later...
Posted

I have many failures to install these patches and then I tried to do it manually but the .diff files are not very detailed and I do not know where to add the code having many different files from the original rAthena files.

NOHKyo (1).jpg

Posted (edited)

ok now it's ok but but I have a doubt... in the map.cpp file where I have to put the line "discord_init();"

/// Called when a terminate signal is received.
void do_shutdown(void)
{
	if( runflag != MAPSERVER_ST_SHUTDOWN )
	{
		runflag = MAPSERVER_ST_SHUTDOWN;
		ShowStatus("Shutting down...\n");
		{
			struct map_session_data* sd;
			struct s_mapiterator* iter = mapit_getallusers();
			for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
				clif_GM_kick(NULL, sd);
			mapit_free(iter);
			flush_fifos();
		}
		chrif_check_shutdown();
	}
}

 

map.cpp

Edited by CyberDevil
Posted (edited)
3 hours ago, Normynator said:

Into the do_init function.

...like this is correct?

int do_init(int argc, char *argv[])
{
	discord_init();
	runflag = MAPSERVER_ST_STARTING;
#ifdef GCOLLECT
	GC_enable_incremental();
#endif

	INTER_CONF_NAME="conf/inter_athena.conf";
	LOG_CONF_NAME="conf/log_athena.conf";
etc... etc... etc...

 

EDIT: I have re-try to recompile with this corrction but I recive all time this errors:

Quote

/usr/bin/ld: obj/map.o: in function `do_init(int, char**)':
/root/rAthena/src/map/map.cpp:5184: undefined reference to `discord_init()'
/usr/bin/ld: obj/script.o: in function `buildin_discord(script_state*)':
/root/rAthena/src/map/script.cpp:23953: undefined reference to `discord_script(char const*, char const*)'
/usr/bin/ld: obj/channel.o: in function `channel_send(Channel*, map_session_data*, char const*)':
/root/rAthena/src/map/channel.cpp:458: undefined reference to `discord_send(char const*, char const*, char const*)'

 

Edited by CyberDevil
  • 2 months later...
Posted (edited)

Hello,

@Normynator I'm having this error below.

image.png.12d818233faae244bad03db029ca6b75.png

However, if I try to recompile on a debian, it works perfectly fine.

Here's what I found out:
1. During the make install process the login-server is created but after finishing it, it is automatically deleted or removed. What could be the reason for it? Posted a detailed issue on the Github Repo

Edited by iAmGnome
Added more information.
Posted
On 4/23/2019 at 8:14 PM, Gerzzie said:

Can i test this on my localhost? Is there a Windows Guide?

There is no windows guide available.

 

A patch file for a recent rAthena version was added by @sctnightcore.
It can be found here: https://github.com/Normynator/roCORD/tree/master/diff/user_patches
If you are using this project with a rAthena hash which is not available in the repository feel free to create a PR. It would be highly appreciated.

~norm

  • 10 months later...
Posted (edited)

hi!

im trying to install this , i have allot of errors allready fixed but still im getting new ones like

obj/channel.o: In function channel_send(Channel*, map_session_data*, char const*)': /src/map/channel.cpp:460: undefined reference to discord_send(char const, char const, char const)' obj/script.o: In function `buildin_discord(script_state)': /src/map/script.cpp:23944: undefined reference to `discord_script(char const, char const)'

 

can someone help me out ??

 

Edited by BFPkiller
  • 4 weeks later...
Posted (edited)

Hi!

I am getting an error when I try to make (or make install)

rathena/src/map/discord/discord_core.cpp:259:68: error: no matching function for call to ‘regex_replace(std::string&, std::regex, const char [1]’
   content = std::regex_replace(content, std::regex("^\\s|\\s$"), "");

Centos7

cmake version 3.6.2

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

any help would be greately appreciated!

 

 

Edited by biali
  • 5 months later...
Posted

Sory how to solve this??

 

        CXX     unit.cpp
        CXX     vending.cpp
        LD      map-server
obj/channel.o: In function `channel_send(Channel*, map_session_data*, char const*)':
/home/rathena/src/map/channel.cpp:460: undefined reference to `discord_send(char const*, char const*, char const*)'
obj/map.o: In function `do_init(int, char**)':
/home/rathena/src/map/map.cpp:5257: undefined reference to `discord_init()'
obj/mob.o: In function `mob_dead(mob_data*, block_list*, int)':
/home/rathena/src/map/mob.cpp:2802: undefined reference to `discord_announce_drop(char const*)'
obj/script.o: In function `buildin_discord(script_state*)':
/home/rathena/src/map/../custom/script.inc:27: undefined reference to `discord_script(char const*, char const*)'
collect2: error: ld returned 1 exit status
Makefile:72: recipe for target 'map-server' failed
make[1]: *** [map-server] Error 1
make[1]: Leaving directory '/home/rathena/src/map'
Makefile:50: recipe for target 'map' failed
make: *** [map] Error 2
root@ubuntu:/home/rathena#

 

and where file name index.js ??

thx for answer

  • 1 year later...
  • 3 months later...
  • 1 year later...
Posted

This topic has been moved to the "Abandoned Projects" sub-forum.

If the author is still working on this project, they may request that a moderator moves the topic back and removes this post.

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...