Jump to content
  • 1

Server-side guide


Freya

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

A guide as to help you create your own test server. Please know that I won't be accompanying you as you're making this, this is just a guide, and if you follow this guide smoothly, then you won't be having any problems then. Please know that I will not answer any questions that can be searched in the search function. Again, this guide is a full package ― guides with pictures. Please read carefully, follow the guide thoroughly. You want to have a test server, read the instructions. Also, this is just a magnification of the Wiki guide.

What to download: - Please download them first. I don't want you guys to lose the passion because of downloading. Install msysgit and MS Visual Studio 2015, don't install but only download MySQL Workbench and MySQL yet, we'll tackle on that later on.


NOTE: This guide follows the WiKi guide from rAthena. This topic is not to, any form, replace, change or etc rAthena WiKi guide.
Good News: If you find this tiring and such please follow this topic instead. Click this link to go. However, if you're asking as why I'm still making this guide when there's this guide made by @Anacondaqq then, I just want to finish what I started. Anyway, this is a very, very long long guide, so if you're really excited, then please refer the link above. 

A. Transferring rAthena server files to your personal computer.

Spoiler

1. Create a new folder. (We shall name this folder as named folder. Please do not be confused.)

2. Right click the new folder and select "Git Bash Here." Once clicked, a black application will appear looking like this.
0-rightclick.png.2d490b3c7a2138cccaa672837b4e51b2.png1-gitrathena.png.fb5ce1c2bbec6f7e5d061f7823ada055.png

3. Type in (without quotation marks) "git clone https://github.com/rathena/rathena.git" and press enter.
2-gitrathena-input.png.624a78094b120cb9d27c3e690ba214bf.png

4. Once entered, the cloning is on going and wait for it to complete.
3-gitrathena-receivingobjects.png.9766fff6305cf12d38e04035e196d289.png

5. Once done, the Git will look like this and the contents of the rAthena git website will also appear in your named folder.
4-gitendproduct.png.5d3f0666da98a26f330f7a995d4d7818.png5-rathenacheck.png.7d2b0a942d7edfadb50ce7b94d0684a3.png

 

NOTE: This is a server file. Server files are responsible for manipulating your server's features such as item effects, skills, mob HP/SP, job levels, max levels, max HP/SP, etc. The server file will play a huge role in making your server on-line.

B. Building solution using MS Visual Studio *insert version*.

Spoiler

1. Once done, locate rAthena.sln in the folder. Right click it and open it using your MS Visual Studio.
6-MSbuild.png.52a29c0d251f26e1501d8c43c75dd9b6.png7-MSopenMS.png.8738f282580e521690ac4d46f105e326.png

2. Once done, your MS Visual Studio should look like this.
8-MSexample.thumb.png.4d29d7c843aa01821d2309404501f14e.png

3. Right click the "Solution 'rAthena' (11 of 11 projects)and press "Build Solution" or Ctrl+Shift+B.
9-rightclickingsolutionrathena.png.1e7d5d194f9497005dcb181bf7d75638.png10-rightclicksolution.png.6c11f5a9984458d45f915f676fe3ff07.png

4. Once done, your output (Located below) should notify you that there are 11 items built successfully. Leave MS Visual Studio.
11-MSresult.thumb.png.830ea3267c580aea1826bc6f74bfde33.png

NOTE: Go back to your named folder and you should notice that there are few softwares added. 

 

C. Building connection to your server files to your address.

Spoiler

HEADS-UP: As what stated in "A. Transferring rAthena server files to your personal computer" NOTES, your server file will play a huge role in making your server to successfully function. This is where the fun stuff starts. Along the way, please learn a thing or two regarding things.

1. Open the named folder and open the conf folder. Inside it will look like, 

 12-compiling-1.png.9e35eaf435249f95bf88edfcd88e9d3b.png12-compiling-2.png.887a6daeaf4bda96cfeadffffb0425e0.png

2. Search for "char_athena" (without quotation marks) and open it with your application of your choice. (As of mine, I opened it with notepad.)

12-compiling-3.png.7b219dba55fb3e47a5379e27518b6a66.png12-compiling-4.thumb.png.120622e02270c394ce06d811c3ccc782.png

