Commit graph

4407 commits

Author SHA1 Message Date
Vincent Le Goff
937bd01fb8 Replace the dictionary by a module path in the menu definition 2016-05-22 20:49:44 +02:00
Vincent Le Goff
60d78be90c Add a new contrib to support menu_login with EvMenu 2016-05-22 20:49:44 +02:00
Griatch
cd475a0a23 Made sure the the websocket onclose is not called if websocket was never open (such as for clients only supporting ajax) 2016-05-22 20:49:44 +02:00
Griatch
8141935a9b Cleaned up docstrings for evmenu and eveditor. Also, rev 74a3395 referred to EvEditor, not EvMenu (both now support persistent saving) 2016-05-22 20:49:44 +02:00
NatePri
fd6f973816 Removed unneeded onConnectionError handler 2016-05-22 20:49:44 +02:00
NatePri
ef05816b33 Allow for webclient reconnect without a page refresh
- Refactored WebSocket client to not return websocket object directly
- Changed AjaxCometConnection to emit close events in a way that mirrors
WebsocketConnection more closely.
- Added reconnect confirmation dialog.
2016-05-22 20:49:44 +02:00
Griatch
039eb8c824 Added proper error handling to evmenu when trying to use persistent mode with callables that cannot be pickled, such as methods and functions defined inside other functions. 2016-05-22 20:49:44 +02:00
Griatch
adc673f620 Added persistent option to EvMenu, making sure to safeguard against unsafe save states, which comes when trying to save un-picklable callables like methods and functions defined inside other functions. 2016-05-22 20:49:44 +02:00
Griatch
83242408b0 Gave EvMenu a 'persistent' option (False by default). This makes the menu survive a server reboot, including remembering its last node. Use with caution during debugging. Changed the EvMenu API so allow_exit is now auto_exit, which better describes its functionality. Also added auto_look and auto_help flags for turning off the respective automatic options (Resolves #949)." 2016-05-22 20:49:44 +02:00
Griatch
6b8b3907e3 Some typos in editor due to changes to how msg() works in wclient branch. 2016-05-22 20:49:44 +02:00
Griatch
7e62f02f0a Implemented an AJAX keepalive from the Evennia side to make sure a dead AJAX connection (commonly if the user closes the window/browser without properly logging out), will eventually time out and log off the Player. Resolves #951. 2016-05-22 20:49:43 +02:00
Griatch
d5b3b59eb7 Made webclient aware of the server dropping (both websocket and AJAX). The server currently reacts to the websocket client dropping but not to the AJAX one (the latter forms ghost players) 2016-05-22 20:49:43 +02:00
Griatch
c46e115901 Fixed a bug with html-output of the standard ANSI-backgrounds. 2016-05-22 20:49:43 +02:00
Griatch
0451ce7685 Cleaned up the css file a little. 2016-05-22 20:49:43 +02:00
Griatch
509d03a3dc Added webclient-support for xterm256 colors, as mentioned in #613. 2016-05-22 20:49:43 +02:00
Griatch
b0f51b02a6 Fixed and cleaned up the server flush output a little. Also removed a check for pypy since getmemsize is no longer used. 2016-05-22 20:49:43 +02:00
Griatch
609c784b14 Made a small fix for now to make unittest succeed. 2016-05-22 20:49:43 +02:00
Griatch
79f5a4a93a Added the ability to save protocol options on the player level. Implements #957. 2016-05-22 20:49:43 +02:00
Griatch
20403e356b Fixed a case-sensitive regression when setting help categories. Resolves #956. 2016-05-22 20:49:43 +02:00
Griatch
72bdc66022 Fixed a bug in help. Resolves #955. 2016-05-22 20:49:43 +02:00
Griatch
02ba1c0695 Fixed a wrong return from search_player with quiet=True. Fixes a traceback when using the find command to search for a player *me or *self. 2016-05-22 20:49:43 +02:00
Griatch
143df2a793 Clarified the error when trying to examine an object on which you have neither examine, nor view permissions. Resolves #954. 2016-05-22 20:49:43 +02:00
Griatch
fc341b20a0 Added a try..except catch for auto-puppeting objects that no longer exist. 2016-05-22 20:49:43 +02:00
NatePri
a9bc6a1f64 Fix webclient prompt (issue #950) 2016-05-22 20:49:43 +02:00
Griatch
3890bcbfc7 Made the mob invulnerable if it has no health Attribute set. Resolves 2016-05-22 20:45:43 +02:00
Griatch
f57aaa65cd Made the return of multimatch commands more easily parsable by using the query rather than the key. Resolves the second part of #933. 2016-05-22 20:45:43 +02:00
Griatch
08f34ae61b Made the multimatch error messages with the multimatch_string supplied more useful, addressing the first part of #933. 2016-05-22 20:45:43 +02:00
Griatch
3c1245b1a6 Escaped the IRC username to avoid it being parsed for ANSI colors (keeping ansi parsing in normal text for now). Resolves #935." 2016-05-22 20:45:43 +02:00
Griatch
86b6261b02 Fixed bug that made ooc look give an error. Resolves #921. 2016-05-22 20:45:43 +02:00
Griatch
039bb0c540 Fixed the send button in the webclient; made the prompt command work with the webclient (still not displaying correctly) 2016-05-22 20:45:43 +02:00
Griatch
aa1b8357d8 Made a more elaborate echo when resetting the settings file. 2016-05-22 20:45:42 +02:00
Griatch
37a24f12e6 Added a check to avoid creating a duplicate character name with charcreate in MULTISESSION_MODE>1. Resolves 943. 2016-05-22 20:45:42 +02:00
NatePri
8844b7bb80 Added -moz/-webkit CSS prefixes, made sizer CSS consistent 2016-05-22 20:45:42 +02:00
NatePri
67e26103d5 Minor CSS fix 2016-05-22 20:45:42 +02:00
NatePri
f907165dd3 Missed some var declarations 2016-05-22 20:45:42 +02:00
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