Skip to content

Commit

Permalink
Update conf for tmwa 15.1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
o11c committed Jan 23, 2015
1 parent 1249c68 commit 3667a34
Show file tree
Hide file tree
Showing 17 changed files with 132 additions and 66 deletions.
3 changes: 2 additions & 1 deletion GNUmakefile
Expand Up @@ -9,8 +9,9 @@ maps:
cp "$|" "$@"
conf: world/map/conf/magic-secrets.sex \
login/conf/login_local.conf login/conf/ladmin_local.conf login/save/gm_account.txt login/save/account.txt \
world/conf/char_local.conf \
world/map/conf/map_local.conf world/map/conf/battle_local.conf world/map/conf/motd.txt world/map/conf/atcommand_local.conf world/map/db/const-debugflag.txt \
world/conf/char_local.conf
conf/monitor_local.conf

world/map/conf/magic-secrets.sex: world/map/conf/magic-secrets.sex.template world/map/conf/secrets-build
cd world/map/conf && ./build-magic.sh
Expand Down
1 change: 1 addition & 0 deletions conf/.gitignore
@@ -0,0 +1 @@
/*_local.conf
82 changes: 82 additions & 0 deletions conf/monitor_athena.conf
@@ -0,0 +1,82 @@
// Athena Monitor configuration file.

//////////////////////////////////////////////////////////////////////
// Some notes about the existence of this file:
//
// tmwa-monitor is unused in its current form, but plans are
// to resurrect it in *some* form. See below for what we do use.
// However, an alternative possibility would be to just install config
// files to integrate with some existing daemon-monitoring tool.
//
// THAT SAID, blindly restarting a server that exited in an unknown
// way is a really great way to get unrecoverable savefile corruption.
// For this reason, we only auto-restart the map server, which only
// persists some unimportant global variables such as high scores.
// Besides, the other servers are stable enough that they rarely crash.
//
// This monitor names three "server"s, but they are just arbitrary.
// This is not enough for the case of multiple worlds,
// and is too much for the case of worlds running as different users.
//
// Currently the server variables are pointing to local shell scripts
// (which are themselves deprecated and print a flashing message),
// which is necessary because the actual servers need to be run inside
// the appropriate dir to read conf and read/write savefiles from/to
// the correct location. This will get better once savefiles get put
// in $localstatedir (i.e. /var), but it's not yet known how that
// should interact with multiple worlds running at the same time.
//
// Likely, however, this will depend on the ability to pass a config
// file as an argument to the servers.
//
// The workdir setting would make a lot more sense if this file was
// installed in $sysconfdir (i.e. /etc) by tmwa's `make install`,
// which is still planned but hasn't happened yet, but makes *less*
// sense if the servers install their config there.
//
// And regardless, we need to allow per-server workdirs, including
// multiple instances, and possible pre/post scripts and exit/signal
// status handlers. But all that seems complicated, leading back to
// "shouldn't we just use an existing daemon manager?".
//
// Alternatively, we could act like an XDG application, which is
// admittedly somewhat odd if you're a daemon, but would at least
// clarify what happens if you run the servers as a user (which we
// do always. When an init script is written, it should run as
// somebody other than root!).
//
//////////////////////////////////////////////////////////////////////
//
// What we actually use instead of tmwa-monitor:
//
// On the main server, we run a tmux session, with one window
// for each server and for each bot. The servers are run directly
// from inside the appropriate directory.
//
// The test server is like the main server without bots, but instead
// of running `tmwa-map` directly, we use the tmwa-map-wrapper script
// from tools/, which restarts the server whenever it exits and merges
// tagged patches from github, except that it does no merges if the
// server exited too quickly after the restart.
//
// On local dev machines, we usually use the `./run-all` script from
// this repo.
//
//////////////////////////////////////////////////////////////////////


// Binary to use with message "forked login server".
login_server: ./login-server

// Binary to use with message "forked char server".
char_server: ./char-server

// Binary to use with message "forked map server".
map_server: ./map-server

// Directory in which to run the servers.
// If never set, dynamically computed as $HOME/tmwserver
//workdir: /path/to/tmwa-server-data

// local settings for this nonserver in this file
import: conf/monitor_local.conf
1 change: 1 addition & 0 deletions conf/monitor_local.conf.example
@@ -0,0 +1 @@
// Athena Monitor local configuration file.
6 changes: 6 additions & 0 deletions conf/tmwa-monitor.conf
@@ -0,0 +1,6 @@
// Master config file for The Mana World Athena (monitor component)
// This file is used since version 14.x.y, but major changes in 15.x.y

// tmwa-monitor is deprecated, see comments in the below file

monitor_conf: conf/monitor_athena.conf
24 changes: 0 additions & 24 deletions login/conf/login_athena.conf
Expand Up @@ -16,14 +16,6 @@ gm_account_filename_check_timer: 15
// General log.
login_log_filename: log/login.log

// Log for unknown packets.
login_log_unknown_packets_filename: log/login_unknown_packets.log

// Are unknown packets from the client saved?
// (unknown internal packets are always saved)
// This is not nice to your hard drive.
save_unknown_packets: no

// Print basic header information about incoming client packets.
// Also print a little more about client or char auth attempts.
display_parse_login: no
Expand All @@ -41,22 +33,6 @@ display_parse_fromchar: 0
// 0: all players, 1-99: GM level at least this.
min_level_to_connect: 0

// Behavior of relative time adjustments for unlimited accounts.
// If true, ladmin timeadd will first set the limit to right now.
// If false, ladmin timeadd will do nothing on unlimited accounts.
// In either case, you can use ladmin timeset.
add_to_unlimited_account: off

// Time, in seconds, that a new account has before it expires.
// Set to -1 for unlimited time.
// Use of this setting is not condoned by The Mana World.
//start_limited_time: -1

// Check that a player has the same IP when switching from login to char.
// To use this, your lan_support.conf files MUST be correct.
// Disabling this setting is not supported.
check_ip_flag: yes

// How the IP allow/deny lists (below) are interpreted.
// Possible values:
// "deny, allow" (default):
Expand Down
6 changes: 6 additions & 0 deletions login/conf/tmwa-admin-old.conf
@@ -0,0 +1,6 @@
// Master config file for The Mana World Athena (admin component)
// This file is used since version 14.x.y

version-lt: 15.1.23

import: conf/ladmin_athena.conf
7 changes: 5 additions & 2 deletions login/conf/tmwa-admin.conf
@@ -1,4 +1,7 @@
// Master config file for The Mana World Athena (admin component)
// This file is used since version 14.x.y
// This file is used since version 14.x.y, but major changes in 15.x.y

import: conf/ladmin_athena.conf
import: conf/tmwa-admin-old.conf
version-ge: 15.1.23

admin_conf: conf/ladmin_athena.conf
7 changes: 7 additions & 0 deletions login/conf/tmwa-login-old.conf
@@ -0,0 +1,7 @@
// Master config file for The Mana World Athena (login component)
// This file is used since version 14.x.y

version-lt: 15.1.23

import: conf/login_athena.conf
import: conf/lan_support.conf
9 changes: 6 additions & 3 deletions login/conf/tmwa-login.conf
@@ -1,5 +1,8 @@
// Master config file for The Mana World Athena (login component)
// This file is used since version 14.x.y
// This file is used since version 14.x.y, but major changes in 15.x.y

import: conf/login_athena.conf
import: conf/lan_support.conf
import: conf/tmwa-login-old.conf
version-ge: 15.1.23

login_conf: conf/login_athena.conf
login_lan_conf: conf/lan_support.conf
14 changes: 0 additions & 14 deletions world/conf/char_athena.conf
Expand Up @@ -5,11 +5,6 @@
// of just under 1024 per server (but a world may be many servers).
max_connect_user: 0

// Check that a player has the same IP when switching from char to map.
// To use this, your lan_support.conf files MUST be correct.
// Disabling this is not supported.
check_ip_flag: yes

// Interval, in seconds, between saves of the flatfile databases.
autosave_time: 300

Expand All @@ -23,15 +18,6 @@ start_point: 029-2.gat,22,24
// Log Filename
char_log_filename: log/char.log

// Manage possible letters/symbol in the name of charater.
// Control character (0x00-0x1f) are never accepted. Possible values are:
// 0: no restriction (builtin default, but please don't use)
// 1: only letters/symbols in 'char_name_letters' option
// 2: Letters/symbols in 'char_name_letters' option are forbidden.
// All others are possible (please don't use this).
// Setting this to anything but 1 is not recommended.
char_name_option: 1

// Set the letters/symbols that you want use with 'char_name_option'.
// This is a cumulative option; specify nothing to reset it.
// Note: if you want to add a space, it can't be at the beginning or end.
Expand Down
3 changes: 0 additions & 3 deletions world/conf/char_local.conf.example
Expand Up @@ -7,9 +7,6 @@ passwd: p1
// Server name, no more than 19 characters
server_name: The Mana World

// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Server

// Login Server IP
login_ip:127.0.0.1
// Login Server Port
Expand Down
8 changes: 8 additions & 0 deletions world/conf/tmwa-char-old.conf
@@ -0,0 +1,8 @@
// Master config file for The Mana World Athena (char component)
// This file is used since version 14.x.y

version-lt: 15.1.23

import: conf/char_athena.conf
import: conf/lan_support.conf
import: conf/inter_athena.conf
10 changes: 6 additions & 4 deletions world/conf/tmwa-char.conf
@@ -1,6 +1,8 @@
// Master config file for The Mana World Athena (char component)
// This file is used since version 14.x.y
// This file is used since version 14.x.y, but major changes in 15.x.y

import: conf/char_athena.conf
import: conf/lan_support.conf
import: conf/inter_athena.conf
import: conf/tmwa-char-old.conf
version-ge: 15.1.23
char_conf: conf/char_athena.conf
char_lan_conf: conf/lan_support.conf
inter_conf: conf/inter_athena.conf
13 changes: 2 additions & 11 deletions world/map/conf/battle_athena.conf
Expand Up @@ -99,8 +99,8 @@ monster_max_aspd: 199
// set to 'Yes', Normal players (gm level 0) can never use a GM command even if you set the command level to 0.
atcommand_gm_only: no

// [GM] Can equip anything? (No or minimum GM level, can cause client errors.)
gm_all_equipment: no
// [GM] Can equip anything? (0 to disable, or minimum GM level, can cause client errors.)
gm_all_equipment: 0

// Should GMs be given a hashed IP instead of the real one?
mask_ip_gms: 1
Expand Down Expand Up @@ -131,9 +131,6 @@ natural_healhp_interval: 6000
// The time interval for SP to restore naturally. (in milliseconds)
natural_healsp_interval: 8000

// Automatic healing skill's time interval. (in milliseconds)
natural_heal_skill_interval: 10000

// The maximum weight for a character to carry when the character stops healing naturally. (in %)
natural_heal_weight_rate: 50

Expand Down Expand Up @@ -211,12 +208,6 @@ prevent_logout: yes
// If skill fails by delay, should it display or not. (Note 1)
display_delay_skill_fail: yes

// Is a monster summoned via dead branch aggresive? (Note 1)
dead_branch_active: yes

// If someone loots, show name in party? (Note 1)
show_steal_in_same_party: no

// How to count the number of the enemies who do an agi penalty...
// 1 or less: It is a count altogether.
// 2: Full evasion exclusion
Expand Down
3 changes: 0 additions & 3 deletions world/map/conf/map_athena.conf
Expand Up @@ -6,9 +6,6 @@ autosave_time: 60
// Message of the day file, when a character logs on, this message is displayed.
motd_txt: conf/motd.txt

// When @help or @h is typed when you are a gm, this is displayed for helping new gms understand gm commands.
help_txt: conf/help.txt

mapreg_txt: save/mapreg.txt

import: npc/scripts.conf
Expand Down
1 change: 0 additions & 1 deletion world/map/conf/tmwa-map.conf
Expand Up @@ -5,7 +5,6 @@
// Older server versions hard-coded the loaders in (mostly) this order,
// and there may still be code dependencies.

// The plan is to turn some of these into just plain 'import' eventually?
map_conf: conf/map_athena.conf
battle_conf: conf/battle_athena.conf
atcommand_conf: conf/atcommand_athena.conf
Expand Down

0 comments on commit 3667a34

Please sign in to comment.