Commit graph

3072 commits

Author SHA1 Message Date
NatePri
f12adcf976 Enable strict mode on scripts, clean up some unremoved references 2016-05-22 20:45:42 +02:00
NatePri
2134d6dd4a Minor webclient enhancements
- Fixed window resize bug
- Improved history handling to be less destructive to text the user has
entered
- Made input area automatically resize to fit its contents
2016-05-22 20:45:42 +02:00
Griatch
de177398aa Made sure to handle the default mudlet GMCP sends. 2016-05-22 20:45:42 +02:00
Griatch
056fa5f3d2 Removed superfluous import. 2016-05-22 20:45:42 +02:00
Griatch
fd50eaddba Fixed an error in channel.msg. Made sure to return a deferred from tail_log_file as its documentation suggests it should. 2016-05-22 20:45:42 +02:00
Griatch
4a58fcb9f1 Made the tail-viewing of a log-file threaded for maximum asynchronicity. 2016-05-22 20:45:42 +02:00
Griatch
5583a8d758 Made channels log to a log file by default. Added a default /history switch to the channel commands (for viewing past entries) and implemented a very efficient tail_log_file function to scan the log and display it. 2016-05-22 20:45:42 +02:00
Griatch
d00ff9ae32 Added dynamic formatting to comm channel, as inspired by the way done in Arxmush. 2016-05-22 20:45:42 +02:00
Griatch
653a46b7ad Fixed EvMenu, it was not updated to self.caller from self._caller properly. 2016-05-22 20:45:42 +02:00
Griatch
4acea5a20d A rudimentary OOB input parser from the webclient, for testing. 2016-05-22 20:45:42 +02:00
Griatch
4ccd78a97e Put all gmcp commands under the Core module for simplicity and compatibility with all the other protocols. 2016-05-22 20:45:42 +02:00
Griatch
1ac81205c3 Completed tests of all GMCP/MSDP backend functions, including tickerhandler repeats and value monitoring, as per #924. 2016-05-22 20:45:42 +02:00
Griatch
4883512342 Fixed and tested the monitor/unmonitor inputfunc from both GMCP and MSDP 2016-05-22 20:45:41 +02:00
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