3. Remove the double slashes (Note: "Comments" are all text on the right side of a double slash "//." Not removing double slashes will NOT be read.) in both login_ip and char_ip. 
It should be from:
12-compiling-5.thumb.png.376c6c60f701add3ab749480ba2fdec8.png
To:

12-compiling-6.thumb.png.ad7417e79709bc3f5b1b8a1fe707562a.png

4. Save then close.

5. Open "map_athena" and do the same of what we did to "char_athena". Remove the double slashes.

12-compiling-7.thumb.png.120f96d55bc95e5291f9daede204f348.png12-compiling-8.thumb.png.7435fbdc768b204d894a6972edb7746a.png

 

NOTE: You can change your server name in char_athena. Just search for "Server Name"

 

D. Follow up configuration for connecting your server to your personal computer.

Spoiler

1. Still in your conf folder, locate and open "inter_athena." Once opened, you will notice bunch of _server_pw: ragnarok. Edit this to your own password liking and make sure to remember everything. If your password is "Fish" then make sure all your passwords are all "Fish". 
Again, change login_server_pw, ipban_db_pw, char_server_pw, map_server_pw, log_db_pw to your password of your choice.

19.thumb.png.02b7b0351577b1fcec1f588c7ddd9e3e.png

2. Go back to your conf folder and open map_athena and char_athena. 

3. Look at userid and passwd and change s1 and p1 to your choice. Save and close.

E. MySQL Installation 

Spoiler

REFERENCE: rAthena WIKI
First, you will need to install the MySQL server where all the data will be stored. After downloading the MySQL Community Server, run the installer and use the following steps (for this installation version 5.5.28 was used).

