· 8 years ago · Apr 22, 2018, 03:20 PM
1################################################
2# Trinity Core World Server configuration file #
3################################################
4[worldserver]
5
6###################################################################################################
7# SECTION INDEX
8#
9# EXAMPLE CONFIG
10# CONNECTIONS AND DIRECTORIES
11# PERFORMANCE SETTINGS
12# SERVER LOGGING
13# SERVER SETTINGS
14# PLAYER INTERACTION
15# CREATURE SETTINGS
16# CHAT SETTINGS
17# GAME MASTER SETTINGS
18# VISIBILITY AND DISTANCES
19# SERVER RATES
20# AUTO BROADCAST
21# BATTLEGROUND CONFIG
22# ARENA CONFIG
23# NETWORK CONFIG
24# CONSOLE AND REMOTE ACCESS
25# CHARACTER DELETE OPTIONS
26# CUSTOM SERVER OPTIONS
27#
28###################################################################################################
29
30###################################################################################################
31# EXAMPLE CONFIG
32#
33# Variable
34# Description: Brief description what the variable is doing.
35# Important: Annotation for important things about this variable.
36# Example: "Example, i.e. if the value is a string"
37# Default: 10 - (Enabled|Comment|Variable name in case of grouped config options)
38# 0 - (Disabled|Comment|Variable name in case of grouped config options)
39#
40# Note to developers:
41# - Copy this example to keep the formatting.
42# - Line breaks should be at column 100.
43###################################################################################################
44
45###################################################################################################
46# CONNECTIONS AND DIRECTORIES
47#
48# RealmID
49# Description: ID of the Realm using this config.
50# Important: RealmID must match the realmlist inside the realmd database.
51# Default: 1
52
53RealmID = 1
54
55#
56# DataDir
57# Description: Data directory setting.
58# Important: DataDir needs to be quoted, as the string might contain space characters.
59# Example: "@prefix@/share/trinitycore"
60# Default: "."
61
62DataDir = "/home/ensiferum/tangible"
63
64#
65# LogsDir
66# Description: Logs directory setting.
67# Important: LogsDir needs to be quoted, as the string might contain space characters.
68# Logs directory must exists, or log file creation will be disabled.
69# Default: "" - (Log files will be stored in the current path)
70
71LogsDir = ""
72
73#
74# LoginDatabaseInfo
75# WorldDatabaseInfo
76# CharacterDatabaseInfo
77# Description: Database connection settings for the world server.
78# Example: "hostname;port;username;password;database"
79# ".;somenumber;username;password;database" - (Use named pipes on Windows
80# "enable-named-pipe" to [mysqld]
81# section my.ini)
82# ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on
83# Unix/Linux)
84# Default: "127.0.0.1;3306;trinity;trinity;auth" - (LoginDatabaseInfo)
85# "127.0.0.1;3306;trinity;trinity;world" - (WorldDatabaseInfo)
86# "127.0.0.1;3306;trinity;trinity;characters" - (CharacterDatabaseInfo)
87
88LoginDatabaseInfo = "127.0.0.1;xxx;xxx;xxx;xxx"
89WorldDatabaseInfo = "127.0.0.1;xxx;xxx;xxx;xxx"
90CharacterDatabaseInfo = "127.0.0.1;xxx;xxx;xxx;xxx"
91
92#
93# LoginDatabase.WorkerThreads
94# WorldDatabase.WorkerThreads
95# CharacterDatabase.WorkerThreads
96# Description: The amount of worker threads spawned to handle asynchronous (delayed) MySQL
97# statements. Each worker thread is mirrored with its own connection to the
98# MySQL server and their own thread on the MySQL server.
99# Default: 1 - (LoginDatabase.WorkerThreads)
100# 1 - (WorldDatabase.WorkerThreads)
101# 1 - (CharacterDatabase.WorkerThreads)
102
103LoginDatabase.WorkerThreads = 1
104WorldDatabase.WorkerThreads = 1
105CharacterDatabase.WorkerThreads = 1
106
107#
108# LoginDatabase.SynchThreads
109# WorldDatabase.SynchThreads
110# CharacterDatabase.SynchThreads
111# Description: The amount of MySQL connections spawned to handle.
112# Default: 1 - (LoginDatabase.WorkerThreads)
113# 1 - (WorldDatabase.WorkerThreads)
114# 2 - (CharacterDatabase.WorkerThreads)
115
116LoginDatabase.SynchThreads = 1
117WorldDatabase.SynchThreads = 1
118CharacterDatabase.SynchThreads = 2
119
120#
121# MaxPingTime
122# Description: Time (in minutes) between database pings.
123# Default: 30
124
125MaxPingTime = 30
126
127#
128# WorldServerPort
129# Description: TCP port to reach the world server.
130# Default: 8085
131
132WorldServerPort = 8087
133
134#
135# BindIP
136# Description: Bind world server to IP/hostname
137# Default: "0.0.0.0" - (Bind to all IPs on the system)
138
139BindIP = "0.0.0.0"
140
141#
142###################################################################################################
143
144###################################################################################################
145# PERFORMANCE SETTINGS
146#
147# UseProcessors
148# Description: Processors mask for Windows based multi-processor systems.
149# Default: 0 - (Selected by OS)
150# 1+ - (Bit mask value of selected processors)
151
152UseProcessors = 0
153
154#
155# ProcessPriority
156# Description: Process priority setting for Windows based systems.
157# Default: 1 - (High)
158# 0 - (Normal)
159
160ProcessPriority = 1
161
162#
163# Compression
164# Description: Compression level for client update packages
165# Range: 1-9
166# Default: 1 - (Speed)
167# 9 - (Best compression)
168
169Compression = 1
170
171#
172# PlayerLimit
173# Description: Maximum number of players in the world. Excluding Mods, GMs and Admins.
174# Important: If you want to block players and only allow Mods, GMs or Admins to join the
175# server, use the DB field "realmd.realmlist.allowedSecurityLevel".
176# Default: 100 - (Enabled)
177# 1+ - (Enabled)
178# 0 - (Disabled, No limit)
179
180PlayerLimit = 100
181
182#
183# SaveRespawnTimeImmediately
184# Description: Save respawn time for creatures at death and gameobjects at use/open.
185# Default: 1 - (Enabled, Save respawn time immediately)
186# 0 - (Disabled, Save respawn time at grid unloading)
187
188SaveRespawnTimeImmediately = 1
189
190#
191# MaxOverspeedPings
192# Description: Maximum overspeed ping count before character is disconnected.
193# Default: 2 - (Enabled, Minimum value)
194# 3+ - (Enabled, More checks before kick)
195# 0 - (Disabled)
196
197MaxOverspeedPings = 2
198
199#
200# GridUnload
201# Description: Unload grids to save memory. Can be disabled if enough memory is available
202# to speed up moving players to new grids.
203# Default: 1 - (enable, Unload grids)
204# 0 - (disable, Do not unload grids)
205
206GridUnload = 1
207
208#
209# SocketTimeOutTime
210# Description: Time (in milliseconds) after which a connection being idle on the character
211# selection screen is disconnected.
212# Default: 900000 - (15 minutes)
213
214SocketTimeOutTime = 900000
215
216#
217# SessionAddDelay
218# Description: Time (in microseconds) that a network thread will sleep after authentication
219# protocol handling before adding a connection to the world session map.
220# Default: 10000 - (10 milliseconds, 0.01 second)
221
222SessionAddDelay = 10000
223
224#
225# GridCleanUpDelay
226# Description: Time (in milliseconds) grid clean up delay.
227# Default: 300000 - (5 minutes)
228
229GridCleanUpDelay = 300000
230
231#
232# MapUpdateInterval
233# Description: Time (milliseconds) for map update interval.
234# Default: 100 - (0.1 second)
235
236MapUpdateInterval = 100
237
238#
239# ChangeWeatherInterval
240# Description: Time (in milliseconds) for weather update interval.
241# Default: 600000 - (10 min)
242
243ChangeWeatherInterval = 600000
244
245#
246# PlayerSaveInterval
247# Description: Time (in milliseconds) for player save interval.
248# Default: 900000 - (15 min)
249
250PlayerSaveInterval = 900000
251
252#
253# PlayerSave.Stats.MinLevel
254# Description: Minimum level for saving character stats in the database for external usage.
255# Default: 0 - (Disabled, Do not save character stats)
256# 1+ - (Enabled, Level beyond which character stats are saved)
257
258PlayerSave.Stats.MinLevel = 0
259
260#
261# PlayerSave.Stats.SaveOnlyOnLogout
262# Description: Save player stats only on logout.
263# Default: 1 - (Enabled, Only save on logout)
264# 0 - (Disabled, Save on every player save)
265
266PlayerSave.Stats.SaveOnlyOnLogout = 1
267
268#
269# vmap.enableLOS
270# vmap.enableHeight
271# Description: VMmap support for line of sight and height calculation.
272# Default: 1 - (Enabled, vmap.enableLOS)
273# 1 - (Enabled, vmap.enableHeight)
274# 0 - (Disabled)
275
276vmap.enableLOS = 1
277vmap.enableHeight = 1
278
279#
280# vmap.ignoreSpellIds
281# Description: These spells are ignored for LoS calculation.
282# List of ids with delimiter ','.
283# Example: "7720,1337"
284# Default: "7720"
285
286vmap.ignoreSpellIds = "7720"
287
288#
289# vmap.petLOS
290# Description: Check line of sight for pets, to avoid them attacking through walls.
291# Default: 1 - (Enabled, each pet attack will be checked for line of sight)
292# 0 - (Disabled, somewhat less CPU usage)
293
294vmap.petLOS = 1
295
296#
297# vmap.enableIndoorCheck
298# Description: VMap based indoor check to remove outdoor-only auras (mounts etc.).
299# Default: 1 - (Enabled)
300# 0 - (Disabled, somewhat less CPU usage)
301
302vmap.enableIndoorCheck = 1
303
304#
305# DetectPosCollision
306# Description: Check final move position, summon position, etc for visible collision with
307# other objects or walls (walls only if vmaps are enabled).
308# Default: 1 - (Enabled)
309# 0 - (Disabled, Less position precision but less CPU usage)
310
311DetectPosCollision = 1
312
313#
314# TargetPosRecalculateRange
315# Description: Max distance from movement target point (+moving unit size) and targeted
316# object (+size) after that new target movement point calculated.
317# Range: 0.5-5.0
318# Default: 1.5
319# 0.5 - (Minimum, Contact Range, More sensitive reaction to target movement)
320# 5.0 - (Maximum, Melee attack range, Less CPU usage)
321
322TargetPosRecalculateRange = 1.5
323
324#
325# UpdateUptimeInterval
326# Description: Update realm uptime period (in minutes).
327# Default: 10 - (10 minutes)
328# 1+
329
330UpdateUptimeInterval = 10
331
332#
333# LogDB.Opt.ClearInterval
334# Description: Time (in minutes) for the WUPDATE_CLEANDB timer that clears the `logs` table
335# of old entries.
336# Default: 10 - (10 minutes)
337# 1+
338
339LogDB.Opt.ClearInterval = 10
340
341#
342# LogDB.Opt.ClearTime
343# Description: Time (in seconds) for keeping old `logs` table entries.
344# Default: 1209600 - (Enabled, 14 days)
345# 0 - (Disabled, Do not clear entries)
346
347LogDB.Opt.ClearTime = 1209600
348
349#
350# MaxCoreStuckTime
351# Description: Time (in seconds) before the server is forced to crash if it is frozen.
352# Default: 0 - (Disabled)
353# 10+ - (Enabled, Recommended 10+)
354
355MaxCoreStuckTime = 0
356
357#
358# AddonChannel
359# Description: Configure the use of the addon channel through the server (some client side
360# addons will not work correctly with disabled addon channel)
361# Default: 1 - (Enabled)
362# 0 - (Disabled)
363
364AddonChannel = 1
365
366#
367# MapUpdate.Threads
368# Description: Number of threads to update maps.
369# Default: 1
370
371MapUpdate.Threads = 1
372
373#
374# CleanCharacterDB
375# Description: Clean out deprecated achievements, skills, spells and talents from the db.
376# Default: 0 - (Disabled)
377# 1 - (Enable)
378
379CleanCharacterDB = 0
380
381#
382# PersistentCharacterCleanFlags
383# Description: Determines the character clean flags that remain set after cleanups.
384# This is a bitmask value, check /doc/CharacterDBCleanup.txt for more
385# information.
386# Example: 14 - (Cleaning up skills, talents and spells will remain enabled after the
387# next cleanup)
388# Default: 0 - (All cleanup methods will be disabled after the next cleanup)
389
390PersistentCharacterCleanFlags = 0
391
392#
393###################################################################################################
394
395###################################################################################################
396# SERVER LOGGING
397#
398# PidFile
399# Description: World daemon PID file
400# Example: "./worldd.pid" - (Enabled)
401# Default: "" - (Disabled)
402
403PidFile = ""
404
405#
406# LogLevel
407# Description: Server console level of logging
408# Default: 1 - (Basic)
409# 0 - (Minimum)
410# 2 - (Detail)
411# 3 - (Full/Debug)
412
413LogLevel = 1
414
415#
416# LogFile
417# Description: Log file for main server log.
418# Default: "Server.log" - (Enabled)
419# "" - (Disabled)
420
421LogFile = "Server.log"
422
423#
424# LogTimestamp
425# Description: Append timestamp to the server log file name.
426# Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
427# Default: 0 - (Disabled)
428# 1 - (Enabled)
429
430LogTimestamp = 0
431
432#
433# LogFileLevel
434# Description: Server file level of logging
435# Default: 0 - (Minimum)
436# 1 - (Basic)
437# 2 - (Detail)
438# 3 - (Full/Debug)
439
440LogFileLevel = 0
441
442#
443# Debug Log Mask
444# Description: Bitmask that determines which debug log output (level 3)
445# will be logged.
446# Possible flags:
447# 1 - Anything related to units that doesn't fit in other
448# categories.
449# 2 - Anything related to pets.
450# 4 - Anything related to vehicles.
451# 8 - Anything related to C++ AI, instance scripts, etc.
452# 16 - Anything related to DB AI, such as SAI, EAI, CreatureAI
453# 32 - Anything related to DB map scripts
454# 64 - Anything related to network input/output,
455# such as packet handlers and netcode logs
456# 128 - Anything related to the spellsystem and aurasystem
457# 256 - Anything related to the achievement system
458# 512 - Anything related to the condition system
459# 1024 - Anything related to the pool system
460# 2048 - Anything related to the auction house
461# 4096 - Anything related to arena's and battlegrounds
462# 8192 - Anything related to outdoor PVP
463# 16384 - Anything related to the chat system
464# 32768 - Anything related to the LFG system
465# 65536 - Anything related to maps, instances (not scripts),
466# grids, cells, visibility, etc.
467# 131072 - Anything related to player loading from DB
468# (Player::_LoadXXX functions)
469# 262144 - Anything related to items
470# 524288 - Anything related to player skills
471# (do not confuse with spells)
472# 1048576 - Anything related to loot
473# 2097152 - Anything related to guilds
474# 4194304 - Anything related to transports
475#
476# Simply add the values together to create a bitmask.
477# For more info see enum DebugLogFilters in Log.h
478#
479# Default: 0 (nothing)
480
481DebugLogMask = 0
482
483#
484# WorldLogFile
485# Description: Packet logging file for the world server.
486# Example: "World.log" - (Enabled)
487# Default: "" - (Disabled)
488
489WorldLogFile = ""
490
491#
492# DBErrorLogFile
493# Description: Log file for database errors.
494# Default: "DBErrors.log" - (Enabled)
495# "" - (Disabled)
496
497DBErrorLogFile = "DBErrors.log"
498
499#
500# CharLogFile
501# Description: Log file for character operations
502# Default: "Char.log" - (Enabled)
503# "" - (Disabled)
504
505CharLogFile = "Char.log"
506
507#
508# CharLogTimestamp
509# Description: Append timestamp to the character log file name.
510# Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
511# Default: 0 - (Disabled)
512# 1 - (Enabled)
513
514CharLogTimestamp = 0
515
516#
517# CharLogDump
518# Description: Write a character dump in the CharLogFile before deleting it.
519# For restoration, copy character data from log file starting from
520# line == START DUMP == to line == END DUMP == (exclusive)
521# and load it using the "pdump load" command.
522# Default: 0 - (Disabled)
523# 1 - (Enabled)
524
525CharLogDump = 0
526
527#
528# CharLogDump.Separate
529# Description: Write character dump to separate files files rather than adding it to the
530# CharLogFile.
531# Default: 0 - (Disabled)
532# 1 - (Enabled)
533
534CharLogDump.Separate = 0
535
536#
537# CharLogDump.SeparateDir
538# Description: Write dump files into the sub folder within the log folder.
539# Example: "chardumps" - (Enabled)
540# Default: "" - (Disabled)
541
542CharLogDump.SeparateDir = ""
543
544#
545# GmLogFile
546# Description: Log file for gamemaster commands.
547# Default: "GM.log" - (Enabled)
548# "" - (Disabled)
549
550GmLogFile = "GM.log"
551
552#
553# GmLogTimestamp
554# Description: Append timestamp to the gamemaster log file name.
555# Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
556# Default: 0 - (Disabled)
557# 1 - (Enabled)
558
559GmLogTimestamp = 0
560
561#
562# GmLogPerAccount
563# Description: Create a log file per gamemaster account.
564# Important: Logs not created if GmLogFile is not set.
565# Default: 0 - (Disabled)
566# 1 - (Enabled)
567
568GmLogPerAccount = 0
569
570#
571# RaLogFile
572# Description: Log file for Remote Access commands.
573# Default: "RA.log" - (Enabled)
574# "" - (Disabled)
575
576RaLogFile = "RA.log"
577
578#
579# ArenaLogFile
580# Description: Log file for arena fights and arena team creations.
581# Example: "Arena.log" - (Enabled)
582# Default: "" - (Disabled)
583
584ArenaLogFile = ""
585
586#
587# ArenaLog.ExtendedInfo
588# Description: Include extended info to ArenaLogFile for each player after rated arena
589# matches (guid, name, team, IP, healing/damage done, killing blows).
590# Default: 0 - (Disabled)
591# 1 - (Enabled)
592
593ArenaLog.ExtendedInfo = 0
594
595#
596# SQLDeveloperLogFile
597# Description: Log file for core-generated SQL queries/dumps
598# Example: "SQLDev.log" - (Enabled)
599# Default: "" - (Disabled)
600
601SQLDeveloperLogFile = ""
602
603#
604# SQLDriverLogFile
605# Description: Log file for SQL driver events.
606# Example: "SQLDriver.log" - (Enabled)
607# Default: "" - (Disabled)
608
609SQLDriverLogFile = ""
610
611#
612# SQLDriverQueryLogging
613# Description: Log SQL queries to the SQLDriverLogFile and console.
614# Default: 0 - (Disabled, Query errors only)
615# 1 - (Enabled, Full query logging - may have performance impact)
616
617SQLDriverQueryLogging = 0
618
619#
620# LogColors
621# Description: Colors for log messages (Format: "normal basic detail debug").
622# Colors: 0 - Black
623# 1 - Red
624# 2 - Green
625# 3 - Brown
626# 4 - Blue
627# 5 - Magenta
628# 6 - Cyan
629# 7 - Grey
630# 8 - Yellow
631# 9 - Lred
632# 10 - Lgreen
633# 11 - Lblue
634# 12 - Lmagenta
635# 13 - Lcyan
636# 14 - White
637# Example: "13 11 9 5" - (Enabled)
638# Default: "" - (Disabled)
639
640LogColors = ""
641
642#
643# EnableLogDB
644# Description: Write log messages to database (LogDatabaseInfo).
645# Default: 0 - (Disabled)
646# 1 - (Enabled)
647
648EnableLogDB = 0
649
650#
651# DBLogLevel
652# Description: Log level of databases logging.
653# Default: 2 - (Detail)
654# 0 - (Minimum)
655# 1 - (Basic)
656# 3 - (Full/Debug)
657
658DBLogLevel = 2
659
660#
661# LogDB.Char
662# Description: Log character operations to database.
663# Default: 0 - (Disabled)
664# 1 - (Enabled)
665
666LogDB.Char = 0
667
668#
669# LogDB.GM
670# Description: Log gamemaster commands to database.
671# Default: 0 - (Disabled)
672# 1 - (Enabled)
673
674LogDB.GM = 0
675
676#
677# LogDB.RA
678# Description: Log remote access events to database.
679# Default: 0 - (Disabled)
680# 1 - (Enabled)
681
682LogDB.RA = 0
683
684#
685# LogDB.World
686# Description: Log world server packets to database.
687# Default: 0 - (Disabled)
688# 1 - (Enabled, May have performance impact)
689
690LogDB.World = 0
691
692#
693# LogDB.Chat
694# Description: Log chat messages to database.
695# Default: 0 - (Disabled)
696# 1 - (Enabled)
697
698LogDB.Chat = 0
699
700
701# ChatLogFile
702# Description: Log file for chat logs.
703# Default: "Chat.log" - (Enabled)
704# "" - (Disabled)
705
706ChatLogFile = "Chat.log"
707
708# ChatLogTimestamp
709# Description: Append timestamp to the chat log file name.
710# Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
711# Default: 0 - (Disabled)
712# 1 - (Enabled)
713
714ChatLogTimestamp = 0
715
716#
717# ChatLogs.Channel
718# Description: Log custom channel chat.
719# Default: 0 - (Disabled)
720# 1 - (Enabled)
721
722ChatLogs.Channel = 0
723
724#
725# ChatLogs.Whisper
726# Description: Log whispers between players.
727# Default: 0 - (Disabled)
728# 1 - (Enabled)
729
730ChatLogs.Whisper = 0
731
732#
733# ChatLogs.SysChan
734# Description: Log system channel messages.
735# Default: 0 - (Disabled)
736# 1 - (Enabled)
737
738ChatLogs.SysChan = 0
739
740#
741# ChatLogs.Party
742# Description: Log party chat.
743# Default: 0 - (Disabled)
744# 1 - (Enabled)
745
746
747ChatLogs.Party = 0
748
749#
750# ChatLogs.Raid
751# Description: Log raid chat.
752# Default: 0 - (Disabled)
753# 1 - (Enabled)
754
755
756ChatLogs.Raid = 0
757
758#
759# ChatLogs.Guild
760# Description: Log guild chat.
761# Default: 0 - (Disabled)
762# 1 - (Enabled)
763
764ChatLogs.Guild = 0
765
766#
767# ChatLogs.Public
768# Des