mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
Run Migrate. Implemented a full separation between Player and Character - Players (OOC entities) can now also hold cmdsets and execute commands. This means that "disconnecting" from a Character becomes possible, putting the Player in an "OOC" state outside the game. This overall makes the game much more stable since there used to be issues if the character was destroyed. Having an OOC set also avoids the previous problem of @puppeting into an object that didn't have any cmdset of its own - you couldn't get back out! A new default OOC-Cmdset handles commands available to a player while OOC. Commands in this set are applied with a low priority, allowing "IC" mode to give precedence if desired.
This change meant several changes to the lock and permission functionality, since it becomes important if permissions are assigned on the Player or on their Character (lock functions pperm() and pid() etc check on Player rather than Character). This has the boon of allowing Admins to switch and play/test the game as a "Low access" character as they like. Plenty of bug fixes and adjustments. Migrations should make sure to move over all data properly.
This commit is contained in:
parent
ce2a8e9ffe
commit
28fe2ad3f4
37 changed files with 1622 additions and 555 deletions
|
|
@ -136,21 +136,18 @@ DATABASE_PORT = ''
|
|||
###################################################
|
||||
|
||||
# An alternate command parser module to use
|
||||
# (if not set, uses 'src.commands.cmdparser')
|
||||
ALTERNATE_PARSER = ""
|
||||
COMMAND_PARSER = "src.commands.cmdparser.cmdparser"
|
||||
# How many space-separated words a command name may have
|
||||
# and still be identified as one single command
|
||||
# (e.g. 'push button' instead of 'pushbutton')
|
||||
COMMAND_MAXLEN = 3
|
||||
# The handler that outputs errors when searching
|
||||
# objects using object.search(). (If not set, uses
|
||||
# src.objects.object_search_funcs.handle_search_errors)
|
||||
ALTERNATE_OBJECT_SEARCH_ERROR_HANDLER = ""
|
||||
# objects using object.search().
|
||||
SEARCH_AT_RESULT = "src.commands.cmdparser.at_search_result"
|
||||
# The parser used in order to separate multiple
|
||||
# object matches (so you can separate between same-named
|
||||
# objects without using dbrefs). (If not set, uses
|
||||
# src.objects.object_search_funcs.object_multimatch_parser).
|
||||
ALTERNATE_OBJECT_SEARCH_MULTIMATCH_PARSER = ""
|
||||
# objects without using dbrefs).
|
||||
SEARCH_AT_MULTIMATCH_INPUT = "src.commands.cmdparser.at_multimatch_input"
|
||||
# The module holding text strings for the connection screen.
|
||||
# This module should contain one or more variables
|
||||
# with strings defining the look of the screen.
|
||||
|
|
@ -162,8 +159,10 @@ CONNECTION_SCREEN_MODULE = "game.gamesrc.world.connection_screens"
|
|||
|
||||
# Command set used before player has logged in
|
||||
CMDSET_UNLOGGEDIN = "game.gamesrc.commands.basecmdset.UnloggedinCmdSet"
|
||||
# Default set for logged in players (fallback)
|
||||
# Default set for logged in player with characters (fallback)
|
||||
CMDSET_DEFAULT = "game.gamesrc.commands.basecmdset.DefaultCmdSet"
|
||||
# Command set for players without a character (ooc)
|
||||
CMDSET_OOC = "game.gamesrc.commands.basecmdset.OOCCmdSet"
|
||||
|
||||
###################################################
|
||||
# Default Object typeclasses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue