Jump to content
  • 0

How to connect a client to rAthena server?


nanakiwurtz

Question


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hi rAthena forum community! I'm a new user /bo

I've been following the rAthena Wiki up to this point http://rathena.org/w...ing#Client_Side

Here are the steps I have done so far:

  • Download the latest svn of rAthena, configure the IP address and compile it using Ms Visual Studio 2010 Ultimate.
  • Install MySQL and set it up.
  • Diff the client exe file
  • Download both kRO and Miruku client package, and install them in different folder.

When I tried to run the runserver-sql.bat they worked fine, so I assume the server is already up and running fine.

Now I'm confused on how to edit the clientinfo.xml, because I didn't find it everywhere. Do I need to make it by myself, and if yes where I should put the file?

I have download almost all files from http://rathena.org/b...equested-links/

In JudasBible.pdf page 31, I encounter clientinfo.xml too..

Can anyone share any insights about the next steps? Thanks in advance... /ok

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

clientinfo.xml goes inside data folder

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

Data 2.0 - http://rathena.org/board/topic/66962-basic-complete-renewal-data-english-folder/

clientinfo.xml is inside the Data 2.0

Edited by Idiotring
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Thanks for the replies :)

Okay, I have made progress. I merge clientinfo.xml into data.grf and it works.

But there's still a problem, in logserv-sql.exe window:

[status]: Request for connection (passwdenc mode) of username (ip: xxx.xxx.xxx.xxx).

[Notice]: Authentication accepted (account: username, id: 1, ip: xxx.xxx.xxx.xxx)

[status]: Connection of the account 'username' accepted.

[info]: Closed connection from 'xxx.xxx.xxx.xxx'.

[status]: Char-server 'Ragnarok': Authentication of the account 1 REFUSED (ip: xxx.xxx.xxx.xxx).

Idiotring: I have read your post at http://rathena.org/b...de/#entry133118 so I guess it's an English client, am I correct?

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Account 1 is normally the server account (it's gender is S in the login table). If that's the caase, you need to check your server connectivity password in char and map_athena.conf.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Okay, I have created another char from SQL table, and managed to read the server name from Server selection window in client exe.

Now I got another error message from mapserv-sql.exe

[info]: clif_parse: Disconnecting session #3 with unknown packet version (p:0x4e82,l:19)

[info]: Closed connection from 'xxx.xxx.xxx.xxx'

I have tried using 2011-10-25aRagexeRE.exe and changed the mmo.h into #define PACKETVER 20111025, then recompile it.

But the mapserv is still not recognizing the packet version, it's strange because 20111025 is defined explicitly in the mmo.h itself.. /whisp

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

You need to match the packetver and packetversion in db/packet_db.txt - that's why you get unknown packet errors.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Try to use 2012-04-10a instead.

I have tried using 2012-04-10a and get the exactly the same error message like this too http://rathena.org/b..._hl__reqaccname, I also have tried different diff combination from Shin's Patcher..

You need to match the packetver and packetversion in db/packet_db.txt - that's why you get unknown packet errors.

I have tried different combinations in mmo.h & packet_db.txt but still no luck, even with original/diffed client.exe

Until now, I'm still learning from this forum /ok

Hmm.. I wish someone can edit the wiki, because the information about client is not too clear

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

I have tried using 2012-04-10a and get the exactly the same error message like this too http://rathena.org/b..._hl__reqaccname, I also have tried different diff combination from Shin's Patcher..

It appears to be the case that you do not have matching lua files to go with your client version.

You should first make sure what lua revision you need, are you using the latest kRO client?

I read you downloaded Miruku, I don't use that myself nor am I sure about what it is since I haven't

looked up any info on that yet. So far I've worked solely with kRO.

So, I'm not sure about what you are trying to achieve. But for a working server that you can log into,

you don't need to use Miruku.

When you diffed your client, did you make sure to use the new version of "WDGSkipPacketHeaderObfuscation.dll"?

You must diff with skip header obfuscation turned on, otherwise you will not be able to connect in my experience.

Edited by Seraph Sephiroth
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Thanks for the reply Seraph Sephiroth :)

