Removed the conf/ modules, putting them into conf/examples instead, in line with other API changes. The gamesrc/ folder is now completely empty and all new modules have to be added explicitly.
This commit is contained in:
parent
bdb5ab0123
commit
e042366f31
11 changed files with 72 additions and 30 deletions
0
game/gamesrc/conf/examples/__init__.py
Normal file
0
game/gamesrc/conf/examples/__init__.py
Normal file
|
|
@ -1,4 +1,12 @@
|
|||
"""
|
||||
At_initial_setup module template
|
||||
|
||||
Copy this module up one level to /gamesrc/conf, name it what you like
|
||||
and then use it as a template to modify.
|
||||
|
||||
Then edit settings.AT_INITIAL_SETUP_HOOK_MODULE to point to your new
|
||||
module.
|
||||
|
||||
Custom at_initial_setup method. This allows you to hook special
|
||||
modifications to the initial server startup process. Note that this
|
||||
will only be run once - when the server starts up for the very first
|
||||
|
|
@ -10,7 +18,6 @@ will be called without arguments. Note that tracebacks in this module
|
|||
will be QUIETLY ignored, so make sure to check it well to make sure it
|
||||
does what you expect it to.
|
||||
|
||||
This module is selected by settings.AT_INITIAL_SETUP_HOOK_MODULE.
|
||||
"""
|
||||
|
||||
def at_initial_setup():
|
||||
|
|
@ -1,4 +1,13 @@
|
|||
"""
|
||||
|
||||
At_server_startstop module template
|
||||
|
||||
Copy this module one level up, to gamesrc/conf/, name it what you
|
||||
will and use it as a template for your modifications.
|
||||
|
||||
Then edit settings.AT_SERVER_STARTSTOP_MODULE to point to your new
|
||||
module.
|
||||
|
||||
This module contains functions that are imported and called by the
|
||||
server whenever it changes its running status. At the point these
|
||||
functions are run, all applicable hooks on individual objects have
|
||||
|
|
@ -11,8 +20,6 @@ The module should define at least these global functions:
|
|||
at_server_start()
|
||||
at_server_stop()
|
||||
|
||||
The module used is defined by settings.AT_SERVER_STARTSTOP_MODULE.
|
||||
|
||||
"""
|
||||
|
||||
def at_server_start():
|
||||
|
|
@ -1,4 +1,13 @@
|
|||
"""
|
||||
Connect screen module template
|
||||
|
||||
Copy this module one level up, to gamesrc/conf/, name it what
|
||||
you want and modify it to your liking.
|
||||
|
||||
Then you set settings.CONNECTION_SCREEN_MODULE to point to your
|
||||
new module.
|
||||
|
||||
|
||||
This module holds textual connection screen definitions. All global
|
||||
string variables (only) in this module are read by Evennia and
|
||||
assumed to define a Connection screen.
|
||||
|
|
@ -14,9 +23,6 @@
|
|||
After adding new connection screens to this module you must either
|
||||
reboot or reload the server to make them available.
|
||||
|
||||
You can change which module is used with
|
||||
settings.CONNECTION_SCREEN_MODULE.
|
||||
|
||||
"""
|
||||
|
||||
from src.utils import utils
|
||||
|
|
@ -1,8 +1,12 @@
|
|||
"""
|
||||
|
||||
This is an example module for holding custom lock funcs, used in
|
||||
in-game locks. The modules available to use as lockfuncs are defined
|
||||
in the tuple settings.LOCK_FUNC_MODULES.
|
||||
Lockfuncs module template
|
||||
|
||||
Copy this module one level up, to gamesrc/conf/, name it what
|
||||
you will and edit it to your liking.
|
||||
|
||||
Then add the new module's path to the end of the tuple
|
||||
defined in settings.LOCK_FUNC_MODULES.
|
||||
|
||||
All functions defined globally in this module are assumed to be
|
||||
available for use in lockstrings to determine access. See
|
||||
|
|
@ -1,15 +1,23 @@
|
|||
#
|
||||
# MSSP (Mud Server Status Protocol) meta information
|
||||
#
|
||||
# MUD website listings (that you have registered with) can use this
|
||||
# information to keep up-to-date with your game stats as you change
|
||||
# them. Also number of currently active players and uptime will
|
||||
# automatically be reported. You don't have to fill in everything
|
||||
# (and most are not used by all crawlers); leave the default
|
||||
# if so needed. You need to @reload the game before updated
|
||||
# information is made available to crawlers (reloading does not
|
||||
# affect uptime).
|
||||
#
|
||||
"""
|
||||
|
||||
MSSP module template
|
||||
|
||||
Copy this module one level up, to gamesrc/conf/, name it
|
||||
what you want and edit it to your satisfaction.
|
||||
|
||||
Then change settings.MSSP_META_MODULE to point to your new module.
|
||||
|
||||
MSSP (Mud Server Status Protocol) meta information
|
||||
|
||||
MUD website listings (that you have registered with) can use this
|
||||
information to keep up-to-date with your game stats as you change
|
||||
them. Also number of currently active players and uptime will
|
||||
automatically be reported. You don't have to fill in everything
|
||||
(and most are not used by all crawlers); leave the default
|
||||
if so needed. You need to @reload the game before updated
|
||||
information is made available to crawlers (reloading does not
|
||||
affect uptime).
|
||||
"""
|
||||
|
||||
MSSPTable = {
|
||||
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
"""
|
||||
|
||||
** OBS This module is not yet used by Evennia **
|
||||
|
||||
Example module holding functions for out-of-band protocols to
|
||||
import and map to given commands from the client. This module
|
||||
is selected by settings.OOB_FUNC_MODULE.
|
||||
Loading…
Add table
Add a link
Reference in a new issue