Commit graph

3136 commits

Author SHA1 Message Date
Griatch
ded14f0d19 Made the idle call from the ajax webclient more precise. Not sure if this
actually resolves the issue of the idle command not being properly
parsed by the ajax client or not - the error is that only the string
'idle' is sent, which is then split into its components and not
recognized as an input command. The error seems hard to reliably
reproduce.
2016-05-22 20:49:46 +02:00
Griatch
d48125c019 Made the AJAX/COMET protocol correctly report itself so it shows up in the who list 2016-05-22 20:49:46 +02:00
Griatch
089235e2ec Fixed the ajax websocket send of prompts, which should resolve #973. 2016-05-22 20:49:46 +02:00
Griatch
48bea2a7cc Some more cleanup of the ChannelHandler 2016-05-22 20:49:46 +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
e88892642b Added a close warning event to the webclient. 2016-05-22 20:49:45 +02:00
Sina Mashek
7e3bc95c4c Removed 'self' from _get_mysql_db_version() 2016-05-22 20:49:45 +02:00
Griatch
9b62b8bda8 Updated with more info on the IDLE_COMMAND setting. 2016-05-22 20:49:45 +02:00
Griatch
2e692cc639 Made 'idle' a default in the inputfuncs since this is sent by the webclient. settings.IDLE_CMD will still work but will work alongside idle, the latter will always work like a no-op. 2016-05-22 20:49:45 +02:00
Griatch
fc08fc0970 Updated evmenu to use the |-form of mxp links. 2016-05-22 20:49:45 +02:00
Griatch
c18577d772 Updated mxp unittests to pass again. 2016-05-22 20:49:45 +02:00
Griatch
9485e2aefe Re-added MXP-link support to the devel webclient. 2016-05-22 20:49:45 +02:00
Griatch
8f12dd83a3 Fixed an error in the MXP implementation and also removed the deprecated {-form for MXP. Resolves #966. 2016-05-22 20:49:45 +02:00
Griatch
01c6cbf5f0 Made the inlinefunc->inlinefuncs error appear in a safer location since it could fall away in some common situations. 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
b00e357868 Fixed a simple issue if non-text was fed into the msg() call from server-side. Resolves #965. 2016-05-22 20:49:45 +02:00
Griatch
b69340695f Made the move_to error report a little more verbose. Resolves #964. 2016-05-22 20:49:45 +02:00
Griatch
6e606ae530 Fixed a bug when reporting multi-match errors in the default at_search_result with a particular input. Resolves #963. 2016-05-22 20:49:45 +02:00
Griatch
cce87a8399 Fixed old calls to tickerhandler from the tutorial_world. Also added a better error when this happens. This resolves #952. 2016-05-22 20:49:45 +02:00
Griatch
910d539d45 Made evmenu stop echoing 'None' when ending the menu with a None, None return from the node. 2016-05-22 20:49:45 +02:00
Griatch
ea1e88cbe9 Removed the old contrib/menusystem.py. Use EvMenu instead. Renamed evmenu_login contrib to simply menu_login.py for compatibility. 2016-05-22 20:49:44 +02:00
Griatch
7d8dbaf775 Turned off the extra look when logging in with the evmenu_login contrib. 2016-05-22 20:49:44 +02:00
Griatch
68e5c4d283 Added a missing execute_cmd on the Session. It got lost after the inputfunc changes. 2016-05-22 20:49:44 +02:00
Griatch
8bf63885e2 Made some minor updates to the evmenu_login contrib, including adding a max number of password retries before disconnecting as well as fixing how client-exhoes are handled. Also made empty string return rather than 'b'. Also fixed an inconsistency in the Session.msg. 2016-05-22 20:49:44 +02:00
Vincent Le Goff
bf50f5b94a Restructure the node logic in evmenu_login 2016-05-22 20:49:44 +02:00
Griatch
41ad2aed5d Fixed the telnet WILL/WONT ECHO (the echo protocol option) to work as expected from the server side - by telling the client that the server WON'T echo, we are implicitly telling the client that IT should then do the echoing. This is a bit unintuitive and was defined in the wrong order. Fixed now. 2016-05-22 20:49:44 +02:00
Vincent Le Goff
4a6cb039b6 Add the connection screen in the login system 2016-05-22 20:49:44 +02:00
Griatch
1a42ca8006 Fixed the sending of timeout text. Resolves #962. 2016-05-22 20:49:44 +02:00
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