Miruku is a client too like kRO, can be found here http://rathena.org/b...equested-links/

Hmmh... I think I need to start things all over again from zero, because it's pretty messed up in this point...

I have a fresh copy of kRO from that link, and also have the latest patch from here ftp://ragnarok.nowcdn.co.kr:20021/Patch/

So all I need to do is:

  1. Reinstall kRO + MySQL, and also recompile rAthena latest SVN version.
  2. Download a RagexeRE from http://subversion.as...eetools/clients, probably 2011-09-06aRagexeRE
  3. Diff the client with Shinryo's http://rathena.org/b...s-diff-patcher/
  4. Set the clientinfo.xml to the correct ip address

Are there any steps that I missed? /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

Thanks for the reply Seraph Sephiroth :)

Miruku is a client too like kRO, can be found here http://rathena.org/b...equested-links/

Hmmh... I think I need to start things all over again from zero, because it's pretty messed up in this point...

I have a fresh copy of kRO from that link, and also have the latest patch from here ftp://ragnarok.nowcdn.co.kr:20021/Patch/

So all I need to do is:

  1. Reinstall kRO + MySQL, and also recompile rAthena latest SVN version.
  2. Download a RagexeRE from http://subversion.as...eetools/clients, probably 2011-09-06aRagexeRE
  3. Diff the client with Shinryo's http://rathena.org/b...s-diff-patcher/
  4. Set the clientinfo.xml to the correct ip address

Are there any steps that I missed? /hmm

There is a fairly long checklist actually, consisting of small but important things to setup and configure.

First, when using kRO get all the files from ratemyserver.com, and just extract them into one folder.

That will be your base client to work with. Then get the latest rAthena revision, it is also handy to make a backup

of the client and rAthena folder before working with them, and keep making backups upon making progress.

As for the executable, I recommend using 2012-04-10a. It is the one I currently use and I had no issues with it

whatsoever (yet), but then again I am still developing my server as well ;}

When you got all of that together, the next thing you should get are the correct lua files.

I am going to assume getting the most recent lua files will work, but I am using a slightly older revision myself (I got the revision located at a computer at home, I'm currently at a comrade's so I can't specifically tell you what revision right now).

If I am correct, the revision of the lua must match the client executable you use.

After you got those paired up, you can start to work on rAthena's configuration files that let you connect to

your MySQL and your client after diffing your executable with shin's patcher.

- I'll be back with more info, if necessary. But feel free to ask anything you're stuck with in the meantime,

I'm sure other members will help you out with additional steps :}

Edited by Seraph Sephiroth
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Okay, I have reinstalled (unrar) the kRO I downloaded from RMS.net, and overwrite the 'rsu-kro-rag-lite' + 'rsu-kro-renewal-lite' from RMS.net.

But my folder doesn't like http://ratemyserver.net/images/roclient_dir_sample_01052011.jpg

My folder doesn't have the following folders: AI, Data, HShield, PatchClient, Replay, Skin.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  08/09/12
  • Last Seen:  

DiffPatcher

http://supportmii.com/ro1/Clients/DiffPatcher.7z

http://supportmii.com/ro1/Clients/Bypass_Clients/Waeyan/WDGSkipPacketHeaderObfuscation.dll

RagexeRE - http://xp-dev.com/svn/kei-clientside/Clients/RagexeRE/

After download all files and extract it.

Move WDGSkipPacketHeaderObfuscation.dll to DiffPatcher\plugins\WeeDiffGen and overwrite existing file.

Diff RagexeRE with auto recommended setting.

Try this 2012-06-02 kRO Client - http://rathena.org/board/topic/64822-2012-06-02-kro-client/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Thanks for the help so far, today I'm able to connect to server and play /ok

Although I got some error messages related to lua things and korean skillnames

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

Thanks for the help so far, today I'm able to connect to server and play /ok

Although I got some error messages related to lua things and korean skillnames

Great to hear you're able to play now! The errors you encountered and will encounter are basically part of the process

in creating your server, keep working on it and over time you will improve and eventually get your server to run error free,

and just the way you intended it. But it will not be easy, and it will take a lot of hard work and research depending on how

far you want to go and customize everything.

On top of that you probably want to stay updated, so as you work on your revision you will eventually get behind and

need to carry over all your settings to newer revisions that may contain certain changes requiring you to configure some things

in totally different ways then you were used to in older revisions. You will be able to solve certain problems in newer revisions,

but you will also encounter new problems when starting to use them.

Have fun with your server! And feel free to ask me stuff, I might be able to help out :}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I'm glad that the forum members are helpful, even to newcomers /no1

