<p>The “Settings” file referenced throughout the documentation is the file
<codeclass="docutils literal notranslate"><spanclass="pre">mygame/server/conf/settings.py</span></code>. This is automatically created on the first run of <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span><spanclass="pre">--init</span></code>
<p>Your new <codeclass="docutils literal notranslate"><spanclass="pre">settings.py</span></code> is relatively bare out of the box. Evennia’s core settings file is actually
and is considerably more extensive (it is also heavily documented so you should refer to this file
directly for the available settings).</p>
<p>Since <codeclass="docutils literal notranslate"><spanclass="pre">mygame/server/conf/settings.py</span></code> is a normal Python module, it simply imports
<codeclass="docutils literal notranslate"><spanclass="pre">evennia/settings_default.py</span></code> into itself at the top.</p>
<p>This means that if any setting you want to change were to depend on some <em>other</em> default setting,
you might need to copy & paste both in order to change them and get the effect you want (for most
commonly changed settings, this is not something you need to worry about).</p>
<p>You should never edit <codeclass="docutils literal notranslate"><spanclass="pre">evennia/settings_default.py</span></code>. Rather you should copy&paste the select
variables you want to change into your <codeclass="docutils literal notranslate"><spanclass="pre">settings.py</span></code> and edit them there. This will overload the
<div><p>Warning: It may be tempting to copy everything from <codeclass="docutils literal notranslate"><spanclass="pre">settings_default.py</span></code> into your own settings
file. There is a reason we don’t do this out of the box though: it makes it directly clear what
changes you did. Also, if you limit your copying to the things you really need you will directly be
able to take advantage of upstream changes and additions to Evennia for anything you didn’t
<p>Each setting appears as a property on the imported <codeclass="docutils literal notranslate"><spanclass="pre">settings</span></code> object. You can also explore all
possible options with <codeclass="docutils literal notranslate"><spanclass="pre">evennia.settings_full</span></code> (this also includes advanced Django defaults that are
<div><p>It should be pointed out that when importing <codeclass="docutils literal notranslate"><spanclass="pre">settings</span></code> into your code like this, it will be <em>read
only</em>. You <em>cannot</em> edit your settings from your code! The only way to change an Evennia setting is
to edit <codeclass="docutils literal notranslate"><spanclass="pre">mygame/server/conf/settings.py</span></code> directly. You also generally need to restart the server
(possibly also the Portal) before a changed setting becomes available.</p>
<h2>Other files in the <codeclass="docutils literal notranslate"><spanclass="pre">server/conf</span></code> directory<aclass="headerlink"href="#other-files-in-the-server-conf-directory"title="Permalink to this headline">¶</a></h2>
<p>Apart from the main <codeclass="docutils literal notranslate"><spanclass="pre">settings.py</span></code> file,</p>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">at_initial_setup.py</span></code> - this allows you to add a custom startup method to be called (only) the
very first time Evennia starts (at the same time as user #1 and Limbo is created). It can be made to
start your own global scripts or set up other system/world-related things your game needs to have
running from the start.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">at_server_startstop.py</span></code> - this module contains two functions that Evennia will call every time
the Server starts and stops respectively - this includes stopping due to reloading and resetting as
well as shutting down completely. It’s a useful place to put custom startup code for handlers and
other things that must run in your game but which has no database persistence.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">connection_screens.py</span></code> - all global string variables in this module are interpreted by Evennia as
a greeting screen to show when an Account first connects. If more than one string variable is
present in the module a random one will be picked.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">inlinefuncs.py</span></code> - this is where you can define custom <aclass="reference external"href="Concepts/TextTags.html#inlinefuncs">Inline functions</a>.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">inputfuncs.py</span></code> - this is where you define custom <aclass="reference internal"href="Inputfuncs.html"><spanclass="doc">Input functions</span></a> to handle data
from the client.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">lockfuncs.py</span></code> - this is one of many possible modules to hold your own “safe” <em>lock functions</em> to
make available to Evennia’s <aclass="reference internal"href="Locks.html"><spanclass="doc">Locks</span></a>.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">mssp.py</span></code> - this holds meta information about your game. It is used by MUD search engines (which
you often have to register with) in order to display what kind of game you are running along with
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">oobfuncs.py</span></code> - in here you can define custom <aclass="reference internal"href="../Concepts/OOB.html"><spanclass="doc">OOB functions</span></a>.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">portal_services_plugin.py</span></code> - this allows for adding your own custom services/protocols to the
Portal. It must define one particular function that will be called by Evennia at startup. There can
be any number of service plugin modules, all will be imported and used if defined. More info can be
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">server_services_plugin.py</span></code> - this is equivalent to the previous one, but used for adding new
services to the Server instead. More info can be found
<p>There is a special database model called <codeclass="docutils literal notranslate"><spanclass="pre">ServerConf</span></code> that stores server internal data and settings
such as current account count (for interfacing with the webserver), startup status and many other
things. It’s rarely of use outside the server core itself but may be good to
<li><aclass="reference internal"href="#other-files-in-the-server-conf-directory">Other files in the <codeclass="docutils literal notranslate"><spanclass="pre">server/conf</span></code> directory</a></li>