Saturday, December 15, 2012

Hosting Ragnorok Online Private Server using rAthena

OS: Linux (CentOS 6)
Installation date: 14/12/2012
SVN: 17020 ==>This SVN uses 2012-04-10aRagexeRE.exe (we will talk about it later)
Version of RO episode: 14.1

Server Side:

Please follow the tutorial here:
*Please note that the last line of importing sql

mysql -u root -p rathena_log < logs.sql

Should be 

mysql --user=root -p rathena_log < logs.sql

Then everything should go fine.
Type 

cd ~/trunk
./athena-start start

to start your server.

=============
Client Side:

It took me a while to find the original RO game programme.
You can download RO Ep 14.1 here:
or 

Install it.

On your testing client machine (Windows), install SVN by going
download and install.

To download a patcher for generating the main RO exe file, use this ShinsDiffPatcher
open your command line in Windows, type

svn checkout https://subversion.assembla.com/svn/weetools/trunk/ShinsDiffPatcher/ <Replace here your path to download this>

You have to download a Renewal file, and patch it by ShinsDiffPatcher to generate main RO exe.

I tried this

But later I encountered errors using this. There are many people online saying having errors on server as below, and cannot login:

clif_parse: Disconnecting session #7 with unknown packet version (p:0x464d,l:19).

So, I tried other versions. This works. I suggest from the beginning we use this.

Open ShinsDiffPatcher, Choose WeeDiffGenerator from bottom menu, 
"Source executable": "2012-04-10aRagexeRE_J.exe
Choose automatically select. Untick "Read data folder first"
Then "Patch it"-->generated a exe file.

Next we are gonna generate a data file for our "in-house made exe" to use. 
Use GRF builder

Download 
(Version 3.0)

Unzip, 
Edit data/clientinfo.xml, modify the address to your IP

<address>123.123.123.123</address>

Then follow the tutorial from this video on using grf builder (use "data" folder to generate, not including folders like "AI" etc)
This generates a yourfilename.grf

In your official RO installation folder, find data.ini, add 0=yourfilename.grf so that it looks

[Data]
0=yourfilename.grf
2=data.grf

save.

Put the patched EXE and GRF file together to your RO folder. 
Start your server.
Start your EXE file. Bingo.


===========Materials with unknown use============
http://svn6.assembla.com/svn/ClientSide/Packets/Packet_db/

=====Debug======

Q1 # Can play in the LAN, not through the Internet
Reason 1) Did not forward the port if your server is inside the router
---> Forward the 3 ports 6121, 5121, 6900 to your server computer

Reason 2) Edit the Conf files
---> char_athena.conf


// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: xx.xx.xx.xx <<your WAN IP

---> map_athena.conf


// 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: xx.xx.xx.xx<<your WAN IP

Reference to
http://rathena.org/board/topic/58572-probem-on-connection-to-server-with-wan-ip/




No comments:

Post a Comment