Yes SeraphSephiroth, I think the customization part will take the most of our time, I never thought the process was so easy to set up a rAthena server (well, not too easy actually) :P

When I read this wiki http://rathena.org/wiki/Import_folder, it is said that every value that are saved to that folder are protected from being overwritten when we are updating our SVN, so it means it doesn't necessarily to rename each files for each settings?

1. Can I put values from 'db/packet_db.txt' and 'trunk/char_athena.conf' in a single txt file in import folder?

2. And does import folder works only for 'conf' folder? I mean, when I edit my 'src\common\mmo.h' can I put that too in import folder? Or does the import folder works only for .conf files?

Thank you..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

I'm glad that the forum members are helpful, even to newcomers /no1

Yes SeraphSephiroth, I think the customization part will take the most of our time, I never thought the process was so easy to set up a rAthena server (well, not too easy actually) :P

When I read this wiki http://rathena.org/wiki/Import_folder, it is said that every value that are saved to that folder are protected from being overwritten when we are updating our SVN, so it means it doesn't necessarily to rename each files for each settings?

1. Can I put values from 'db/packet_db.txt' and 'trunk/char_athena.conf' in a single txt file in import folder?

2. And does import folder works only for 'conf' folder? I mean, when I edit my 'src\common\mmo.h' can I put that too in import folder? Or does the import folder works only for .conf files?

Thank you..

I'm not sure why you would rename your files to protect your files from being overwritten, it seems like a much easier method to just make a backup

of your custom revision, and walk through the files you edited with customisations to make sure everything you altered stays in.

I haven't tried an SVN update through Turtoise yet, so I can't tell you anything about what that will and won't do to your customisations,

but I figure it should be user friendly and not destroy/undo your settings. But I wouldn't blindly rely on that.

Different config files such as packet_db.txt and char_athena.conf are better kept seperate to avoid confusion as to where certain information

is kept. Also, I don't think something like merging those settings into one file is doable in a way that would be easy to setup and will most likely

require you to alter the source to redefine what files to read for what purpose and how to read those files properly.

The import folder is something I haven't had any need for myself, so I had no practise using that.

If you wish to find out what works, you'll just have to do some testing with that. Disable (rename) mmo.h for example, after putting it in the import folder to check if it loads.

It's all about trial and error, checking, checking, and more checking.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hmm... renaming mmo.h won't make a difference I think, because it's needed only in compilation process, right?

