1. Create new folder and name it ‘Server’
2. right-click on ‘Server’ folder and choose ‘SVN checkout…’
3. Fill this link (https://rathena.svn....vnroot/rathena/)
in “url of repository” and click ok, this will download your server files from latest
rathena server. After complete click ok.
4. Open Server runkconf then rename ‘import-tmpl’ folder into ‘import’
5. Open Server runkconf 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 runkconf 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 runkconf 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 runkconf 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
untitled.png
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.
sql1.png
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.
sql2.png
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 runksql-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 runksql-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.
sql3.png
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:
sql4.png
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’
sql5.png
15. Now Open folder Server runksrccommon 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 runk right-click ‘rAthena-10.sln’ open with Microsoft Visual c++
16. Change the ‘debug’ into ‘release’ like the picture below.
visual1.png
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:
visual2.png
18. Go to your Server runkdb and open file ‘packet_db.txt’ with notepad and add this line in bottom
//2013-07-03 Ragexe
packet_ver: 38
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0437,5,walktoxy,2
0x035F,6,ticksend,2
0x0930,5,changedir,2:4
0x07E4,6,takeitem,2
0x0362,6,dropitem,2:4
0x07EC,8,movetokafra,2:4
0x0364,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x096A,6,getcharnamerequest,2
0x0368,6,solvecharname,2
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0835,2,searchstoreinfonextpage,0
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0202,6,reqclickbuyingstore,2
0x0817,2,reqclosebuyingstore,0
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0365,18,bookingregreq,2:4:6
// 0x0363,8 CZ_JOIN_BATTLE_FIELD
0x0281,-1,itemlistwindowselected,2:4:8:12
0x022D,19,wanttoconnection,2:6:10:14:18
0x0802,26,partyinvite2,2
// 0x0436,4 CZ_GANGSI_RANK
0x0360,26,friendslistadd,2
0x094A,5,hommenu,2:4
0x0873,36,storagepassword,2:4:20
If you choose another date of your ragexe you can find your ‘packet’ in this link
http://rathena.org/board/topic/82726-2013-ragexe-and-diff-up-to-date-2013-07-03/
Just copy and paste it to your ‘packet_db.txt’ like I did.
19. Now you are ready to start your server, open rAthena runk and open file ‘runserver-sql.bat’ wait until all server loaded like the pic
below:
server.png
20. Now go to your kRO client Folder and open ‘Loki.exe’ in the login screen you can create account by doing this;
In ID you can fill your ID with _M for male and _F for female
createid.png
And then input your password, After that you may login to your id without _M or _F anymore.
21. Some Screenshoot in the game
screenragnarok005.jpg
screenragnarok000.jpg
I think that's all guys. sorry for any mistake and good luck creating your own Ragnarok World /gawi
don't forget to clik the rep_up_zps4d092215.png button if you found this post useful /rice and thx for reading this bad tutorial /shy
________________________________________________________________________________________________________
Note: only do this step if you found the problem below.
Problem 1:
setup resolution problem: there is missing file in kRO clientsystemlua514 that file name is optioninfo.lub
you may download from here and put on that folder.
Problem 2:
'queryNavi_Distance_Map' problem: go to Data Folder TranslationDataluafiles514lua files
avigation then deleted the file below:
navi_linkdistance_krpri.lub
navi_linkdistance_krsak.lub
navi_npcdistance_krpri.lua
navi_npcdistance_krsak.lua
_________________________________________________________________________________________________________
edited :
- adding missing step in client
- adding new file Open Setup from Ai4rei
- adding missing step in server (repeat step 12 but now you 'Open SQL Script’ and go to rAthena runksql-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
- fix xdiff files link
1. สร้างโฟลเดอร์ใหม่ และตั้งชื่อเป็น 'เซิร์ฟเวอร์'2. คลิกขวาบนโฟลเดอร์ 'เซิร์ฟเวอร์' และเลือก 'เช็คเอาท์ SVN...'3. กรอกลิงค์นี้ (https://rathena.svn...vnroot/rathena/)ใน "url ของเก็บ" และคลิกตกลง นี้จะดาวน์โหลดไฟล์เซิร์ฟเวอร์ของคุณจากล่าสุดเซิร์ฟเวอร์ rathena หลังจากเสร็จคลิกตกลง4. เปิด Server runkconf แล้วเปลี่ยนชื่อโฟลเดอร์ 'นำเข้าต้นแบบ' เป็น 'นำเข้า'5. เปิด Server runkconf ที่เปิดแฟ้ม 'char_athena.conf' ด้วย notepad และค้นหานี้: เซิร์ฟเวอร์สื่อสารชื่อผู้ใช้และรหัสผ่านผู้ใช้: s1 (เปลี่ยน 's1' สิ่งที่คุณต้อง แต่ที่นี่ใช้ 'ชื่อ' เป็นผู้ใช้งานสำหรับการกวดวิชาเฉพาะ)รหัสผ่าน: p1 (เปลี่ยน 'p1' สิ่งที่คุณต้อง แต่ที่นี่ผมใช้ 'รหัสผ่าน' รหัสผ่าน) * หมายเหตุ: การกรอกชื่อผู้ใช้และรหัสผ่านฉันทำ เพื่อป้องกันข้อผิดพลาดของมนุษย์ เพราะถ้าคุณใส่ไม่ถูกต้องผู้ใช้ และไม่สามารถสร้างรหัสผ่านการเชื่อมต่อเซิร์ฟเวอร์เข้าสู่ระบบและแผนที่ login_ip: 127.0.0.1 (เอา ' / /' หน้า login_ip: 127.0.0.1 เพื่อให้ดูเช่นนี้ login_ip: 127.0.0.1) char_ip: 127.0.0.1 (เอา ' / /' หน้า char_ip: 127.0.0.1 เพื่อให้ดูเช่นนี้ char_ip: 127.0.0.1) เมื่อคุณบันทึกไว้6. ยังคงอยู่ในเซิร์ฟเวอร์ Server runkconf คุณเปิดแฟ้ม 'inter_athena.conf' แผ่นจดบันทึกและค้นหาทั้งหมดนี้: sql.db_username: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็นชื่อผู้ใช้ MySQL ซึ่งจะ ใช้ค่าเริ่มต้น 'ราก')sql.db_password: ร็อค (เปลี่ยน 'แร็คนาร็อค"เป็นรหัสผ่าน MySQL ซึ่งจะ ใช้ค่าเริ่มต้น 'ราก')sql.db_database: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'rathena' เพราะหลังจากเราทำฐานข้อมูลโดยใช้ชื่อ 'rathena')char_server_id: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')char_server_pw: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')char_server_db: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'rathena')map_server_id: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')map_server_pw: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')map_server_db: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'rathena')log_db_id: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')log_db_pw: ร็อค (เปลี่ยน 'แร็คนาร็อค' เป็น 'ราก')log_db_db: ร็อค (นี้หนึ่งคุณเปลี่ยนเป็น 'ล็อก' เพราะหลังจากเราทำให้ 'ล็อก' เมื่อคุณได้ทำบันทึกไว้7. ยังคงอยู่ในเซิร์ฟเวอร์ Server runkconf ตอนนี้ คุณเปิดแฟ้ม 'map_athena.conf' แผ่นจดบันทึก และค้นหา: รหัสผ่าน interserver สื่อสาร การตั้งค่าใน account.txt (หรือเทียบเท่า)ผู้ใช้: s1 (เปลี่ยน 's1' เป็น 'ชื่อ' เนื่องจาก ตามที่ผมอธิบายในค่ามีก่อน)รหัสผ่าน: p1 (เปลี่ยน 'p1' เป็น 'รหัสผ่าน' เนื่องจาก ตามที่ผมอธิบายในค่ามีก่อน)อักขระเซิร์ฟเวอร์ IPเซิร์ฟเวอร์แผนที่เชื่อมต่อกับเซิร์ฟเวอร์อักขระโดยใช้ที่อยู่ IP นี้หมายเหตุ: นี้เป็นประโยชน์เมื่อคุณกำลังทำงานอยู่หลังไฟร์วอลล์ หรืออยู่เครื่องประกอบ ด้วยอินเทอร์เฟซหลายchar_ip: 127.0.0.1 (เอา ' / /')แผนที่เซิร์ฟเวอร์ IPอยู่ IP ไคลเอนต์จะใช้การเชื่อมต่อตั้งค่านี้เป็นที่อยู่ IP สาธารณะของเซิร์ฟเวอร์ของคุณคืออะไรmap_ip: 127.0.0.1 (เอา ' / /') ทำบันทึกการ8. ยังคงอยู่ในเซิร์ฟเวอร์ Server runkconf ตอนนี้ คุณเปิดแฟ้ม 'subnet_athena.conf' ด้วย notepad และเปลี่ยนแปลง: เครือข่าย: 255.0.0.0:127.0.0.1:127.0.0.1 คุณต้องค้นหาเครือข่ายของคุณ โดยการเปิด 'พร้อมท์คำสั่ง'(เมนูเริ่มต้น > โปรแกรมทั้งหมด > อุปกรณ์เสริม > พร้อมรับคำสั่ง)หลังจากที่คุณเปิดพร้อมท์คำสั่งของคุณ พิมพ์นี้ ' -ipconfig'มันจะเป็นดังนี้ untitled.png9. เปิดการปรับแต่ง MySQL ดับเบิลคลิกที่ 'ท้องถิ่นอย่าง MySQL' ในรูปภาพเพื่อเปิด ป้อนรหัสผ่านของคุณซึ่งเป็น 'ราก'ถ้าคุณไม่ เปลี่ยนแปลงในครั้งแรกที่คุณติดตั้งsql1.png10. คลิก "สร้างแผนใหม่" เหมือนในรูปภาพด้านล่างเพื่อสร้างใหม่ 'เค้าร่าง' ชื่อเรื่อง 'rathena' แล้วคลิก 'ใช้' และแล้ว 'ใช้' และ 'เสร็จสิ้น' ตอนนี้ปิด และเปิดใหม่ปรับแต่ง MySQL ของคุณsql2.png11. ทำซ้ำขั้นตอน 10 แต่ชื่อเค้าร่างเป็น 'ล็อก' แล้วคลิก 'ใช้' แล้ว 'ใช้' และ 'เสร็จสิ้น' ตอนนี้ ปิด และเปิดของคุณปรับแต่ง MySQL 12. ใส่อีกให้คุณ 'ท้องถิ่นอย่าง MySQL' เหมือนขั้นตอน 9 คลิกสองครั้ง 'rathena' เพื่อเลือก และจากนั้น คลิก 'แฟ้ม'และเลือก 'เปิดสคริปต์ SQL" และไปยังแฟ้ม rAthena runksql และเปิด 'main.sql' คลิกเปิดคลิ ก 'ปุ่มฟ้าผ่า' ในภาพด้านล่าง รอจนมันทำ และปรับแต่ง MySQL ของคุณปิด และเปิดอีกครั้งเพื่อรีเฟรช ทำซ้ำขั้นตอนที่ 12 แต่ตอนนี้ 'เปิดสคริปต์ SQL' ของคุณและไปยังแฟ้ม rAthena runksql 'logs.sql' คลิกเปิด และคลิก "ปุ่มฟ้าผ่า' ในภาพด้านล่าง รอจนมันทำ และปรับแต่ง MySQL ของคุณปิด และเปิดอีกครั้งเพื่อรีเฟรช sql3.png13. หลัง จากที่คุณเปิดการปรับแต่ง MySQL ใหม่ คลิกสองครั้ง 'rathena' แล้ว คลิกสองครั้ง 'ตาราง' ค้นหา 'ล็อก' คลิกขวาบนมัน และเลือก 'เลือกแถว – วงเงิน 1000' เหมือนภาพด้านล่าง:sql4.png14. เปลี่ยน 's1' และ 'p1' ในตารางด้านขวา 'ชื่อ' และ 'รหัสผ่าน' โดยคลิกสองครั้งในแต่ละของพวกเขา และพิมพ์ เหมือนรูปภาพด้านล่าง เมื่อคุณคลิก 'ใช้' แล้ว 'ใช้' และ 'เสร็จสิ้น' sql5.png15. ตอนนี้เปิดโฟลเดอร์ Server runksrccommon และ mmo.h คลิกขวาเลือกแก้ไข และค้นหาบรรทัดนี้#define PACKETVER YYYYMMDD เปลี่ยนแปลงกับรุ่นวันที่คุณเลือกสำหรับไคลเอ็นต์ของคุณก่อนตัวอย่าง:#define PACKETVER 20130703 (ฉัน ragexe ไคลเอนต์เป็น 2013-07-03aRagexe.exe ที่ว่าทำไมเขียน 20130703)และบันทึก15. วันนี้ลองคอมไพล์ใหม่เซิร์ฟเวอร์ของคุณ เปิดคลิกขวา Server runk ' rAthena-10.sln' เปิด ด้วย Microsoft Visual c ++ 16. เปลี่ยน 'ดีบัก' เป็น 'ปล่อย' เช่นภาพด้านล่างvisual1.png 17. บล็อค (เลือก) อักขระ server.sql เข้าสู่ระบบ server.sql แผนที่ server.sql, mapcache แล้วคลิกขวา และเลือก 'สร้างตัวเลือก' เช่นในภาพด้านล่าง: visual2.png18. ไปที่ Server runkdb ของคุณ และเปิดแฟ้ม 'packet_db.txt' ด้วย notepad เพิ่มบรรทัดนี้ล่าง Ragexe 2013-07-03packet_ver: 380x0369, 7, actionrequest, 2:60x083C, 10, useskilltoid, 2:4:60x0437, 5, walktoxy, 20x035F, 6, ticksend, 20x0930, 5, changedir, 2:40x07E4, 6, takeitem, 20x0362, 6, dropitem, 2:40x07EC, 8, movetokafra, 2:40x0364, 8, movefromkafra, 2:40x0438, 10, useskilltopos, 2:4:6:80x0366, 90, useskilltoposinfo, 2:4:6:8:100x096A, 6, getcharnamerequest, 20x0368, 6, solvecharname, 20x0838, 12, searchstoreinfolistitemclick, 2:6:100x0835, 2, searchstoreinfonextpage, 00x0819, -1, searchstoreinfo, 2:4:5:9:13:14:150x0811, -1, reqtradebuyingstore, 2:4:8:120x0202, 6, reqclickbuyingstore, 20x0817, 2, reqclosebuyingstore, 00x0815, -1, reqopenbuyingstore, 2:4:8:9:890x0365, 18, bookingregreq, 2:4:60X0363, 8 CZ_JOIN_BATTLE_FIELD0x0281, -1, itemlistwindowselected, 2:4:8:120x022D, 19, wanttoconnection, 2:6:10:14:180x0802, 26, partyinvite2, 20X0436, 4 CZ_GANGSI_RANK0x0360, 26, friendslistadd, 20x094A, 5, hommenu, 2:40x0873, 36, storagepassword, 2:4:20 ถ้าคุณเลือกวันอื่นของ ragexe ของคุณ คุณสามารถค้นหา 'แพ็คเก็ต' ในการเชื่อมโยงนี้http://rathena.org/board/topic/82726-2013-ragexe-and-diff-up-to-date-2013-07-03/ เพียงคัดลอก และวางการ 'packet_db.txt' ของคุณเช่นฉันไม่19. ตอนนี้คุณพร้อมที่จะเริ่มต้นเซิร์ฟเวอร์ของคุณ เปิด rAthena runk และเปิดแฟ้ม ' runserver-sql.bat' รอโหลดเซิร์ฟเวอร์ทั้งหมดเช่นรูปภาพด้านล่าง:server.png20. ตอนนี้ ไปยังไคลเอนต์ของคุณเกราะโฟลเดอร์และเปิด 'Loki.exe' ในหน้าจอเข้าสู่ระบบคุณสามารถสร้างบัญชี โดยดำเนินการดังนี้ในรหัส คุณสามารถกรอกข้อมูล ID ของคุณกับชาย _M _F สำหรับเพศหญิงcreateid.pngและป้อนรหัสผ่านของคุณ แล้ว หลังจากนั้นคุณสามารถเข้าสู่รหัสของคุณโดยไม่ต้อง _M _F อีก 21. บาง Screenshoot ในเกมscreenragnarok005.jpg screenragnarok000.jpgผมคิดว่า เป็นผู้ชายทั้งหมด ขออภัยในความผิดพลาดและโชคดีที่สร้าง /gawi ของแร็คนาร็อคโลกใด ๆอย่าลืม clik ปุ่ม rep_up_zps4d092215.png ถ้าพบ /rice ประโยชน์ลงและ thx นี้สำหรับอ่าน /shy บทสอนนี้ไม่ดี________________________________________________________________________________________________________หมายเหตุ: ทำขั้นตอนนี้เท่านั้นถ้าคุณพบปัญหาด้านล่างปัญหาที่ 1:ตั้งค่าวิธีการแก้ปัญหา: มีขาดไฟล์ใน clientsystemlua514 เกราะที่ชื่อไฟล์เป็น optioninfo.lubคุณอาจดาวน์โหลดได้จากที่นี่ และใส่ในโฟลเดอร์นั้น ปัญหาที่ 2:ปัญหา 'queryNavi_Distance_Map': ไป files
avigation ข้อมูลโฟลเดอร์ TranslationDataluafiles514lua แล้วลบไฟล์ด้านล่างนี้:navi_linkdistance_krpri.lubnavi_linkdistance_krsak.lubnavi_npcdistance_krpri.luanavi_npcdistance_krsak.lua_________________________________________________________________________________________________________แก้ไข:-ขาดการเพิ่มขั้นตอนในไคลเอนต์-เพิ่มใหม่แฟ้มการตั้งค่าที่เปิดจาก Ai4rei-ขาดการเพิ่มขั้นตอนในเซิร์ฟเวอร์ (ทำซ้ำขั้นตอนที่ 12 แต่ตอนนี้คุณ 'เปิดสคริปต์ SQL' และไปเปิดแฟ้ม rAthena runksql 'logs.sql' ต้องเปิด และคลิก "ปุ่มฟ้าผ่า' ในภาพด้านล่าง รอจนมันทำ และปรับแต่ง MySQL ของคุณปิด และเปิดอีกครั้งเพื่อรีเฟรช)-แก้ไขบางขั้นตอนในเกี่ยวกับ grf สร้างเนื่องจากหากเปลี่ยนอุปกรณ์ไปหลับก่อน แล้วผสานให้ query_navi_map ข้อผิดพลาด แต่ไม่ต้องกังวลตอนนี้ขั้นตอนถูกต้อง-ขั้นตอนที่ขาดหายไปเกี่ยวกับการดาวน์โหลด 'โฟลเดอร์แปลข้อมูล' จากลิงค์เก็บเพิ่ม-แก้ไขคำบางคำที่ไม่ชัดเจน และแก้ไขการเชื่อมโยงเก็บ-ลบมุม fixcamera จากรายการโปรแกรมปรับปรุงเนื่องจากสำหรับกะคลิกขวาออก และเพิ่มบางหมายเหตุเกี่ยวกับการตั้งค่าความละเอียดของปัญหา-แก้ไขการเชื่อมโยงแฟ้ม xdiff
การแปล กรุณารอสักครู่..

1. Create new folder and name it ‘Server’
2. right-click on ‘Server’ folder and choose ‘SVN checkout…’
3. Fill this link (https://rathena.svn....vnroot/rathena/)
in “url of repository” and click ok, this will download your server files from latest
rathena server. After complete click ok.
4. Open Server runkconf then rename ‘import-tmpl’ folder into ‘import’
5. Open Server runkconf 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 runkconf 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 runkconf 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 runkconf 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
untitled.png
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.
sql1.png
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.
sql2.png
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 runksql-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 runksql-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.
sql3.png
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:
sql4.png
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’
sql5.png
15. Now Open folder Server runksrccommon 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 runk right-click ‘rAthena-10.sln’ open with Microsoft Visual c++
16. Change the ‘debug’ into ‘release’ like the picture below.
visual1.png
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:
visual2.png
18. Go to your Server runkdb and open file ‘packet_db.txt’ with notepad and add this line in bottom
//2013-07-03 Ragexe
packet_ver: 38
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0437,5,walktoxy,2
0x035F,6,ticksend,2
0x0930,5,changedir,2:4
0x07E4,6,takeitem,2
0x0362,6,dropitem,2:4
0x07EC,8,movetokafra,2:4
0x0364,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x096A,6,getcharnamerequest,2
0x0368,6,solvecharname,2
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0835,2,searchstoreinfonextpage,0
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0202,6,reqclickbuyingstore,2
0x0817,2,reqclosebuyingstore,0
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0365,18,bookingregreq,2:4:6
// 0x0363,8 CZ_JOIN_BATTLE_FIELD
0x0281,-1,itemlistwindowselected,2:4:8:12
0x022D,19,wanttoconnection,2:6:10:14:18
0x0802,26,partyinvite2,2
// 0x0436,4 CZ_GANGSI_RANK
0x0360,26,friendslistadd,2
0x094A,5,hommenu,2:4
0x0873,36,storagepassword,2:4:20
If you choose another date of your ragexe you can find your ‘packet’ in this link
http://rathena.org/board/topic/82726-2013-ragexe-and-diff-up-to-date-2013-07-03/
Just copy and paste it to your ‘packet_db.txt’ like I did.
19. Now you are ready to start your server, open rAthena runk and open file ‘runserver-sql.bat’ wait until all server loaded like the pic
below:
server.png
20. Now go to your kRO client Folder and open ‘Loki.exe’ in the login screen you can create account by doing this;
In ID you can fill your ID with _M for male and _F for female
createid.png
And then input your password, After that you may login to your id without _M or _F anymore.
21. Some Screenshoot in the game
screenragnarok005.jpg
screenragnarok000.jpg
I think that's all guys. sorry for any mistake and good luck creating your own Ragnarok World /gawi
don't forget to clik the rep_up_zps4d092215.png button if you found this post useful /rice and thx for reading this bad tutorial /shy
________________________________________________________________________________________________________
Note: only do this step if you found the problem below.
Problem 1:
setup resolution problem: there is missing file in kRO clientsystemlua514 that file name is optioninfo.lub
you may download from here and put on that folder.
Problem 2:
'queryNavi_Distance_Map' problem: go to Data Folder TranslationDataluafiles514lua files
avigation then deleted the file below:
navi_linkdistance_krpri.lub
navi_linkdistance_krsak.lub
navi_npcdistance_krpri.lua
navi_npcdistance_krsak.lua
_________________________________________________________________________________________________________
edited :
- adding missing step in client
- adding new file Open Setup from Ai4rei
- adding missing step in server (repeat step 12 but now you 'Open SQL Script’ and go to rAthena runksql-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
- fix xdiff files link
การแปล กรุณารอสักครู่..