Click next and accept the license agreement.
Click "Typical" for Setup Type; then click "Install" (you may have to allow UAC control from windows).
Click "Next" when the MySQL Enterprise tool pops up, this is a simple advertisement.
After installation is finished the completion screen with a "Finish" button will show, make sure you have "Launch the MySQL Instance Configuration Wizard" CHECKED! The configuration wizard will allow you to setup the server to accept the kind of data you want and by setting it up now you will most likely never have to configure it again.
Click "Next" at the first screen, and then click "Standard Configuration" and hit "Next".
Check both "Install As Windows Service" and "Include Bin Directory in Windows PATH" for the Service Name, name it "MySQL5" and ensure "Launch the MySQL Server Automatically is CHECKED.
On the next screen, you will need to select the root password. This password is very important as you will never be able to retrieve it so make sure you write it down somewhere safe. The "root" access to your MySQL database can pretty much do anything to your data, so make sure you keep this information safe. If you want to enable root access from a remote machine, check the included box. You probably won't need to enable that unless you know what you're doing. Keep the password you selected available for now.
On the next screen just click "Execute" to run the configuration unless you want to go back and change something.
Once it is finished, hit "Finish" to close the wizard. It will report if there are any errors (there shouldn't be).

NOTE: Your MySQL password must be the same for your inter_athena -- login_server_pw, ipban_db_pw, char_server_pw, map_server_pw, and log_db_pw. For if you don't, you will encounter problems such as "Access denied for user 'ragnarok'@'localhost' using password: yes".

F. MySQL Workbench Installation

Spoiler

Next it is time to install the MySQL Workbench application. This application will allow you to edit your database and prepare it for eAthena, as well as perform maintenance in the future.

  1. Run the MySQL Workbench installer and click "Next" on the first screen.
  2. Choose your installation directory. The default directory should be fine. Click "Next" to proceed.
  3. Select "Complete" and click "Next", and then install, granting permissions when prompted.
  4. Once the wizard is completed, hit "Finish" and the default Workbench screen will come up.
  5. This is called the Home Screen and should look like this.
  6. You need to create a new server instance to host your files for rAthena to access. Select "New Server Instance" under the "Server Administration" section.
  7. A window will pop up, select "localhost" and click "Next". This installs the instance on the localhost, which is your computer.
  8. On the next screen, leave everything the default. Where it says "Username" leave that at root, so you have root access. Under that, click "Store in Vault" and enter the root password from earlier (it's alright to copy/paste the password if you put it in a text file).
  9. After it has successfully tested the database connection, click "Next"
  10. On the next screen, leave the configuration settings defaulted. It should point to the existing service (MySQL5 from earlier) and the default path is fine. (Image)
  11. On the next screen hit "Next" and then "Continue" on the popup. Leave the Server Instance with the default name of

mysqld@localhost

You are now ready to install your rAthena databases.

G. Installing files to your MySQL Workbench

Spoiler

Before we proceed, let me first explain to you what this does. This is where it records EVERYTHING what you are literally doing. Such as, records of your conversations, record of obtaining an item or dropping an item, etc. This is where people base on when they decide to rollback their servers for balancing. This is also where you create your accounts with administrator/game master rights. 

 

1. Open your MySQL Workbench.
20.png.9c3f55bf678501701d4e3b07b01eb558.png

2. Below the SQL Development, open localhost. 
21.png.5ffd812975c02c307b58bc5da26cc906.png

3. Create a schema by clicking the cylinder and type "ragnarok" (with no " " of course) be very sure that everything is in low caps since this is case-sensitive. Be also very sure that the Collation is on Server Default. 
22.thumb.png.026ecd04ed94221af3e9d0b01c959104.png23.png.24b261090a0e826a338ee60d3c180d41.png

4. Right click the ragnarok and set it to Set as Default Schema.
27.png.4e81f54f6befe3449f0dd39997c6ecb6.png

5. Now, we'll apply the sql's. The SQL's will collect your datas, such as accounts, friends, homunculus, etc. As what stated above.
NOTE: There will be two guides. However, I will be following mine which is, tedious and hard to understand. But, first of all, try using rAthena Wiki's first before mine. If all things go well, ignore this.

rAthena Wiki's Guide
 

Spoiler

1. Click the icon which is near by the "Create Schema" to make tables.

24.thumb.png.dbc0cebb8df06d92cd2478ff80ae2ccf.png

2. As you click it, a file directory will pop up and choose main.sql. 

25.png.40b544d934ff92e22a542a6a02369812.png

3. Once you have chosen main.sql, execute it by clicking the lightning icon.

26.png.fa6f6f5c2b941d125c68e1a6a9b3e089.png

4. Your ragnarok scheme should and must have many tables and there must be NO errors upon the procedure.
5. If and only if you only received this and saw an error like this, follow my guide


Freya's Guide

Spoiler

1. Since the Wiki guide didn't work, we'll do it one by one. First of all, go to this link. Click HERE.
2. Copy each and every line.
28.thumb.png.64583134adb212b94ce2e3ab57b2663f.png

3. Paste it on an empty SQL file. By making an SQL file, click the icon beside the SQL with a folder.

image.thumb.png.5b8512dfccbc9e0d848082c17714ff2b.png


4. After clicking it, you will receive a blank SQL file. Paste all that you copied there and execute.
13-mysqlworkbench-1.thumb.png.d5154613f93e01c8171d261c9db1b087.png

5. NOTE: You have to do it one by one. Once you execute it, create another file, copy and paste it again then execute then back at it again until you reach the finish.

 

 

H. Applying log schema to your MySQL Workbench

Spoiler

1. Once you're done on your ragnarok schema, create another schema called log. Log schema will be the one to store information of their chats, picklogs, logins, and etc.. Click Apply.

29.png.8e2bbd0a0c386cead4d844b76f66aa6f.png

2. Once you're done creating log schema, right click log schema and choose Set as Default Schema.

3. Once you're done setting log schema as the default schema, click the icon which is near the Create Schema icon.

13-mysqlworkbench-2.thumb.png.5e420f2c79d7089abcdde0ebcceadf51.png30.png.cbd2f368b8aac2adc9335395a0796a08.png

4. Locate logs.sql and apply it. There should be no error on this one, however if there is, refer to my guide again.

5. In your ragnarok schema, locate the login table. 

31.png.8a290ed20c98c21fb8ce79f44bda4ba2.png

7. Edit it by right clicking the login table and click Edit Table Data.

32.png.2871ad18d9a9a723c0f1f2ec2e1c179f.png

8. Once you've clicked Edit Table Data you will see tables of account_id and etc.

33.png.84e83fbef922e669ea0f104868a6ccf1.png

9. In your login table, locate userid and user_pass and change it to the userid and user_pass which you just placed in your char_athena and map_athena.
 

10. Once you're done, under it, contains a null table. Change the account_id to 2000000, your userid and user_pass of your choice, and your sex M or F and group_id to 99 and click Apply. It should look like this.
NOTE: Please, just M or F, do not copy the M for Male and F for Female, just M or F. 
NOTE: Your userid and user_pass will become your account on your server. The group_id is the level of your account -- which is the administrator of the server.
NOTE: You can create more account, and if you want it to be a normal player, just make the group_id to 0 and the account_id to 2000001 and so on.

34.png.9ca504732c2d15dd239abda34acbb8bc.png

11. Click on the "Users and Privileges" which is just under "Client Connections".
13-mysqlworkbench-3.thumb.png.c702302673362b21d311258f7eb378d8.png

12. Once you clicked it, press "Add Account".

36.thumb.png.176091ec2b6c0a4d29131ae249b3e60d.png

13. Once you click "Add Account" you'll be asked on what Login Name and etc. Your Login Name should be a all-no-caps ragnarok and your password should be what your MySQL password. Click Apply.

37.thumb.png.6193aa127d1299d49f472e4190a2b34a.png

14. Once you're done, just above it, click "Administrative Roles" which is just beside the "Login"

38.thumb.png.61b8b5c3745fb1b1a56558603d851522.png

15. Click "DBA" to check everything and click Apply.

39.png.9e59cfb5697d914046daf8c43fed7e0c.png40.png.fdc792f851d14edea104b14e587affd8.png

16. After that, go to "Schema Privileges" which is just beside the "Administrative Roles".

17. Under the "Users" click "ragnarok".

18. Press "Add Entry".

19. Something will pop up and leave Host to Any Host(%) and Schema to Selected Schema: and choose ragnarok.

42.png.1f16eb829c37870607a527980f221425.png

20. Press Select "ALL".


21. Do the same thing on log by adding an entry.


22. Once you're done, go to your "rAthena" file and locate "runserver" and this will open the three bat -- mapserver, charserver and loginserver. 
NOTE: All three servers must not have any error and listens to each other.


And voila, you're done.

 

 

Spoiler

Best Regards,
Freya

Edit 1.0 : Added Trouble Shoot , larger font.

Edit 1.1 : Compiling update and added one troubleshoot.
Edit 2.0 : Removed pictures.
                 Microsoft Visual Studio 2017 is used. 2015 still works.
                 Changed some wordings and phrases.
                 Added Troubleshoot regarding Microsoft Visual Studio 2017 since most of them needs a plug-in for it to Build rAthena.
                 Updated.
Edit 3.0: Added NOTICE under EDIT.

NOTICE: Sorry for being inactive for a while. Life has been a great obstacle for my free time. Anyway, I'll be creating the same  guide but a much more updated one. I might also add the Client-side too. Stay tuned. 

 

13-mysqlworkbench.png

image.png

Edited by Freya
  • Upvote 8
  • MVP 1
  • Like 1
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/17/17
  • Last Seen:  

Can u teach about how to install MySQL 5.7.16  and MySQL Workbench 6.3.9?

I don't know how to install them.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

On 3/23/2017 at 0:31 PM, Tymegg said:

Can u teach about how to install MySQL 5.7.16  and MySQL Workbench 6.3.9?

I don't know how to install them.

Part 5 and 6

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/17/17
  • Last Seen:  

I have another problem.

I'm already fix these files.

1.)

start.jpg.7f3aec1223e51c0370ceb514bb6e5179.jpg

and this I'm rename'win_make' to 'win_make2'

2.)

