Commit graph

4459 commits

Author SHA1 Message Date
Griatch
899ce2f138 Extended dbserialize to safely serialize Session instances. Sessions can otherwise not be safely stored since they contain references to database objects (like puppets and players) 2016-05-22 20:45:41 +02:00
Griatch
bd4ffa06f8 Fixed a misplaced comment that hid a traceback on error. 2016-05-22 20:45:41 +02:00
Griatch
39e3618ae5 Made Core.Commands.Get/get_inputfuncs work. 2016-05-22 20:45:41 +02:00
Griatch
a1c89d615e Fixed parsing in option command and inputfunction to properly handle options set in both ways. 2016-05-22 20:45:41 +02:00
Griatch
043be6dba4 Validating GMCP/MSDP protocol commands, first debugging run and fixes to make a few of the default inputfuncs work. Added INPUTDEBUG to the options dict, to echo input function errors directly. 2016-05-22 20:45:41 +02:00
Griatch
76dc51f885 Changed EvMenu._caller to .caller to mark it public to use by external resources. 2016-05-22 20:45:41 +02:00
Griatch
287eb926f2 EvTable now accepts an input_parser argument for replacing the way user input is parsed in the menu. The formatters should now accept a keyword 'caller'. Also some internal methods like _display_node is now display_node to mark them as useful to the an external parser. 2016-05-22 20:45:41 +02:00
Griatch
f1b97f633b Added LOCKDOWN_MODE, for shutting the server off from all external connections (for example while configuring, debugging or just taking a live server temporarily offline). 2016-05-22 20:45:41 +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
4f02ec1cbe Implement the MSDP/GMCP wrappers for the backend inlinefuncs as per #924. It's not fully tested yet though. 2016-05-22 20:45:41 +02:00
Griatch
8709ffefb8 Fixed a non-functioning MXP call using the |-style format. 2016-05-22 20:45:41 +02:00
Griatch
5f0ba55ce1 Fixed color display of xterm256 with the xterm256 support turned off. 2016-05-22 20:45:41 +02:00
Griatch
42b9ac40f3 Some cleanup in inputfunc module. 2016-05-22 20:45:41 +02:00
Griatch
0ffec10dd0 Added MSDP/GMCP wrappers Inputfuncs as per #924. Not fully tested yet. 2016-05-22 20:45:41 +02:00
Griatch
c093fd3880 Updated the monitorhandler to allow persistence as well as a unique id-key. 2016-05-22 20:45:41 +02:00
Griatch
d8bfb6d4a2 Inputfuncs for some more MSDP/GMCP commands. Still untested. 2016-05-22 20:45:40 +02:00
Griatch
ad158e1816 Fixed unittests for wclient branch 2016-05-22 20:45:40 +02:00
Griatch
3d6fa94d9a Updated client_options inputfunc to also return current settings over OOB. 2016-05-22 20:45:40 +02:00
Griatch
b1b8abf46a Added the protocol_key to the new options-output. 2016-05-22 20:45:40 +02:00
Griatch
db1356057a Improved the options command to manage other aspects of the protocol_flags. 2016-05-22 20:45:40 +02:00
Griatch
11ecdef7c8 Converted encoding setting to use protocol_flags rather than being stored on-session. Also renamed the 256 COLORS TTYPE setting to XTERM256 which is more accurate (and doesn't have a space) 2016-05-22 20:45:40 +02:00
Griatch
1ddfbca7ea Finished changing session.screenreader into session.protocol_flags[SCREENREADER] 2016-05-22 20:45:40 +02:00
Griatch
df674f687a Added GMCP-to-inputfunc name conversion as Module.Cmdname -> Module_CmdName. Also made Session.protocol_flags into a flat dict, by putting all TTYPE properties in the top level (the TTYPE key now only indicates if TTYPE has finished or not). Also started to convert the screenreader/enconding properties of the session into protocol_flags. (not fully working yet) 2016-05-22 20:45:40 +02:00
Griatch
f3512971e3 Created setter inputfuncs for the basic GMCP handhakes. Also added
the possibility for the Server to sync a single Session with the
Portal.
2016-05-22 20:45:40 +02:00
Griatch
196306d914 Added monitorhandler to flat API. 2016-05-22 20:45:40 +02:00
Griatch
bece57f067 Added non-persistent functinality to the TickerHandler, for specific use with OOB. 2016-05-22 20:45:40 +02:00
Griatch
e09a172854 Fixed a regression that had non-persistent Scripts not being deleted as they should on server reload. Also prepared for the same functionality for tickerhandler tickers. 2016-05-22 20:45:40 +02:00
Griatch
42d18e3fd7 Clarified the batchcommand docstring in contrib/examples. This
concludes the tickerhandler implementation in relation to #924.
2016-05-22 20:45:40 +02:00
Griatch
de445b82d0 Made tickers output a little prettier. 2016-05-22 20:45:40 +02:00
Griatch
350b872612 Expanded docstring for the tickers command a little. 2016-05-22 20:45:40 +02:00
Griatch
cc5fe43372 Added a simple tickers command for inspecting the running tickers (no manipulation at this time, not sure how to make that in a safe way). 2016-05-22 20:45:40 +02:00
Griatch
dd6b6f06f7 Working new tickerhandler, handling both methods and functions. 2016-05-22 20:45:40 +02:00
Griatch
bd7f9dfe47 Almost working new tickerhandler. Still some errors with using idstrings. Also still some debug messages in place. 2016-05-22 20:45:39 +02:00
Griatch
77b178bf28 First version of a reworked tickerhandler. It will now also repeat normal functions in a module, not just methods on a database object. This means a backwards incompatible change, and API - old tickerhandler repeats will not restore properly with this. Currently untested. 2016-05-22 20:45:39 +02:00
Griatch
8090d92d85 MonitorHandler implemented as a replacement for the OOBHandler monitor functionality, as per #924. 2016-05-22 20:45:39 +02:00
Griatch
198a348d73 Changed some wording 2016-05-22 20:45:39 +02:00
Griatch
faee3510a8 Added a evennia --initsettings for adding an empty settings file to an existing game directory. Made error messages on missing settings files more informative, as discussed on the mailing list. 2016-05-22 20:45:39 +02:00
Griatch
a575942ea6 Fixed a non-functioning Command.set_aliases method. 2016-05-22 20:45:39 +02:00
Griatch
a3e198e857 Cleaned out SSL debug data. Tested with tinyfugue version 5 beta 8, using /connect -x flag to connect with SSL support. 2016-05-22 20:45:39 +02:00
Griatch
2dbae4d8a9 First cleanup of SSL connection, not working yet. 2016-05-22 20:45:39 +02:00
Griatch
006b898e66 Fixed a lingering reference to the inputhandler (now monitorhandler) 2016-05-22 20:45:39 +02:00
Griatch
b630315007 Fixed an data_out call in SSH. 2016-05-22 20:45:39 +02:00
Griatch
ccdc58d652 Mde the SSH protocol compliant with the new system, as per #924. There is no known client with SSH OOB capabilities, so this protocol only accepts text output and will output prompts on the same line. 2016-05-22 20:45:39 +02:00
Griatch
a28ae2728e Make the address reporting homogenous to the IP for each protocol. 2016-05-22 20:45:39 +02:00
Griatch
ddb87d6aea Made IRC work with new send mechanism, as per #924. 2016-05-22 20:45:39 +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
26c99f1ece Added a missing template to the game_template 2016-05-22 20:45:38 +02:00
Griatch
b8d7fae786 Fixed up the webclient html+css to make for a workable example. 2016-05-22 20:45:38 +02:00
Griatch
b11c746f8f Silenced the unhandled events from websocket connections. 2016-05-22 20:45:38 +02:00