summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-23 00:05:15 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-06-23 00:08:51 -0700
commitedbbbc19ba6f636aee19890aba2ec082d45c1034 (patch)
tree38be76db1e67c1fe8261e71b186976fcb7177c08
parent6f8a71981ea64fe5559a47a11daa3365926c89f0 (diff)
downloadserverdata-edbbbc19ba6f636aee19890aba2ec082d45c1034.tar.gz
serverdata-edbbbc19ba6f636aee19890aba2ec082d45c1034.tar.bz2
serverdata-edbbbc19ba6f636aee19890aba2ec082d45c1034.tar.xz
serverdata-edbbbc19ba6f636aee19890aba2ec082d45c1034.zip
Makefile to copy nonexisting conf files, and change defaults to localhost
-rw-r--r--Makefile10
-rw-r--r--login/conf/ladmin_local.conf.example6
-rw-r--r--login/conf/login_local.conf.example2
-rw-r--r--world/conf/char_local.conf.example4
-rw-r--r--world/map/conf/map_local.conf.example4
5 files changed, 17 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index dc5b5e29..5b593c8f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,12 @@
-.PHONY: maps
+.PHONY: all maps conf
+all: maps conf
maps:
ant -f tools/tmwcon/build.xml
java -jar tools/tmwcon/converter.jar client-data/ world/map/
+% : | %.example
+ cp "$|" "$@"
+conf: \
+login/conf/login_local.conf login/conf/ladmin_local.conf login/save/gm_account.txt login/save/account.txt \
+world/map/conf/map_local.conf world/map/conf/battle_local.conf world/map/conf/motd.txt world/map/conf/help.txt world/map/conf/atcommand_local.conf \
+world/conf/char_local.conf
+
diff --git a/login/conf/ladmin_local.conf.example b/login/conf/ladmin_local.conf.example
index b3f88e8d..a0706b2b 100644
--- a/login/conf/ladmin_local.conf.example
+++ b/login/conf/ladmin_local.conf.example
@@ -1,9 +1,9 @@
// Athena Ladmin local configuration file.
-
+
// Login Server IP
-login_ip:217.172.177.27
+login_ip:127.0.0.1
// Login Server Port
-login_port: 6900
+login_port: 6901
// Administrative password, used to connect remotely to server.
// NOTICE: If you enable remote administration, you should change its value for security
diff --git a/login/conf/login_local.conf.example b/login/conf/login_local.conf.example
index 3c9a6cce..37c7713f 100644
--- a/login/conf/login_local.conf.example
+++ b/login/conf/login_local.conf.example
@@ -8,7 +8,7 @@ admin_state: 1
// Administrative password, used by ladmin (perl software) to connect remotely to server.
// NOTICE: If you enable remote administration, you should change its value for security
-admin_pass: p1
+admin_pass: admin
// Indicate the IP that the server accepts for remote administration.
// put: 'all', or 'xxx.xxx.' (begin of an ip finished by '.' or a complete ip),
diff --git a/world/conf/char_local.conf.example b/world/conf/char_local.conf.example
index 1d55c977..168b5155 100644
--- a/world/conf/char_local.conf.example
+++ b/world/conf/char_local.conf.example
@@ -11,12 +11,12 @@ server_name: The Mana World
wisp_server_name: Server
// Login Server IP
-login_ip:81.161.192.4
+login_ip:127.0.0.1
// Login Server Port
login_port: 6901
// Character Server IP
-char_ip:81.161.192.4
+char_ip:127.0.0.1
// Character Server Port
char_port: 6122
diff --git a/world/map/conf/map_local.conf.example b/world/map/conf/map_local.conf.example
index 0f09bf59..493d8718 100644
--- a/world/map/conf/map_local.conf.example
+++ b/world/map/conf/map_local.conf.example
@@ -5,11 +5,11 @@ userid: s1
passwd: p1
// Character Server IP
-char_ip:81.161.192.4
+char_ip:127.0.0.1
// Character Server Port
char_port: 6122
// Map Server IP
-map_ip:81.161.192.4
+map_ip:127.0.0.1
// Map Server Port
map_port: 5122