58d60ac6807fb_error-charselect.jpg.f2dae25063e712af6dfa207593be5169.jpg

and I'm restart server agian. I can passed 2 errors before(1,2) and another problem is picture 3

when I enter to create char and this error warning me.

58d60a7fb6f3c_enterincharselect.jpg.c84e8656f6ffb55104f64b74217867df.jpg

Can you help me, please? ;( I don't know how to fix this error.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

On 3/25/2017 at 2:18 PM, Tymegg said:

I have another problem.

I'm already fix these files.

1.)

start.jpg.7f3aec1223e51c0370ceb514bb6e5179.jpg

and this I'm rename'win_make' to 'win_make2'

2.)

58d60ac6807fb_error-charselect.jpg.f2dae25063e712af6dfa207593be5169.jpg

and I'm restart server agian. I can passed 2 errors before(1,2) and another problem is picture 3

when I enter to create char and this error warning me.

58d60a7fb6f3c_enterincharselect.jpg.c84e8656f6ffb55104f64b74217867df.jpg

Can you help me, please? ;( I don't know how to fix this error.

Hello, it would be much better to create your own topic on this one. On that problem, you are having a problem in your data folder. As you can see in one of your picture, it says "Cannot find file:" then locate it on your data folder. Be sure that your data folder is updated. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Wow this is a little bit easier guide for the new ones

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/07/17
  • Last Seen:  

First at all really appreciate that you create this guide! it's work for me! Do you mind to create another guide for client side? many thanks for your hard work!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

23 hours ago, norikanes said:

First at all really appreciate that you create this guide! it's work for me! Do you mind to create another guide for client side? many thanks for your hard work!

Hello, I am still planning to do so. But thank you for your appreciation.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

Excellent guide. I think images help a lot of people that might struggle. My criticisms lie in the presentation- I normally try to avoid spoiler tags but considering the amount of images, it is probably wise to have them. Towards the end of your guide you have no title leading into your client-side guide. May as well title that so people know what they are getting into and so it follows format. I saw a comment on your client-side guide regarding the font choices. I think a larger font size would do you wonders. Feel free to stick with the comic sans though as it gives it a 'Freya' flair that stands out and makes your posts recognizable. Overall a fantastic resource people should consider following so they don't run into problems.

Regards,
~Azura Skyy

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

1 hour ago, Azura Skyy said:

Excellent guide. I think images help a lot of people that might struggle. My criticisms lie in the presentation- I normally try to avoid spoiler tags but considering the amount of images, it is probably wise to have them. Towards the end of your guide you have no title leading into your client-side guide. May as well title that so people know what they are getting into and so it follows format. I saw a comment on your client-side guide regarding the font choices. I think a larger font size would do you wonders. Feel free to stick with the comic sans though as it gives it a 'Freya' flair that stands out and makes your posts recognizable. Overall a fantastic resource people should consider following so they don't run into problems.

Regards,
~Azura Skyy

Edited the font~. Thank you Azura!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.01
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

@Freya how to runserver if there is no file called like that

 

b6529965fc.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

Hello, @AngelaKiss, thank you for that one, please hold on as I am looking for any official updates regarding this or changes in rAthena and of course, if there is, I'll update this guide too. Thank you!

Edited by Freya
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  05/27/17
  • Last Seen:  

On the map_athena.conf theres no login_ip that i can edit :(https://github.com/rathena/rathena/blob/master/conf/map_athena.conf 

 8. Open "map_athena" and still remove the "//" in these line. map_athena.png.6dddd52e432becbb712e7f5d872e254d.png
58ce81278f728_step10.png.d05eea840cdac14a82671663060f1222.png58ce81e86f887_step12.png.04281f63dddc80f911afe1fa3cc9b6e9.png 

 

im not able to do it :( 

Screen Shot 2017-05-29 at 6.40.12 PM.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

Hello, been busy lately, I'll be updating this topic at once. Please hold on for a bit. Thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/25/15
  • Last Seen:  

@Freya Hello Freya. This is one good and comprehensive guide. Thank you so much. Can you please update the guide for number 5: mySQL Installation? The link lead to page with a lot of downloadable files. Making it more specific will sure help someone as newbie as me. What I attempted is that I downloaded and installed the latest version, but the installation process is giving me a headache as it is giving too many option which I don't which to choose. Thanks again.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

10 hours ago, Minho_18 said:

@Freya Hello Freya. This is one good and comprehensive guide. Thank you so much. Can you please update the guide for number 5: mySQL Installation? The link lead to page with a lot of downloadable files. Making it more specific will sure help someone as newbie as me. What I attempted is that I downloaded and installed the latest version, but the installation process is giving me a headache as it is giving too many option which I don't which to choose. Thanks again.

Hello @Minho_18. Where did you click the link? If you clicked the link located in the Step 5, then it's not the proper link for it. Here it is:

 

Spoiler

msysgit - https://git-for-windows.github.io/ - this will clone the files from github to your rAthena files.
MS Visual Studio 2015 - https://www.microsoft.com/en-us/download/details.aspx?id=48146 - this application will help you compile (will be further explained).
MySQL Workbench - https://dev.mysql.com/downloads/workbench/ - this will save all your logs, acc and many more.
MySQL - https://downloads.mysql.com/archives/community/ - for Workbench to work. (This link)

 

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