Page 1 of 1

PostPosted: Wed Jun 07, 2006 11:07 pm
by codemaster
Note: If you do not know what MySQL is (you do not necessarily have to know how to use it) and if you do not know how to use basic command-prompt functions (such as cd, dir, etc.) I do not recommend you starting a qrRO Server. Also, you must follow the naming guide-lines (all low-rate servers are named A1, B2, etc. and all standard-qrRO rates are named after Chrono Trigger characters); you are not allowed to modify and EXP rates or NPCs without my permission.

Step 1. Obtain the server package from here and unrar it into a folder of your choice (such as I will be using C:/qrROServer/ for this how-to)

Step 2. Install MySQL (you can get the newest versions here). Make sure you remember your root password, because that is what we will use to configure the qrRO Server with.

Step 3. Install MySQL Control Center or, if you prefer, MySQL Query Browser so that you may run MySQL queries at your whim ;)

Step 4. Open a command prompt and change to your MySQL directory, then change to the bin directory within the MySQL directory (usually, this is something like C:\Program Files\MySQL\MySQL Server x.y\bin\, where x.y is your MySQL version)

Step 4b. If you downloaded MySQL 5 or greater, you will have to do a extra step (no, it's not a bad thing you have version 5). Type in the following two commands, replacing my_password with your root password.
Command Prompt wrote:mysql.exe -uroot -pmy_password


Command Prompt wrote:SET PASSWORD FOR root@localhost = OLD_PASSWORD('my_password');


This makes MySQL 5 have a password that works with the qrRO Servers, which use the old MySQL 4 formatting (so you dont have to constantly upgrade).

Step 5. In the command prompt, type the command below, replacing my_password with your root password and replacing "C:/qrROServer/MySQL.sql" with the actual location of the MySQL.sql script that came with the server package.
Command Prompt wrote:mysql.exe -uroot -pmy_password < "C:/qrROServer/MySQL.sql"


This will create the ragnarok and log databases with the required tables you need to host the server. You can now close the command prompt.

Step 6. Navigate to the folder where you storing your server files (like I said, I'm using C:/qrROServer/ for this example), and then into the conf folder (you wont have to mess with anything else in this folder except the files in the conf directory).

Step 7. Open char_athena.conf and map_athena.conf in notepad (or wordpad, if you prefer). In each file, replace SERVER_USERNAME with the server username and SERVER_PASSWORD with the server password (this will be provided to you by me Codemaster). Replace SERVER_NAME with the name of your server (a bunch of acceptable names can be viewed here). Finally, replace IP_ADDRESS with your WAN IP address (which can be obtained by visiting this website). After you are done configuring the files, save them and close them.

Step 8. Open grf-files.txt. In this file, you will see the default locations of the data.grf, sdata.grf, and qdata.grf. If your Ragnarok Online installation location differs from the locations displayed here, change them to the proper ones, save the files, and close them.

Step 9. If you are not using a router, you can skip this step and move onto step 10; otherwise, keep reading. Open again the char_athena.conf and map_athena.conf files. In these two files, replace all instances of 127.0.0.1 with your LAN IP address (to see what that is, simply run ipconfig from the command-line - normally, a LAN IP is like 192.168.1.100 or 192.168.0.2). Now, open the subnet_athena.conf. In this file, replace 255.0.0.0 with your subnet mask (this can also be found via ipconfig or through your router's settings). Replace 127.0.0.1 again with your LAN IP address.

Step 10. Simply go back to the folder containing all of the server files (just go up a directory) and you should be able to simply run the start_server.bat file to have the server running!

Debugging: If for some reason, the server windows continue to blink open and close, they are crashing and there's a reason why. Try closing both of the infinitespawn programs and attempt to run the char-server.exe and map-sever.exe from the command-line to see what error(s) they reply with.

Updates:
2006/06/13 - 0.901 - Small bugfixes and various updates.

PostPosted: Wed Jun 07, 2006 11:44 pm
by David
this is alot more simple then the old one lol.

PostPosted: Thu Jun 08, 2006 10:31 pm
by codemaster
Note: I will be delaying the server package a day until I fix the HP/SP calculation bug.
Update: The server package should be out by tonight, if all goes well.

PostPosted: Sat Nov 11, 2006 7:31 pm
by Jesus
Okay I'm a bit confused on how you are supposed to 'open command promts'.
How do you do that? :wacko:
Besides that little thing I am set on how to do it.

PostPosted: Sat Nov 11, 2006 9:12 pm
by CrimsonBlade
start, run, cmd

PostPosted: Sat Nov 11, 2006 10:28 pm
by Jesus
LOL! I just ran across the thing when I went to shut down my computer. :rolleyes:
Funny. Thanks for answering though Crimson Blade.

PostPosted: Sun Nov 12, 2006 1:13 pm
by CrimsonBlade
yw but my name is one word