Btw, do you know where can I learn on how to customize the server? (such as adding new custom maps like this one http://rathena.org/board/files/file/2482-custom-vending-map/ or this http://rathena.org/board/files/file/2263-market-map-by-olrox/)

I always go to wiki first but 'map' search only returns 3 topics.

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Disable (rename) mmo.h for example, after putting it in the import folder to check if it loads.

What??!?! No. I highly recommend you don't rename -any- of the files. They're named as they are for a reason, and all of them are referenced sometimes on more than one occasion.

For custom maps, the wiki has this helpful page: http://rathena.org/wiki/Custom_Maps

The wiki also has this helpful category of pages for general customization: http://rathena.org/wiki/Category:Configuration

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

Disable (rename) mmo.h for example, after putting it in the import folder to check if it loads.

What??!?! No. I highly recommend you don't rename -any- of the files. They're named as they are for a reason, and all of them are referenced sometimes on more than one occasion.

For custom maps, the wiki has this helpful page: http://rathena.org/wiki/Custom_Maps

The wiki also has this helpful category of pages for general customization: http://rathena.org/w...y:Configuration

I totally agree with you, no files should be renamed for serious use of the server.

But for testing purposes it is an optional method to check wheter files with the .h or .c extension will

be read by the import folder, that is all I was saying.

Hmm... renaming mmo.h won't make a difference I think, because it's needed only in compilation process, right?

Btw, do you know where can I learn on how to customize the server? (such as adding new custom maps like this one http://rathena.org/b...om-vending-map/ or this http://rathena.org/b...t-map-by-olrox/)

I always go to wiki first but 'map' search only returns 3 topics.

Yes, the compilation will require the mmo.h file to be unaltered, but after the compilation you could attempt to alter the name and try to load it

from the import folder, although I don't think that will work.

Learning how to add in custom maps and such can be done on this website, just cruise around the forums for a while and you will most likely

discover various topics relating to issues you might run into or have run into, and be able to find answers to most of your questions. If you can't find anything after doing a thorough search, create at topic at the appropriate place on the forum.

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

I think you're missing the point of my post. mmo.h will not work in the import folder. The import folder is for the use of import folder files that are already there. You put config switches from /conf/*_athena.conf into /conf/import/*_conf.txt. If you don't know what that means, then you don't need to use them. (though you should learn - there's info on the wiki about it).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

After reading posts on http://rathena.org/board/forum/19-client-patcher-support/, I see that there're lots of repeating pattern of questions.

Is there a FAQ about server & client?

I rarely see someone give a link to the wiki, they just giving answers over and over again.

Hmm Akkarin, where did you get those signature line?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

I think you're missing the point of my post. mmo.h will not work in the import folder. The import folder is for the use of import folder files that are already there. You put config switches from /conf/*_athena.conf into /conf/import/*_conf.txt. If you don't know what that means, then you don't need to use them. (though you should learn - there's info on the wiki about it).

No I understood what you ment perfectly, but it appears you missed my point actually. I was basically saying that if you don't know for certain wheter .c or .h extensions can be read from the import folder, you can try to disable the file/files at their original location by renaming them, and attempt to load those files from the import folder instead.

Since I have not tried that out for myself, I suggested to test that out.

The config switches are handy, but they will not cover all of my changes since I have altered source files as well. I suppose some find it mandatory, and others might find it somewhat unnecessary. I haven't found a good enough reason to use the import folder yet, but that may as well change in the future.

After reading posts on http://rathena.org/b...atcher-support/, I see that there're lots of repeating pattern of questions.

Is there a FAQ about server & client?

Have you tried Judas Bible? It covers how to set everything up very well.

Edited by Seraph Sephiroth
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

No I understood what you ment perfectly, but it appears you missed my point actually. I was basically saying that if you don't know for certain wheter .c or .h extensions can be read from the import folder, you can try to disable the file/files at their original location by renaming them, and attempt to load those files from the import folder instead.

I'd like to settle this once and for all before we start going round in a circle again. I didn't miss your point, I understood it perfectly. However, you chose to interpret my post in a way that makes no logical sense. You cannot move a source file into /config/import/.

a.) It will not be read.

b.) Missing files will break your compile process.

c.) Source files are in the /src/ folder for a reason - because they're source files.

The import folder is for the use of import folder files that are already there. You put config switches from /conf/*_athena.conf into /conf/import/*_conf.txt.

Hmm Akkarin, where did you get those signature line?

Which one? o.O

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   3
  • Joined:  06/12/12
  • Last Seen:  

I'd like to settle this once and for all before we start going round in a circle again. I didn't miss your point, I understood it perfectly. However, you chose to interpret my post in a way that makes no logical sense. You cannot move a source file into /config/import/.

a.) It will not be read.

b.) Missing files will break your compile process.

c.) Source files are in the /src/ folder for a reason - because they're source files.

Yes, let's settle it. But in the correct way this time.

I did not "choose" to interpret anything you said in a illogical sense, I was addressing nanakiwurtz with the suggestion to -try it out- in case you -don't know yet-

so that -after trying it out- you will know for sure if it loads, or not.

Wheter you can or cannot load .c or .h from the import folder is of no relevance there, since that would become apparent anyway after performing the test.

So in that respect,

A: Would become apparent after trying my suggestion anyway.

B: I was aiming for the attempt -after- compiling with the correctly named files in the correct places.

C: And tests are there for a reason as well, to figure stuff out. To see what can, and cannot be done.

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