BFPkiller Posted March 1, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Share Posted March 1, 2020 (edited) hi all !! i am trying to install roCORD but got these errors .. have been trying to fix it by adding the user patch etc but no luck. can anyone help ? Edited March 2, 2020 by BFPkiller Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 1, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 1, 2020 for faster help , I suggest uploading your script.cpp file Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 2, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 2, 2020 here is my script.cpp script.cpp Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 2, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 2, 2020 try this script.cpp Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 3, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 3, 2020 16 hours ago, sader1992 said: try this script.cpp 697.54 kB · 2 downloads Hi, Thanks it seems to have fixed the script.cpp error! Now I'm having this error tho: Here's my map.cpp:map.cpp Kind Regards Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 3, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 3, 2020 i suggest you apply the patch manually , track the changes , remove them , re-apply manually . Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 5, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 5, 2020 i applied the patch manually but when compiling it get this : any suggestions ? obj/channel.o: In function channel_send(Channel*, map_session_data*, char const*)': /home/hiwa/Hiwa_Prod/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)' these are the only errors left ... any idea howto fix them ? Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 5 hours ago, BFPkiller said: these are the only errors left ... i am sure that it not the case , the compiler stop at that error , so you don't see what after however , upload channel.cpp , if you get error after that , i will again tell you to track the changes and delete tham than re-apply Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 8, 2020 2 minutes ago, sader1992 said: i am sure that it not the case , the compiler stop at that error , so you don't see what after however , upload channel.cpp , if you get error after that , i will again tell you to track the changes and delete tham than re-apply 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/map.o: In function `do_init(int, char**)': /src/map/map.cpp:5232: undefined reference to `discord_init()' obj/script.o: In function `buildin_discord(script_state*)': /src/map/script.cpp:23944: undefined reference to `discord_script(char const*, char const*)' those are the errors left here are my files channel.cpp script.cpp map.cpp Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 map (1).cpp make clean && make Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 8, 2020 @sader1992 im getting these now 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/map.o: In function `do_init(int, char**)': /src/map/map.cpp:5232: undefined reference to `discord_init()' obj/script.o: In function `buildin_discord(script_state*)': /src/map/script.cpp:23944: undefined reference to `discord_script(char const*, char const*)' still the same errors. These errors come at the end of the map server compiling those are the last ones. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 look like the project files itself not in your map folder , or not in the make file , make sure that the discord projects compiling Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 8, 2020 All steps before that, are completed succesfully. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 (edited) if you mean you still have the errors put the full log of your compiling from the start to the error (use code box ofc) Edited March 8, 2020 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 8, 2020 @sader1992 This is the whole thing , i deleted out server name.. $ make clean && make make[1]: Entering directory '/src/common' CLEAN common make[1]: Leaving directory '/src/common' make[1]: Entering directory '/3rdparty/libconfig' CLEAN libconfig make[1]: Leaving directory '/3rdparty/libconfig' make[1]: Entering directory '/3rdparty/yaml-cpp' CLEAN yaml-cpp make[1]: Leaving directory '/3rdparty/yaml-cpp' make[1]: Entering directory '/src/login' CLEAN login make[1]: Leaving directory '/src/login' make[1]: Entering directory '/src/char' CLEAN char make[1]: Leaving directory '/src/char' make[1]: Entering directory '/src/map' CLEAN map make[1]: Leaving directory '/src/map' make[1]: Entering directory '/src/tool' CLEAN tool make[1]: Leaving directory '/src/tool' make[1]: Entering directory '/3rdparty/libconfig' MKDIR obj CC grammar.c CC libconfig.c CC scanctx.c CC scanner.c CC strbuf.c AR obj/libconfig.a make[1]: Leaving directory '/3rdparty/libconfig' make[1]: Entering directory '/3rdparty/yaml-cpp' MKDIR obj/src/contrib CXX src/scanner.cpp CXX src/simplekey.cpp CXX src/exceptions.cpp CXX src/exp.cpp CXX src/singledocparser.cpp CXX src/directives.cpp CXX src/regex_yaml.cpp CXX src/nodebuilder.cpp CXX src/node_data.cpp CXX src/nodeevents.cpp CXX src/emitter.cpp CXX src/parser.cpp CXX src/node.cpp CXX src/contrib/graphbuilder.cpp CXX src/contrib/graphbuilderadapter.cpp CXX src/binary.cpp CXX src/tag.cpp CXX src/parse.cpp CXX src/emitfromevents.cpp CXX src/scantag.cpp CXX src/emitterstate.cpp CXX src/memory.cpp CXX src/scantoken.cpp CXX src/stream.cpp CXX src/null.cpp CXX src/emit.cpp CXX src/emitterutils.cpp CXX src/convert.cpp CXX src/ostream_wrapper.cpp CXX src/scanscalar.cpp AR obj/yaml-cpp.a make[1]: Leaving directory '/3rdparty/yaml-cpp' make[1]: Entering directory '/src/common' MKDIR obj CXX core.cpp CXX socket.cpp CXX timer.cpp CXX db.cpp CXX nullpo.cpp CXX malloc.cpp CXX showmsg.cpp CXX strlib.cpp CXX utils.cpp CXX utilities.cpp CXX grfio.cpp CXX mapindex.cpp CXX ers.cpp CXX md5calc.cpp CXX core.cpp CXX socket.cpp CXX malloc.cpp CXX random.cpp CXX des.cpp CXX conf.cpp CXX msg_conf.cpp CXX cli.cpp CXX sql.cpp CXX database.cpp AR obj/common.a make[1]: Leaving directory '/src/common' make[1]: Entering directory '/src/login' MKDIR obj CXX account.cpp CXX ipban.cpp CXX loginchrif.cpp CXX loginclif.cpp CXX logincnslif.cpp CXX login.cpp CXX loginlog.cpp LD login-server make[1]: Leaving directory '/src/login' make[1]: Entering directory '/src/char' MKDIR obj CXX char_clif.cpp CXX char_cnslif.cpp CXX char.cpp CXX char_logif.cpp CXX char_mapif.cpp CXX int_achievement.cpp CXX int_auction.cpp CXX int_clan.cpp CXX int_elemental.cpp CXX inter.cpp CXX int_guild.cpp CXX int_homun.cpp CXX int_mail.cpp CXX int_mercenary.cpp CXX int_party.cpp CXX int_pet.cpp CXX int_quest.cpp CXX int_storage.cpp LD char-server make[1]: Leaving directory '/src/char' make[1]: Entering directory '/src/map' MKDIR obj CXX achievement.cpp CXX atcommand.cpp CXX battle.cpp CXX battleground.cpp ^ CXX buyingstore.cpp CXX cashshop.cpp CXX channel.cpp CXX chat.cpp CXX chrif.cpp CXX clan.cpp CXX clif.cpp CXX date.cpp CXX duel.cpp CXX elemental.cpp CXX guild.cpp CXX homunculus.cpp CXX instance.cpp CXX intif.cpp CXX itemdb.cpp CXX log.cpp CXX mail.cpp CXX map.cpp CXX mapreg.cpp CXX mercenary.cpp CXX mob.cpp CXX npc_chat.cpp CXX npc.cpp (custom rule) CXX party.cpp CXX path.cpp CXX pc.cpp CXX pc_groups.cpp CXX pet.cpp CXX quest.cpp CXX script.cpp CXX searchstore.cpp CXX skill.cpp CXX status.cpp CXX storage.cpp CXX trade.cpp CXX unit.cpp CXX vending.cpp LD map-server 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/map.o: In function `do_init(int, char**)': /src/map/map.cpp:5232: undefined reference to `discord_init()' obj/script.o: In function `buildin_discord(script_state*)': /src/map/script.cpp:23944: 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 '/map' Makefile:50: recipe for target 'map' failed make: *** [map] Error 2 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 (edited) you need to use cmake , or else the discord project won't compile , read the doc files in the discord project. Edited March 8, 2020 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 8, 2020 @sader1992 i read them all what do you mean ? Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 8, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 8, 2020 you should compile in your build folder , not outside Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 9, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 9, 2020 @sader1992 it compiles fine in build folder yet i get this when starting the server and cant login game Heartbeat ACK: {"d":null,"op":11,"s":null,"t":null} [2020-03-09 02:37:36] [info] asio async_read_at_least error: asio.ssl:335544539 (short read) [2020-03-09 02:37:36] [error] handle_read_frame error: websocketpp.transport:11 (Generic TLS related error) [2020-03-09 02:37:36] [info] asio async_write error: asio.ssl:336396495 (protocol is shutdown) [2020-03-09 02:37:36] [fatal] handle_write_frame error: websocketpp.transport:2 (Underlying Transport Error) [2020-03-09 02:37:36] [info] asio async_shutdown error: asio.ssl:335544539 (short read) Socket Init: -150 TLS Init: -1021023349 Close: 4465813 [Debug]: {"d":null,"op":11,"s":null,"t":null} [Debug]: Waiting for heartbeat thread to finish! Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 9, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 9, 2020 10 minutes ago, BFPkiller said: @sader1992 it compiles fine in build folder yet i get this when starting the server and cant login game Heartbeat ACK: {"d":null,"op":11,"s":null,"t":null} [2020-03-09 02:37:36] [info] asio async_read_at_least error: asio.ssl:335544539 (short read) [2020-03-09 02:37:36] [error] handle_read_frame error: websocketpp.transport:11 (Generic TLS related error) [2020-03-09 02:37:36] [info] asio async_write error: asio.ssl:336396495 (protocol is shutdown) [2020-03-09 02:37:36] [fatal] handle_write_frame error: websocketpp.transport:2 (Underlying Transport Error) [2020-03-09 02:37:36] [info] asio async_shutdown error: asio.ssl:335544539 (short read) Socket Init: -150 TLS Init: -1021023349 Close: 4465813 [Debug]: {"d":null,"op":11,"s":null,"t":null} [Debug]: Waiting for heartbeat thread to finish! than your problem is fixed , you can ignore the debug messages if it work fine or you can ask here : https://github.com/zaphoyd/websocketpp or search to fix those errors Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 9, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 9, 2020 @sader1992 well as i said i cant login the game , wich is weird Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 9, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Wednesday at 01:19 AM Share Posted March 9, 2020 well , i can't really help fix that , if you followed everything correctly from the doc in the project to the files here , everything should work fine. Quote Link to comment Share on other sites More sharing options...
0 BFPkiller Posted March 9, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Author Share Posted March 9, 2020 Wich doc are you reffering to ? Since there are multiple doc that describe on howto install, and all have it a little different then the other... It confuses me to... @sader1992 i used this doc https://github.com/Normynator/roCORD/blob/master/docs/installation.md in a fresh rathena, all went well untill these steps ; ( try doing sudo apt-get install libssl1.0-dev , this gives a weird message as well ) $ cd <path to your rathena> $ mkdir build $ cd build $ /usr/local/bin/cmake -G"Unix Makefiles" -DINSTALL_TO_SOURCE=ON -DJSON=/usr/local/include/nlohmann -DWEBSOCKETPP=~/websocketpp .. $ make install all went well untill "make install" , resulted in : /src/map/script.cpp: In function ‘int buildin_convertpcinfo(script_state*)’: /src/map/script.cpp:4881:31: error: ‘buildin_discord’ was not declared in this scope #define BUILDIN_DEF(x,args) { buildin_ ## x , #x , args, NULL } ^ /src/map/script.cpp:24484:2: note: in expansion of macro ‘BUILDIN_DEF’ BUILDIN_DEF(discord,"ss"), ^ /map/script.cpp:24484:27: error: expected primary-expression before ‘,’ token BUILDIN_DEF(discord,"ss"), ^ Quote Link to comment Share on other sites More sharing options...
Question
BFPkiller
hi all !!
i am trying to install roCORD but got these errors ..
have been trying to fix it by adding the user patch etc but no luck.
can anyone help ?
Link to comment
Share on other sites
22 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.