forked from rathena/rathena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
180 lines (148 loc) · 6.71 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
//============================================================
//= rAthena Readme File
//===== By: ==================================================
//= rAthena Dev Team
//===== Last Updated: ========================================
//= 20131112
//===== Description: =========================================
//= Basic information and installation guide with links to
//= various forum posts and Wiki articles.
//============================================================
============================
|| Table of Contents ||
============================
|| 1. What is rAthena? ||
|| 2. Prerequisites ||
|| 3. Installation ||
|| 4. Troubleshooting ||
|| 5. Helpful Links ||
|| 6. More Documentation ||
============================
============================
|| 1. What is rAthena? ||
============================
rAthena is a collaborative software development project revolving around the
creation of a robust massively multiplayer online role playing game (MMORPG)
server package. Written in C, the program is very versatile and provides NPCs,
warps and modifications. The project is jointly managed by a group of volunteers
located around the world as well as a tremendous community providing QA and
support. rAthena is a continuation of the eAthena project.
============================
|| 2. Prerequisites ||
============================
Before installing rAthena there are certain tools and applications you will need.
This differs between the varying operating systems available, so the following
is broken down into Windows and Linux prerequisites.
Windows
* MySQL (http://www.mysql.com/downloads/mysql/)
* MySQL Workbench (http://www.mysql.com/downloads/workbench/)
* MS Visual C++ (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express)
* TortoiseGIT (http://code.google.com/p/tortoisegit/)
* MSysGit (http://code.google.com/p/msysgit/downloads/ or https://github.com/msysgit/git/releases)
Linux (names of packages may require specific version numbers on certain distributions)
* gcc
* make
* mysql
* mysql-devel
* mysql-server
* pcre-devel
* zlib-devel
* git
============================
|| 3. Installation ||
============================
This section is a very brief set of installation instructions. For more concise guides
relevant to your Operation System, please refer to the Wiki (links at the end of this file).
Windows
* Install prerequisites
* Create a folder to download rAthena into (e.g. C:\rAthena)
* Right click this folder and select "Git Clone"
* Paste the GitHub URL into the box:
https://github.com/rathena/rathena.git
* Open MySQL Workbench and create an instance to connect to your MySQL Server
* Create a database (rathena), a user (rathena), give permissions (GRANT SELECT,INSERT,UPDATE,DELETE)
and then login using the new user
* Use MySQL Workbench to run the .sql files in /sql-files/ on the new rathena database
Linux
* Type:
(For CentOS)
yum install gcc make mysql mysql-devel mysql-server pcre-devel zlib-devel
rpm -Uvhhttp://repo.webtatic.com/yum/centos/5/latest.rpm
yum install --enablerepo=webtatic git-all
yum install --enablerepo=webtatic --disableexcludes=main git-all
(For Debian)
apt-get install git make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev
* Type:
mysql_secure_installation
* Start your MySQL server
* Setup a MySQL user:
CREATE USER 'rathena'@'localhost' IDENTIFIED BY 'password';
* Assign permissions:
GRANT SELECT,INSERT,UPDATE,DELETE ON `rathena\_rag`.* TO 'rathena'@'localhost';
* Clone a GIT repository:
git clone https://github.com/rathena/rathena.git ~/rathena
* Insert SQL files:
mysql --user=root -p rathena_rag < trunk/sql-files/main.sql (and others)
* Configure and compile:
./configure && make clean && make sql
* When you're ready, start the servers:
./athena-start start
============================
|| 4. Troubleshooting ||
============================
If you're having problems with starting your server, the first thing you should
do is check what's happening on your consoles. More often that not, all support issues
can be solved simply by looking at the error messages given.
Examples:
1.) You get an error on your map-server that looks something like this:
[Error]: npc_parsesrcfile: Unable to parse, probably a missing or extra TAB in
file 'npc/custom/jobmaster.txt', line '17'. Skipping line...
* w1=prontera,153,193,6 script
* w2=Job Master
* w3=123,{
* w4=
If you look at the error, it's telling you that you're missing (or have an extra) TAB.
This is easily fixed by looking at this part of the error: * w1=prontera,153,193,6 script
If there was a TAB where it's supposed to be, that line would have prontera,153,193,6 at w1
and 'script' at w2. As there's a space instead of a TAB, the two sections are read as a
single parameter.
2.) You have a default user/password warning similar to the following:
[Warning]: Using the default user/password s1/p1 is NOT RECOMMENDED.
[Notice]: Please edit your 'login' table to create a proper inter-server user/pa
ssword (gender 'S')
[Notice]: and then edit your user/password in conf/map_athena.conf (or conf/impo
rt/map_conf.txt)
Relax. This is just indicating that you're using the default username and password. To
fix this, check over the part in the installation instructions relevant to the `login` table.
3.) Your map-server outputs the following:
[Error]: make_connection: connect failed (socket #2, error 10061: No connection
could be made because the target machine actively refused it.
)!
If this shows up on the map server, it generally means that there is no Char Server available
to accept the connection.
============================
|| 5. Helpful Links ||
============================
* rAthena Forums
http://rathena.org/
* GIT Repository
https://github.com/rathena/rathena
* Full Installation Instructions
Windows http://rathena.org/wiki/Installation_on_Windows
CentOS http://rathena.org/wiki/Installation_(CentOS)
Debian http://rathena.org/wiki/Installation_(Debian)
FreeBSD http://rathena.org/wiki/Installation_(FreeBSD)
* rAthena IRC Channel
irc://irc.rizon.net/rathena
* rAthena Wiki
http://rathena.org/board/index.php?app=ipbwiki
* Fork and Pull Request Q&A
http://rathena.org/board/topic/86913-pull-request-qa/
============================
|| 6. More Documentation ||
============================
rAthena has a large collection of help files and sample NPC scripts located in the /doc/
directory. These include detailed explanations of NPC script commands, atcommands (@),
group permissions, item bonuses, and packet structures, among many other topics. We
recommend that all users take the time to look over this directory before asking for
assistance elsewhere.