How to Setup rAthena and run Ragnarok Updated 2018 -2021 Print

  • 55

Programs you need to install before we start

Downloads:

Required Files: 

==========================================

Setting up rAthena Server-Side: See video time-line: 00:02

Step 1: Download/Clone rAthena Source

  • Open GitHub.

 

Step 2: Configuring rAthena See video time-line: 00:35

  • open rathena/conf/import/char_conf.txt
    • Add these lines :
      • userid: username
      • passwd: password
      • login_ip: 127.0.0.1
      • char_ip: 127.0.0.1
    • [Optional] To change server name add this line :
      • server_name: YourDesiredServerName
    • Note: If you want to change anything in char_athena.conf, use the import-tmpl directory to avoid future issues when updating. ( just add the respective value you want ).
  • rathena/conf/import/map_conf.txt
    • Add these lines:
      • userid: username
      • passwd: password
      • char_ip: 127.0.0.1
      • map_ip: 127.0.0.1
    • Note: If you want to change anything in map_athena.conf, use the import-tmpl directory to avoid future issues when updating. ( just add the respective value you want ).
  • rathena/conf/import/inter_conf.txt
    • Add these lines
      • login_server_db: rathena
      • ipban_db_db: rathena
      • char_server_db: rathena
      • map_server_db: rathena
      • log_db_db: rathena_logs
    • Note: If you want to change anything in map_athena.conf, use the import-tmpl directory to avoid future issues when updating. ( just add the respective value you want ).
    • Note: I use rathena as my main database which contain all main tables (like: chars, login, guilds, etc... ). However, I like to separate my logs to rAthena_logs .

Step 3: Compiling rAthena See video time-line: 02:16

  • Locate  rathena/rAthena.sln
    • Locate and right click rAthena.sln open with > Microsoft Visual Studio 2017 ( or 2013 / 2015 )
    • Wait for the MVS to load the project, when it's ready select Solution 'rAthena' (8 projects) and then right click and Click 'Clean Solution' First when clean finish successfully click on 'build Solution'
    • Wait for it to finish, make sure the log below finish successfully 

 

Step 4: Setting SQL Database ( make sure MySQL installed and running ) See video time-line: 03:13

  • open MySQL Workbench
    • log in :
      • Using the username 'root 'and the password you set when you first install MySQL ( If you don't remember the password, you can reconfigure MySQL using MySQL installer )
    • once you logged in create new user account and grant Administrator Privileges: - See video time-line: 04:17
      1. In The Left Side click on Users and Privileges 
      2. At The Bottom click on Add account
      3. Set Login Name : ragnarok
      4. Set Password : ragnarok
      5. Set Confirm Password : ragnarok
      6. At The Top Menu Click Administrative Roles: and then check DBA
      7. Click Apply
      8. logout by clicking on X at the top of the current tap and then login using the new user account ragnarok with password ragnarok See video time-line: 05:00
    • Creating databases/schema : See video time-line: 05:26
      • Click on Screenshot_3.png  create new database/schema
      • Set the Name: rathena ( this will be our main database/schema )
      • Set Charset: utf8 ( Now this's is important you need to check this )
      • Click apply, apply and then finish
      • Now Click on Screenshot_3.png create new database/schema
      • Set the Name: rathena_logs ( this will be our logs database/schema )
      • Set Charset: utf8 ( Now this's is important you need to check this )
      • Click apply, apply and then finish
    • import rathena SQL files to rathena & rathena_logs databases: See video time-line: 06:16
      • Double click on rathena database/schema we've just created
      • Click on Screenshot_4.png 
      • locate rathena folder and go to rathena/sql-files and click on main.sql
      • Click on the light icon Screenshot_5.png * wait for the tablet to be executed *
      • Double click on rathena_logs database/schema we've just created
      • Click on Screenshot_4.png
      • locate rathena folder and go to rathena/sql-files and click on logs.sql
      • Click on the light icon Screenshot_5.png * wait for the tablet to be executed *
    • change the username and password of the server: See video time-line: 07:03
      • Now next/around rathena database right click on a blank area and click refresh all ( in order to view the tables we've just created or just relog )
      • Click on rathena database/schema > tables > locate login table..
      • now click on tables and locate login table then right click and click on select Rows - Limit 1000
      • Double click on s1 and change it to username then hit enter  ( we put the userid: username in rathena/conf/import-tmpl/char_conf.txt and map_conf.txt  make sure you use the same one you put in these files  ) 
      • Double click on p1 and change it to password then hit enter  ( we put the passwd: password in rathena/conf/import-tmpl/char_conf.txt and map_conf.txt  make sure you use the same one you put in these files ) 
      • Click apply, apply and then finish

Step 5 ( running the server )

  • Running rAthena server See video time-line: 07:35
    • locate rathena folder rathena/ click on runserver
      •  ( less than 8 mins without any errors )

==================================================

 

 

Client Side Running & patch ragnarok online client 

 

  • open Official kRO Client/ 
    • Updating kRO Files:
      • Locate and run rsu-kro-rag-lite.exe and wait for it to finish and then rsu-kro-renewal-lite.exe and wait for it to finish updating ..
    • Adding translated system/data files 
      • Locate ROenglishRE or ROenglishPRE and copy Data & System folders , GuildTip  & Tipoftheday
      • and paste these files into the official kro client folder ( Replace the files when asked )
    • Setting up clientinfo.xml : 
      • locate official kRO client folder open folder data/ and edit file clientinfo.xml
        1. change the version to 55 <version>55</version>  (This might not be needed  anymore.)
        2. set the langtype to 1 < To be able to write in English. ( refer to this page to find your preferred language beside English: https://github.com/rathena/rathena/wiki/Clientinfo.xml ).
        3. set admin sprite for any account you want, just put the account id 
          1. <aid>
            	<admin>2000000</admin>
            </aid>
    • Copy and paste the setup file into the the official kRO client folder
    • Patching the Client 2015-11-04 
      • load the client and select recommended and click enter for data.ini and then CHANGE/EDIT system/iteminfo.lub to system/iteminfo.lua and check read data folder first, ignore missing palettes, ignore resource errors and then customize the client as you want
  • Here's my additional patches:
    
    >>>
    Custom Window Title ( name you server )
    Disable Swear Filter
    Disconnect to Login Window
    Enable Title Bar Menu
    Read Data Folder First
    Show Cancel To Service Select
    Ignore Missing Palette Error
    Ignore Resource Errors
    Use Ragnarok Icon ( ragnarok icon for the client )
    <<<

    copy the new 2015-11-04aRagexe_patched and paste it your official kRO client folder

 

now the client is ready, just run the game using 2015-11-04aRagexe_patched and Enjoy

to create a male account just type ex: admin_f for female - admin_m for male 

and don't forget to set the account group id 99 to get full GM permissions 

Issue #1: Closed connection from '127.0.0.1'.
Solve:  go to your rathena/src/custom/defines_pre.hpp and open it with notepad++ ( or any notepad ) add this line #define PACKETVER 20151104



========================================================

As of 28-7-2018: the topic is fully updated and support MySQL 8.x 

========================================================

For further questions or concerns regarding the tutorial, Do NOT hesitate to contact me in this topic.


Was this answer helpful?

« Back