Hello guys!! This is my first time to write a tutorial.
I hope it can help many beginner that don't know how to create your own ragnarok world.
This server setting is just made to play offline. So if you want to make your own private server there are several things you need to learn more on setting ip, opening ports etc, and i'm not going to explain it in here
Credits goes to:
Nickyzai for kRO client
K3dt for decompiled ragexe
Mleo1 for Loki launcher
Shakto, Yommy, MStream for xDiffPatcher
Michieru, Dastgirpojee for Data folder translation
Magicaltux for Grf Builder
Ai4rei for Open Setup
Okay let's get started, please follow all the steps
correctly!
This is all the things you need to create your own
in this tutorial I used 2013-07-03aRagexe.exe so I must download the same date for Diff files which is “Diff 2013-07-03 v1”
in order the xDiffPatcher to work.
4. Open your xDiffPatcher.exe select your ragexe
file you download before which is I used (2013-07-03aRagexe.exe) and then
select your Diff files which is I used (Diff 2013-07-03 v1) and click LOAD.
Now look in “diff option” there are several choice to
pick, I recommended you to check this option:
- Disable Ragexe Filename Check
- Disable HShield
- Disable Packet Encryption
- Enable Multiple GRFs
-@ Bug Fix
- Ignore Missing File Error
- Ignore Missing Palette Error
- Increase Headgear ViewID to 5000
- Increase Zoom
- Load ItemInfo.lua before lub
- Read Data Folder First
- Read msgstringtable.txt
- Read questid2display.txt
- Translate Client In English
- Use Normal Guild Brackets
- Use Ragnarok Icon
- eXtract MsgStringTable.txt
- eXtract txt file strings
After you finish check the option click Diff’n’Save!
Move the patched ragexe you made to your kRO client folder
5. Open the loki launcer folder and right-click
loki.ini, change this:
; Must be on same dir of Loki
Exe = "ragexe.exe"
Into
; Must be on same dir of Loki
Exe = "2013-07-03aRagexe_patched.exe" (I
change into 2013-07-03aRagexe_patched.exe because I patched my
2013-07-03aRagexe.exe. if you use another ragexe please changed into yours)
Save it and move all of file in loki launcher folder
into your kRO client folder.
6. Create new folder and name it ‘Data Folder Translation'
right-click on ‘Data Folder Translation’ folder and choose ‘SVN checkout…’
note: rename 'luatolub.bat.txt' into 'luatolub.bat and double click (to run) it.
After you done. Copy the 'data' and 'system' folder inside the data translation foder you've download to your kRO client and replace any same files with that.
9. Edit your DATA.ini in your kRO client folder into this:
[Data]
0=rathena.grf
1=data.grf
2=rdata.grf
Then save it.
note: If you can’t find DATA.ini just open notepad
and copy code up there to your notepad and save it as DATA.ini
10. Extract the 'Open Setup' you've download before and move the 'opensetup.exe' into your kRO client folder
Now your kRO client is ready.
Now for the Server
1. Create new folder and name it ‘Server’
2. right-click on ‘Server’ folder and choose ‘SVN checkout…’
in “url of repository” and click ok, this will download your server files from latest
rathena server. After complete click ok.
4. Open Server\trunk\conf then rename ‘import-tmpl’ folder into ‘import’
5. Open Server\trunk\conf open file ‘char_athena.conf’ with notepad and
look for this:
// Server Communication username and password.
userid: s1 (change ‘s1’ to whatever you want but here I use ‘username’ as userid for tutorial only)
passwd: p1 (change ‘p1’ to whatever you want but here I used ‘password’ as password)
*note: I suggest you to fill the username and password as I do, to prevent human error, because if you put wrong userid and
passwd the server connection between login and map can’t be establish.
//login_ip: 127.0.0.1 (REMOVE THE ‘//’ IN FRONT OF login_ip: 127.0.0.1 so it will look like this login_ip: 127.0.0.1)
//char_ip: 127.0.0.1 (REMOVE THE ‘//’ IN FRONT OF char_ip: 127.0.0.1 so it will look like this char_ip: 127.0.0.1)
Once you done save it.
6. Still in Server Server\trunk\conf now you open file ‘inter_athena.conf’ with notepad and search for all of this:
sql.db_username: ragnarok (change ‘ragnarok’ into your MySQL username which is I use default ‘root’)
sql.db_password: ragnarok (change ‘ragnarok’ into your MySQL password which is I use default ‘root’)
sql.db_database: ragnarok (change ‘ragnarok’ into ‘rathena’ because later we make database using name ‘rathena’)
char_server_id: ragnarok (change ‘ragnarok’ into ‘root’)
char_server_pw: ragnarok (change ‘ragnarok’ into ‘root’)
char_server_db: ragnarok (change ‘ragnarok’ into ‘rathena’)
map_server_id: ragnarok (change ‘ragnarok’ into ‘root’)
map_server_pw: ragnarok (change ‘ragnarok’ into ‘root’)
map_server_db: ragnarok (change ‘ragnarok’ into ‘rathena’)
log_db_id: ragnarok (change ‘ragnarok’ into ‘root’)
log_db_pw: ragnarok (change ‘ragnarok’ into ‘root’)
log_db_db: ragnarok (THIS ONE YOU CHANGE INTO ‘logs’ because later we make database ‘logs’
Once you’ve done SAVE it.
7. Still in Server Server\trunk\conf now you open file ‘map_athena.conf’ with notepad and search for:
// Interserver communication passwords, set in account.txt (or equiv.)
userid: s1 (Change ‘s1’ into ‘username’ because as I explain on up there before)
passwd: p1 (Change ‘p1’ into ‘password’ because as I explain on up there before)
// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
//char_ip: 127.0.0.1 (Remove the ‘//’)
// Map Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
//map_ip: 127.0.0.1 (Remove the ‘//’)
Done and Save it.
8. Still in Server Server\trunk\conf now you open file ‘subnet_athena.conf’ with notepad and change this:
subnet: 255.0.0.0:127.0.0.1:127.0.0.1
you must find your subnet by opening ‘command prompt’
(start menu > all programs> accessories> command prompt)
after you open your command prompt, type this ‘-ipconfig’
it will look like this
9. Open your MySQL Workbench double click on ‘Local instance MySQL’ as in the picture to open. Input your password which is ‘root’
if you haven’t change it on first time you install it.
10. Click on ‘Create new Schema’ just like on the pic below to create new ‘schema’ and name it ‘rathena’ then click ‘apply’ and
then ‘apply’ and ‘finish’. Now close and reopen your MySQL workbench.
11. repeat the step 10 but name the schema as a ‘logs’ then click ‘apply’ and then ‘apply’ and ‘finish’. Now close and reopen your
MySQL Workbench.
12. Enter again to you ‘Local instance MySQL’ just like the step 9 and double click on ‘rathena’ to select it, and then click ‘file’
and choose ‘Open SQL Script’ and go to rAthena\trunk\sql-files and open ‘main.sql’ click OPEN and click the ‘Lightning button’ on picture below. Wait until its done and close your MySQL Workbench and Open it again to refresh.
repeat step 12 but now you 'Open SQL Script’ and go to rAthena\trunk\sql-files open 'logs.sql' click OPEN and click the ‘Lightning button’ on picture below. Wait until its done and close your MySQL Workbench and Open it again to refresh.
13. After you re-open your MySQL Workbench, double click on ‘rathena’ then double click on ‘table’ and find ‘login’ right click on it and choose ‘Select Rows – Limit 1000’ just like the picture below:
14. Change the ‘s1’ and ‘p1’ on the right table to ‘username’ and ‘password’ by double click on each of them and type it. Just like the
picture below, when you done click ‘apply’ then ‘apply’ and ‘finish’
15. Now Open folder Server\trunk\src\common and right-click mmo.h choose edit and search this line
#define PACKETVER YYYYMMDD
Change it with the date version you choose for your client before
Example:
#define PACKETVER 20130703
(My client ragexe is 2013-07-03aRagexe.exe that’s why I write 20130703)
And save it.
15. Now let’s recompile your server, open Server\trunk\ right-click ‘rAthena-10.sln’ open with Microsoft Visual c++
16. Change the ‘debug’ into ‘release’ like the picture below.
17. Block (select) char-server.sql, login-server.sql, map-server.sql, mapcache and then right click and choose ‘build selection’ like in the picture below:
18. Go to your Server\trunk\db and open file ‘packet_db.txt’ with notepad and add this line in bottom
- adding missing step in server (repeat step 12 but now you 'Open SQL Script’ and go to rAthena\trunk\sql-files open 'logs.sql' click OPEN and click the ‘Lightning button’ on picture below. Wait until its done and close your MySQL Workbench and Open it again to refresh.)
- fixing some step in client about grf builder because if change lua to lub first then merge give error query_navi_map but don't worry now the step are correct.
- adding missing step about downloading 'data translation folder' from repository link
- fix some unclear words and fix the repository link.
- deleted fixcamera angle from patch list because for shift right click issue, and add some note about setup resolution problem
[Tutorial] How to Create Ragnarok Offline 2013 client [Tutorial]
in Client-side Support
Posted
wow, good joob sir !