Jump to content
  • 0

roCORD help


BFPkiller

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

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 ?

 

helproCORD.png

Edited by BFPkiller
Link to comment
Share on other sites

22 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

for faster help , I suggest uploading your script.cpp file

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

try this

script.cpp

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

16 hours ago, sader1992 said:

Hi,

Thanks it seems to have fixed the script.cpp error!

Now I'm having this error tho:

image.png.8769154b655be9f01827d15fa9c6fb7f.png


Here's my map.cpp:
map.cpp


Kind Regards

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

i suggest you apply the patch manually , track the changes , remove them , re-apply manually .

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

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 ?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

map (1).cpp

make clean && make

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

look like the project files itself not in your map folder , or not in the make file , make sure that the discord projects compiling 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

All steps before that, are completed succesfully.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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 by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

@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

 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

you need to use cmake , or else the discord project won't compile , read the doc files in the discord project.

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

@sader1992 i read them all what do you mean ?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

you should compile in your build folder , not outside

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

@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!

 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

@sader1992

well as i said i cant login the game , wich is weird

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

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"),
                           ^

 

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