Commit graph

79 commits

Author SHA1 Message Date
Griatch
22e22ffced Cleaned up the time command's output some more. 2017-02-12 19:16:56 +01:00
Griatch
008566f358 Move gametime conversion factors to contrib and remove them from the settings file with the motivation that the gametime constats were always highly game specific and a remnant from another time. Reworked the gametime library and add server epoch building from vincent-lg's original PR. The gametime module now deals exclusively in seconds. 2017-02-12 19:16:56 +01:00
Vincent Le Goff
59a5315c79 Add a setting to handle absolute game time (assuing standard a calendar)
The `@time` command now displays the game time epoch (can be set
in settings) and current game time (as a datetime).
2017-02-12 19:16:56 +01:00
Griatch
61ffe5f9fa Rename ADDITIONA_ANSI_MAPPING to COLOR_ANSI_EXTRA_MAP to better match the settings naming scheme. 2017-02-12 10:53:50 +01:00
Tehom
f263ea2aaa Allow additional ansi mappings to be passed from settings for easier customization. 2017-02-12 10:53:50 +01:00
Griatch
80f7bb1cb5 Change command-default setting names to be more consistent with other settings; changed Command.msg_share to Command.msg_all_sessions to make it clearer what it does. 2017-02-12 10:35:30 +01:00
Tehom
fafe2e779e Added comments to the individual settings. 2017-02-12 10:35:30 +01:00
Tehom
a54e511413 Made defaults drawn from settings file to allow them to be modified 2017-02-12 10:35:30 +01:00
Simon Vermeersch
8dcd242d3b Cosmetic changes to the webclient options
- Renamed the used attribute
- Changed to use only one inputfunc
2017-02-05 12:19:16 +01:00
Simon Vermeersch
221aa362ab Adds retrieving, monitoring and storing of webclient settings 2017-02-05 12:19:16 +01:00
Griatch
ff1ee76421 Fix case of guest not getting properly deleted when logging off. Resolves #1194. 2017-02-04 13:06:09 +01:00
Griatch
13f919fc63 Change default IDLE_TIMEOUT to -1; no need for a timeout during development. 2017-01-30 00:09:03 +01:00
Griatch
92ec6a5ae8 Fix traceback due to missing settings.CHANNEL_CONNECTINFO; added the missing setting (with a None value). Resolves #1177. 2017-01-28 09:46:37 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
Griatch
b57b807da6 Make lockwarning log file name settable; turn off if not set. Resolves #1161. 2017-01-11 21:37:32 +01:00
Griatch
744cf4dd08 Change IN_GAME_ERRORS setting to True by default. This should make it easier to handle debugging for newcomers (although some errors will still have to only go to the log, such as critical reload errors). Note that this should be turned off in production for security reasons. 2016-12-18 09:21:42 +01:00
Griatch
2d30e6cf95 Slight rewording of maxlen warning. 2016-12-13 21:02:13 +01:00
Tehom
b41053dd38 Default value for MAX_CHAR_LIMIT and convert to int to catch early errors 2016-12-13 07:22:50 -05:00
Tehom
760c5b41fc Put in check for maximum character size in input strings that can be set with settings.MAX_CHAR_LIMIT. 2016-12-13 06:53:35 -05:00
Griatch
a20e7d017d Updated docstring for multimatch config settings. 2016-11-17 12:52:30 +01:00
Greg Taylor
4424dec668 Remove broken and un-maintained IMC2 support.
As discussed with @Griatch, IMC2 is now rarely seen in the wild. Also, this
feature hasn't worked in ages. Time to de-clutter.
2016-10-28 22:53:43 -07:00
Griatch
5a5884f6da Add PROTOTYPE_MODULES to settings_default, making use of world/prototypes.py already being defined. 2016-09-13 18:03:50 +02:00
Griatch
e6f857a536 Remove setting.SEARCH_MULTIMATCH_SEPARATOR, replacing it with SEARCH_MULTIMATCH_REGEX and SEARCH_MULTIMATCH_TEMPLATE. This allows simple yet powerful control over the error output without needing to overload the parser. 2016-09-11 10:39:47 +02:00
Griatch
ca1b76ab02 Remove WEBSOCKET_ENABLED and adjoining vars from settings_default since it doesn't do anything; webclient uses WEBSOCKET_CLIENT_ENABLED etc. 2016-08-20 09:36:30 +02:00
Griatch
64c74c41a1 Add a plugin mechanism for the webserver with settings.WEB_PLUGIN_MODULE. 2016-06-12 18:00:28 +02:00
Griatch
2f655abf1a Added the possibility to overload the dynamically created ChannelCommand. Implements #887. 2016-05-22 20:49:46 +02:00
Griatch
984c6f9758 Added the ability to overload the default command parent. Implements #923. 2016-05-22 20:49:46 +02:00
Griatch
9b62b8bda8 Updated with more info on the IDLE_COMMAND setting. 2016-05-22 20:49:45 +02:00
Griatch
644cf9451f Removed deprecated non-nested {inlinefuncs, only accepting (). Changed the default name of the mygame/server/conf/inlinefunc.py to mygame/server/conf/inlinefuncs.py. Added deprecationwarning for the old name. 2016-05-22 20:49:45 +02:00
Griatch
4cb19bec59 Added IN_GAME_ERRORS setting for convenient debugging during development (False by default) 2016-05-22 20:45:41 +02:00
Griatch
6782ff1333 Made the default_settings file itself detect GAME_DIR, leading to a lot less cookie cutter in the gamedir/server/conf/settings.py file. Refactored the detection algorithm also in the launcher. 2016-05-22 20:45:39 +02:00
Griatch
9bf09365d2 Fixed deprecation warnings in urls from django1.9. Switched to new TEMPLATES setting. 2016-05-22 20:45:39 +02:00
Griatch
4ab049709d Changed inputhandler/oochandler to monitorhandler and made inputhandler_funcs into just inputfuncs.py 2016-05-22 20:45:06 +02:00
Griatch
e4d50ff74e Changes to the input-handling interface, to support function calls; also changing oob system to be inputhandler system, making it all work in the same way (no separation between text and oob anymore). 2016-05-22 20:45:05 +02:00
Griatch
f42d27a459 Refactored the webclient layout to correctly identify the template. 2016-05-22 20:45:05 +02:00
Griatch
4fd06b8976 Cleaned up the web folder to make two separate 'apps'-webclient and website, each with their own static and template dirs. Also merged the prosimii template files into the website template folder. This will make it clearer how to override, since the static/template_override dirs will now look like website/static/... etc rather than using the template names, of which we only ever have used one anyway. 2016-05-22 20:41:36 +02:00
Griatch
786edf4677 Fixed some errors in crop inlinefunction. Coloration does not work in nested inlinefunc outside of escaped strings ... not sure if this something worth to try to resolve or if an escaped string is just the right way to have them. 2015-11-28 18:25:05 +01:00
Ahmed Charles
bcd8674ef3 Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Griatch
2743f98fb0 Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795. Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils. 2015-09-27 13:05:29 +02:00
Griatch
5429ede5f7 Changed how the webclient looks up the webcocket_url. This auto-lookups the url while still respecting a custom given settings.WEBSOCKET_CLIENT_URL (for proxy setups?). This means settings.WEBSOCKET_CLIENT_URL is now defaulting to None. Resolves #806. 2015-09-27 09:57:23 +02:00
Griatch
1d17302d16 Refactoring to go with the fixed AMP structure and methods. 2015-09-21 16:50:05 +02:00
Kelketek
3fcee453b9 Update template_dirs search paths for override 2015-09-03 15:55:12 -05:00
Griatch
cc2b094bc6 Moved lineditor into utils/eveditor.py. The line editor is accessed by simply importing the class (same as EvTable, EvMenu etc), so the utils.get_line_editor function was removed. 2015-07-09 14:37:09 +02:00
Jonathan Piacenti
a5887d23e2 Make command ambiguity handler pluggable. 2015-06-20 13:18:50 -05:00
Peter Finlayson
0c076b3966 removed references to closed issue #241 2015-05-18 19:30:34 +02:00
Griatch
64c6d06d0f Fixed the loading of the menu_login contrib, doing some cleanup in the error reporting at the same time. Also added evennia to the search path for cmdsets and typeclasses so that one can give the path to e.g contrib when loading. 2015-05-17 00:49:41 +02:00
Griatch
37763ceca5 Added MAX_CONNECTION_RATE, MAX_COMMAND_RATE for throttling various aspects of input as a DoS measure as per #640. 2015-05-15 01:51:09 +02:00
Griatch
63ddf1cbae Update settings_default.py
Added a more correct description to the WEBSOCKET_CLIENT_URL setting to emphasize it is entered without a port number.
2015-04-21 20:14:29 +02:00
Griatch
e3c3214f9f The at_initial_setup hook was called with the wrong name in setup_default. Fixed now. Resolves #743. 2015-04-17 11:37:44 +02:00
Griatch
3ebc55da82 Changed datetime setter to use utils.timezone instead of naive datetime stamps, as per #728. 2015-03-27 07:05:13 +01:00