· 8 years ago · Apr 27, 2018, 03:48 AM
1################################################
2# SkyFire World Server configuration file #
3################################################
4[worldserver]
5
6# Note to devs, line breaks should be at column 80
7###############################################################################
8# CONNECTIONS AND DIRECTORIES
9#
10# RealmID
11# RealmID must match the realmlist inside the realmd database
12#
13# DataDir
14# Data directory setting.
15# Important: DataDir needs to be quoted, as it is a string which may
16# contain space characters.
17# Example: "@prefix@/share/skyfire_emu"
18#
19# LogsDir
20# Logs directory setting.
21# Important: Logs dir must exists, or all logs need to be disabled
22# Default: "" - no log directory prefix, if used log names isn't
23# absolute path then logs will be stored in current directory.
24#
25# LoginDatabaseInfo
26# WorldDatabaseInfo
27# CharacterDatabaseInfo
28# Database connection settings for the world server.
29# Default:
30# hostname;port;username;password;database
31# .;somenumber;username;password;database
32# - use named pipes in Windows
33# Named pipes: mySQL required adding
34# "enable-named-pipe" to [mysqld] section my.ini
35# .;/path/to/unix_socket;username;password;database
36# - use Unix sockets in Unix/Linux
37#
38# LoginDatabase.WorkerThreads
39# WorldDatabase.WorkerThreads
40# CharacterDatabase.WorkerThreads
41# The amount of worker threads spawned to handle
42# asynchronous (delayed) MySQL statements.
43# Each worker thread is mirrored with its own
44# connection to the MySQL server and their own
45# thread on the MySQL server.
46# Default: 1
47#
48# LoginDatabase.SynchThreads
49# WorldDatabase.SynchThreads
50# CharacterDatabase.SynchThreads
51# Description: The amount of MySQL connections spawned to handle.
52# Default: 1 - (LoginDatabase.WorkerThreads)
53# 1 - (WorldDatabase.WorkerThreads)
54#
55# MaxPingTime
56# Settings for maximum database-ping interval (seconds between pings)
57# Default: 30 - (minutes)
58#
59# WorldServerPort
60# Default WorldServerPort
61#
62# BindIP
63# Bind World Server to IP/hostname
64#
65###############################################################################
66
67RealmID = 1
68DataDir = "Data"
69LogsDir = ""
70LoginDatabaseInfo = "127.0.0.1;3306;root;root;auth"
71WorldDatabaseInfo = "127.0.0.1;3306;root;root;world"
72CharacterDatabaseInfo = "127.0.0.1;3306;root;root;characters"
73LoginDatabase.WorkerThreads = 1
74WorldDatabase.WorkerThreads = 1
75CharacterDatabase.WorkerThreads = 1
76LoginDatabase.SynchThreads = 1
77WorldDatabase.SynchThreads = 1
78CharacterDatabase.SynchThreads = 2
79MaxPingTime = 30
80WorldServerPort = 8085
81BindIP = "0.0.0.0"
82
83###############################################################################
84# SCRIPTING SETTINGS
85#
86# Locale
87# Setting for current (DBC) locale to use
88#
89# EventAI Error reporting
90# Default: 0 - Only startup
91# 1 - Startup errors and Runtime event errors
92# 2 - Startup errors, Runtime event errors, and Creation errors
93#
94###############################################################################
95
96Locale = 0
97EAIErrorLevel = 2
98
99###############################################################################
100# PERFORMANCE SETINGS
101#
102# UseProcessors
103# Processors mask for multi-processor system (Used only in Windows)
104# Default: 0 (selected by OS)
105# number (bitmask value of selected processors)
106#
107# ProcessPriority
108# Process priority setting (Used only at Windows)
109# Default: 1 (HIGH)
110# 0 (Normal)
111#
112# Compression
113# Compression level for update packages sent to client (1..9)
114# Default: 1 (speed)
115# 9 (best compression)
116#
117# PlayerLimit
118# Maximum number of players in the world. Excluding Mods, GMs and Admins
119# Default: 100
120# 0 (for infinite players)
121# If you want to block players and enable Mods, GMs or Admins use
122# DB field realmd.realmlist.allowedSecurityLevel
123#
124# SaveRespawnTimeImmediately
125# Save respawn time for creatures at death and gameobjects at use/open
126# Default: 1 (save creature/gameobject respawn time immediately)
127# 0 (save creature/gameobject respawn time at grid unload)
128#
129# MaxOverspeedPings
130# Maximum overspeed ping count before player kick
131# (minimum is 2, 0 used for disable check)
132# Default: 2
133#
134# GridUnload
135# Unload grids
136# (if you have lot memory you can disable it to speed up
137# player move to new grids second time)
138# Default: 1 (unload grids)
139# 0 (do not unload grids)
140#
141# SocketSelectTime
142# Socket select time (in milliseconds)
143# Default: 10000 (10 secs)
144#
145# SocketTimeOutTime
146# Time in milliseconds afer which a connection sitting idle on the character
147# selection screen is disconnected.
148# Default: 900000 (15 minutes)
149#
150# SessionAddDelay
151# Time in microseconds that a network thread will sleep after authentication
152# protocol and adding a connection to the world session map.
153# Default: 10000 (10 milliseconds, 0,01 second)
154#
155# GridCleanUpDelay
156# Grid clean up delay (in milliseconds)
157# Default: 300000 (5 min)
158#
159# MapUpdateInterval
160# Map update interval (in milliseconds)
161# Default: 100
162#
163# ChangeWeatherInterval
164# Weather update interval (in milliseconds)
165# Default: 600000 (10 min)
166#
167# PlayerSaveInterval
168# Player save interval (in milliseconds)
169# Default: 600000 (10 min)
170#
171# PlayerSave.Stats.MinLevel
172# Minimum level for saving character stats for external usage in database
173# Default: 0 (do not save character stats)
174# 1+ (save stats for characters with level 1+)
175#
176# PlayerSave.Stats.SaveOnlyOnLogout
177# Enable/Disable saving of character stats only on logout
178# Default: 1 (only save on logout)
179# 0 (save on every player save)
180#
181# vmap.enableLOS
182# vmap.enableHeight
183# Enable/Disable VMmap support for line of sight and height calculation
184# 0 (disable)
185# Default: 1 (enable)
186#
187# vmap.ignoreMapIds
188# Map id that will be ignored by VMaps
189# List of ids with delimiter ','
190# If more then one id is defined and spaces are included, the string
191# has to be enclosed by "
192# Example: "369,0,1,530"
193#
194# vmap.ignoreSpellIds
195# These spells are ignored for LoS calculation
196# List of ids with delimiter ','
197#
198# vmap.petLOS
199# Check LOS for pets, to avoid them going through walls etc.
200# 0 (disable, somewhat less CPU usage)
201# Default: 1 (enable, each pet attack command will check for LOS)
202#
203# vmap.enableIndoorCheck
204# Enable/Disable VMap based indoor check to remove outdoor-only auras (mounts etc.)
205# 0 (disabled, somewhat less CPU usage)
206# Default: 1 (enabled)
207#
208# DetectPosCollision
209# Check final move position, summon position, etc for visible collision
210# with other objects or wall (wall only if vmaps are enabled)
211# Default: 1 (enable, required more CPU usage)
212# 0 (disable, less position precision but will use less CPU)
213#
214# TargetPosRecalculateRange
215# Max distance from movement target point (+moving unit size) and
216# targeted object (+size) after that new target movement point
217# calculated. Max: melee attack range (5), min: contact range (0.5)
218# More distance let have better performence, less distance let have
219# more sensitive reaction at target move.
220# Default: 1.5
221#
222# UpdateUptimeInterval
223# Update realm uptime period in minutes. Must be > 0
224# Default: 10 (minutes)
225#
226# LogDB.Opt.ClearInterval
227# Time for the WUPDATE_CLEANDB timer that clears the `logs` table
228# of old entries. Must be > 0.
229# Default: 10 (minutes)
230#
231# LogDB.Opt.ClearTime
232# The maximum time in seconds of old `logs` table entries to keep.
233# Default: 1209600 (14 days)
234# 0 - don't clear
235#
236# MaxCoreStuckTime
237# Periodically check if the process is frozen, if this is the case
238# force crash after the specified amount of seconds. Must be > 0.
239# Recommended > 10 secs if you use this.
240# Default: 0 (Disabled)
241#
242# AddonChannel
243# Permit/disable the use of the addon channel through the server
244# (some client side addons will not work correctly with disabled
245# addon channel)
246# Default: 1 (permit addon channel)
247# 0 (do not permit addon channel)
248#
249# MapUpdate.Threads
250# Number of threads to update maps.
251# Default: 1
252#
253# CleanCharacterDB
254# Perform character db clean ups on start up
255# Default: 0 (Disabled)
256# 1 (Enable)
257#
258###############################################################################
259
260UseProcessors = 0
261ProcessPriority = 1
262Compression = 1
263PlayerLimit = 100
264SaveRespawnTimeImmediately = 1
265MaxOverspeedPings = 2
266GridUnload = 1
267SocketSelectTime = 10000
268SocketTimeOutTime = 900000
269SessionAddDelay = 10000
270GridCleanUpDelay = 300000
271MapUpdateInterval = 100
272ChangeWeatherInterval = 600000
273PlayerSaveInterval = 600000
274PlayerSave.Stats.MinLevel = 0
275PlayerSave.Stats.SaveOnlyOnLogout = 1
276vmap.enableLOS = 1
277vmap.enableHeight = 1
278vmap.ignoreMapIds = ""
279vmap.ignoreSpellIds = "7720"
280vmap.petLOS = 1
281vmap.enableIndoorCheck = 1
282DetectPosCollision = 1
283TargetPosRecalculateRange = 1.5
284UpdateUptimeInterval = 10
285LogDB.Opt.ClearInterval = 10
286LogDB.Opt.ClearTime = 1209600
287MaxCoreStuckTime = 0
288AddonChannel = 1
289MapUpdate.Threads = 1
290CleanCharacterDB = 0
291
292###############################################################################
293# SERVER LOGGING
294#
295# LogSQL
296# Enable logging of SQL commands from in game
297# All commands are written to a file: YYYY-MM-DD_logSQL.sql
298# If a new day starts (00:00:00) then a new file is created
299# the old file will not be deleted.
300# Default: 1 - Write SQL code to logfile
301# 0 - Do not log
302#
303# PidFile
304# World daemon PID file
305# Default: "" - do not create PID file
306# "./worldd.pid" - create PID file (recommended name)
307#
308# LogLevel
309# Server console level of logging
310# 0 = Minimum
311# Default: 1 = Basic
312# 2 = Detail
313# 3 = Full/Debug
314#
315# LogFile
316# Logfile name
317# Default: "Server.log"
318# "" - Empty name disable creating log file
319#
320# ChatLogFile
321# Log file for chat logs
322# Default: "chat.log"
323# "" - Empty name for disable
324#
325# LogTimestamp
326# Logfile with timestamp of server start in name
327# in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
328# Default: 0 - no timestamp in name
329# 1 - add timestamp in name
330#
331# LogFileLevel
332# Server file level of logging
333# Default: 0 = Minimum
334# 1 = Basic
335# 2 = Detail
336# 3 = Full/Debug
337#
338# LogFilter_AchievementUpdates
339# LogFilter_CreatureMoves
340# LogFilter_TransportMoves
341# LogFilter_VisibilityChanges
342# Log filters
343# Default: 1 - not include with any log level
344# 0 - include in log if log level permit
345#
346# WorldLogFile
347# Packet logging file for the worldserver
348# Default: "world.log"
349#
350# DBErrorLogFile
351# Log file of DB errors detected at server run
352# Default: "DBErrors.log"
353#
354# CharLogFile
355# Character operations logfile name
356# Default: "Char.log"
357# "" - Empty name disable creating log file
358#
359# CharLogTimestamp
360# Logfile with timestamp of server start in name
361# in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
362# Default: 0 - no timestamp in name
363# 1 - add timestamp in name
364#
365# CharLogDump
366# Write character dump before deleting in Char.log
367# For restoration, cut character data from log starting from
368# line == START DUMP == to line == END DUMP == (exclusive) in file
369# and load it using the loadpdump command
370# Default: 0 - don't include dumping chars to log
371# 1 - include dumping chars to log
372#
373# CharLogDump.Separate
374# Write character dump to separate file
375# Default: 0 - don't write dump to separate file
376# 1 - write each dump to separate file
377#
378# CharLogDump.SeparateDir
379# Subdirectory within logs dir for separate char dumps.
380#
381# GmLogFile
382# Log file of gm commands
383# Default: "gm_commands.log"
384# "" - Empty name for disable
385#
386# GmLogTimestamp
387# GM Logfile with timestamp of server start in name
388# in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
389# Default: 0 - no timestamp in name
390# 1 - add timestamp in name
391#
392# GmLogPerAccount
393# GM Logfiles with GM account id
394# (Note: logs not created if GmLogFile not set)
395# Default: 0 - add gm log data to single log file
396# 1 - add gm log data to account specific log files with name
397# in form Logname_#ID_YYYY-MM-DD_HH-MM-SS.Ext
398# or form Logname_#ID.Ext
399#
400# RaLogFile
401# Log file of RA commands
402# Default: "Ra.log"
403# "" - Empty name for disable
404#
405# ArenaLogFile
406# Log file of arena fights and arena team creations
407# Default: "" - do not create arena log file
408#
409# ArenaLog.ExtendedInfo
410# Include extended info for each player after rated arena (guid, name, team, IP, healing/damage done, killing blows)
411# Default: 0 - disabled
412# 1 - enabled
413#
414# SQLDriverLogFile
415# Log file of SQL driver events.
416# For effective query logging you need to build in debug configuration.
417# Default: "" - Empty name for disable
418#
419# LogColors
420# Color for messages (format "normal basic detail debug")
421# Default: "" - no colors
422# Colors: 0 - BLACK
423# 1 - RED
424# 2 - GREEN
425# 3 - BROWN
426# 4 - BLUE
427# 5 - MAGENTA
428# 6 - CYAN
429# 7 - GREY
430# 8 - YELLOW
431# 9 - LRED
432# 10 - LGREEN
433# 11 - LBLUE
434# 12 - LMAGENTA
435# 13 - LCYAN
436# 14 - WHITE
437# Example: "13 11 9 5"
438#
439# EnableLogDB
440# Enable/disable logging to database (LogDatabaseInfo).
441# Default: 0 - disabled
442# 1 - enabled
443#
444# DBLogLevel
445# Log level of DB logging.
446# 0 = Minimum
447# 1 = Basic
448# 2 = Detail
449# Default: 3 = Full/Debug
450#
451# LogDB.Char
452# Enable/disable logging character outputs to DB.
453# Default: 0 - off
454# 1 - on
455#
456# LogDB.GM
457# Enable/disable logging GM commands to DB.
458# Default: 0 - off
459# 1 - on
460#
461# LogDB.RA
462# Enable/disable logging remote access events to DB.
463# Default: 0 - off
464# 1 - on
465#
466# LogDB.World
467# Enable/disable logging world packets to DB.
468# Default: 0 - off
469# 1 - on (very heavy)
470#
471# LogDB.Chat
472# Enable/disable logging chat messages to the database.
473# Default: 0 - off
474# 1 - on
475#
476# ChatLogs.Channel
477# Enable logging chatting in custom channels.
478# Default: 0 - off
479# 1 - on
480#
481# ChatLogs.Whisper
482# Enable logging whispers between players.
483# Default: 0 - off
484# 1 - on
485#
486# ChatLogs.Party
487# Enable logging party messages.
488# Default: 0 - off
489# 1 - on
490#
491# ChatLogs.Raid
492# Enable logging raid messages.
493# Default: 0 - off
494# 1 - on
495#
496# ChatLogs.Guild
497# Enable logging guild messages.
498# Default: 0 - off
499# 1 - on
500#
501# ChatLogs.Public
502# Enable logging public chat events (say/yell/emote).
503# Default: 0 - off
504# 1 - on
505#
506# ChatLogs.Addon
507# Enable logging addon messages.
508# Default: 0 - off
509# 1 - on
510#
511# ChatLogs.BattleGround
512# Enable logging battleground chats.
513# Default: 0 - off
514# 1 - on
515#
516# ChatLogTimestamp
517# Chat Logfile with timestamp of server start in name
518# in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
519# Default: 0 - no timestamp in name
520# 1 - add timestamp in name
521#
522###############################################################################
523
524LogSQL = 1
525PidFile = ""
526LogLevel = 1
527LogFile = "Server.log"
528ChatLogFile = "chat.log"
529LogTimestamp = 0
530LogFileLevel = 0
531LogFilter_AchievementUpdates = 1
532LogFilter_CreatureMoves = 1
533LogFilter_TransportMoves = 1
534LogFilter_VisibilityChanges = 1
535WorldLogFile = ""
536DBErrorLogFile = "db_errors.log"
537CharLogFile = "characters.log"
538CharLogTimestamp = 0
539CharLogDump = 0
540CharLogDump.Separate = 0
541CharLogDump.SeparateDir = ""
542GmLogFile = "gm_commands.log"
543GmLogTimestamp = 0
544GmLogPerAccount = 0
545RaLogFile = "ra_commands.log"
546ArenaLogFile = ""
547ArenaLog.ExtendedInfo = 0
548SQLDriverLogFile = ""
549SQLDriverQueryLogging = 0
550LogColors = ""
551EnableLogDB = 0
552DBLogLevel = 2
553LogDB.Char = 0
554LogDB.GM = 0
555LogDB.RA = 0
556LogDB.World = 0
557LogDB.Chat = 0
558ChatLogs.Channel = 0
559ChatLogs.SysChan = 0
560ChatLogs.Whisper = 0
561ChatLogs.Party = 0
562ChatLogs.Raid = 0
563ChatLogs.Guild = 0
564ChatLogs.Public = 0
565ChatLogs.Addon = 0
566ChatLogs.BattleGround = 0
567ChatLogTimestamp = 0
568
569###############################################################################
570# SERVER SETTINGS
571#
572# GameType
573# Server realm style
574# Default: 0 = NORMAL
575# 1 = PVP
576# 4 = NORMAL
577# 6 = RP
578# 8 = RPPVP
579# 16 FFA_PVP (free for all pvp mode like arena PvP in all
580# zones except rest activated places and sanctuaries)
581#
582# RealmZone
583# Server realm zone (set allowed alphabet in character names/etc)
584# See also Strict*Names options.
585# Default: 1 Development - any language
586# 2 United States - extended-Latin
587# 3 Oceanic - extended-Latin
588# 4 Latin America - extended-Latin
589# 5 Tournament - basic-Latin at create, any at login
590# 6 Korea - East-Asian
591# 7 Tournament - basic-Latin at create, any at login
592# 8 English - extended-Latin
593# 9 German - extended-Latin
594# 10 French - extended-Latin
595# 11 Spanish - extended-Latin
596# 12 Russian - Cyrillic
597# 13 Tournament - basic-Latin at create, any at login
598# 14 Taiwan - East-Asian
599# 15 Tournament - basic-Latin at create, any at login
600# 16 China - East-Asian
601# 17 CN1 - basic-Latin at create, any at login
602# 18 CN2 - basic-Latin at create, any at login
603# 19 CN3 - basic-Latin at create, any at login
604# 20 CN4 - basic-Latin at create, any at login
605# 21 CN5 - basic-Latin at create, any at login
606# 22 CN6 - basic-Latin at create, any at login
607# 23 CN7 - basic-Latin at create, any at login
608# 24 CN8 - basic-Latin at create, any at login
609# 25 Tournament - basic-Latin at create, any at login
610# 26 Test Server - any language
611# 27 Tournament - basic-Latin at create, any at login
612# 28 QA Server - any language
613# 29 CN9 - basic-Latin at create, any at login
614#
615# Expansion
616# Allow server use content from expansion
617# Default: 2 - check expansion 2 maps existence, and if client support
618# expansion 2 and account have expansion 2 setting then
619# allow visit expansion 2 maps, allow create new class
620# character)
621# 1 - check expansion 1 maps existence, and if client support
622# expansion 1 and account have expansion 1 setting then
623# allow visit expansion 1 maps, allow create new races
624# character)
625# 0 - don't check expansion maps existence, don't allow visit
626# maps, don't allow create new race or new class
627# characters, ignore account expansion setting)
628#
629# DBC.Locale
630# DBC Language Settings
631# Default: 255 = Auto Detect
632# 0 = English
633# 1 = Korean
634# 2 = French
635# 3 = German
636# 4 = Chinese
637# 5 = Taiwanese
638# 6 = Spanish
639# 7 = Spanish Mexico
640# 8 = Russian
641#
642# DeclinedNames
643# Allow russian clients to set and use declined names
644# Default: 0 - do not use declined names, except when
645# the Russian RealmZone is set
646# 1 - use declined names
647#
648# StrictPlayerNames
649# Limit player name to language specific symbol set, don't allow
650# character creation, and set rename request and disconnect at not
651# allowed symbols name
652# Default: 0 disable (limited server timezone dependent client check)
653# 1 basic latin characters (strict)
654# 2 realm zone specific (strict). See RealmZone setting.
655# Note: In any case if you want correctly see character
656# name at client this client must have appropriate fonts
657# (included in client by default, with active official
658# localization or custom localization fonts in
659# clientdir/Fonts).
660# 3 basic latin characters + server timezone specific
661#
662# StrictCharterNames
663# Limit guild/arena team charter names to language specific symbol set,
664# don't allow charter creation with unallowed symbols in name
665# Default: 0 disable
666# 1 basic latin characters (strict)
667# 2 realm zone specific (strict). See RealmZone setting.
668# Note: In any case if you want correctly see character
669# name at client this client must have appropriate fonts
670# (included in client by default, with active official
671# localization or custom localization fonts in
672# clientdir/Fonts).
673# 3 basic latin characters + server timezone specific
674#
675# StrictPetNames
676# Limit pet names to language specific symbols set
677# Default: 0 disable
678# 1 basic latin characters (strict)
679# 2 realm zone specific (strict). See RealmZone setting.
680# Note: In any case if you want correctly see ch