Commit graph

239 commits

Author SHA1 Message Date
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
ce0bfe8a0d Made some corrections to the if tree. Resolves #1042. 2016-09-07 23:49:30 +02:00
Dan Feeney
4330d37f20 fixed error occurring when caller does not have a player attribute 2016-09-07 23:49:30 +02:00
Griatch
f6286accea Make chardelete work also if switching ic/ooc state. Made the same fix to evmenu itself. Resolves #1035. 2016-09-03 15:47:14 +02:00
Griatch
af8e54c027 Fix player/char reference in evmore, also fixed a calling bug in evmore.msg using the wrong kwarg. 2016-09-03 12:10:57 +02:00
Griatch
086beb1c26 Remove non-functional retval from utils.delay, making it a straight wrapper for twisted.reactor.callLater. 2016-09-02 17:17:50 +02:00
Griatch
756d4be4bc Fix missing rotate argument for deque-attriutes, actually commit unittest updates. 2016-09-02 14:32:42 +02:00
Griatch
88b217c0b8 Add support for collections.OrderedDict and collections.deque to Attribute serializer mechanism. Also some cleanups in dbserializer. 2016-08-31 22:45:57 +02:00
Griatch
00881c3bbe Make _SaverList properly handle index/remove operations. Resolves #1027. 2016-08-31 14:45:56 +02:00
Griatch
46ac4d3928 Add chardelete command to ooc menu for MULTISESSION_MODEs > 1. Also strip the result string from get_input helper to get rid of the carriage return always sent due to the user committing the command string. 2016-08-28 23:15:46 +02:00
Griatch
6fbdc88a27 Fix webclient ANSI background handling. Made bright ANSI backgrounds visible in color command. Resolves #1001. 2016-08-28 19:31:19 +02:00
Griatch
4e9c8aecec Fix webclient to handle changed xterm256 formula correctly. 2016-08-28 17:52:24 +02:00
Griatch
668029e82e Changed xterm256 formatting to work with Potato. Also added Potato as a TTYPE exception since the client doesn't report itself correctly. 2016-08-28 16:36:44 +02:00
Griatch
9ec875f29c Add justify(text,width,align,indent) function to utils. Supports full-,left-,right- and center justification of text to any width. It also has an option to add left-side indentation to the text block. 2016-08-26 01:04:23 +02:00
Griatch
ecb7d6fcc5 Change utils.wrap() to indent on all lines, not only the lines following the first. If someone remembers why this default was set, do report it. 2016-08-25 18:36:21 +02:00
Griatch
7285cab2db Refactor batchcode processor to be more stable. Did multiple clean-ups. Implements #939. Fixes #909. Fixes #937. 2016-08-24 23:44:29 +02:00
Griatch
6c34cb40ed Update pypath_to_abspath to make batchfile file lookups much more reliable. This is done as part of the batchprocess refactor #939. 2016-08-24 20:37:11 +02:00
Griatch
89568b5277 Add 'exec' argument to spawner prototype for running arbitrary code as part of object creation. Make all prototype keys also settable with a callable. 2016-08-21 23:03:42 +02:00
Griatch
49087b50d1 Allow multi-character keys for EvForm cells and tables. This was due to a too restrictive regex. Resolves #1014. 2016-08-20 11:41:53 +02:00
Griatch
9da1051f83 Fix a bug in to_str() that caused it to not actually try alternative encodings when converting. 2016-08-17 18:37:31 +02:00
Griatch
8b6891428f Add an extra layer of encoding recovery when sending data to sessions, as per #800. 2016-08-17 12:30:44 +02:00
Griatch
818b8a9c51 Added desc kwarg to create_script to allow setting of desc at runtime. 2016-08-07 12:23:57 +02:00
Griatch
96542418c0 Made sure that the various _SaverMutable objects evaluate to False when they are empty. 2016-06-26 11:56:58 +02:00
Griatch
b1de659e8b Migrate! Add nick-templating system, first version. This allows arg templating of nicks to allow a user to completely redefine how they enter commands. Still some bugs. 2016-06-25 23:23:13 +02:00
Griatch
c15f107ad9 Add webclient support for blink, underline and inverse ANSI tags. The inverse tag will produce a dotted outline in the webclient; for now this seems to be no obvious way to inverse the background in a way similar to the terminal inverse. Resolves #976. 2016-06-24 23:22:38 +02:00
Griatch
418395bd01 Added \| to the rest regex for nested inlinefuncs. Resolves #989. 2016-06-24 18:38:23 +02:00
Griatch
03ef093d36 Resolves problems in storing/restoring tickerhandler keys. Resolves #997. 2016-06-24 18:15:01 +02:00
Griatch
ddd9387777 Fixed a traceback in SEARCH_AT_RESULT when getting multi-matches for commands. 2016-06-15 21:51:43 +02:00
Griatch
6a160b4204 Fix how the lock command returns strings to avoid a malformed AMP send. This (again fixes ##996. 2016-06-15 21:33:05 +02:00
Griatch
bdcc093c23 Make tickerhandler correctly clean subs to deleted objs.
Also makes the dbunserialize mechanism a little more robust, making it return None instead of crashing when unpacking an invalid packed-tuple.
2016-06-14 22:04:41 +02:00
George Oliver
36c938b06a changed string to add newlines upon insert of batchcommand file fixes #984 2016-06-12 12:13:47 +02:00
Griatch
e0d4f6a6c3 Fixed a bug in channelhandler if the channel had no desc. 2016-06-04 19:41:17 +02:00
Griatch
730d08e790 Fixed a bug in obj_from_dbid (obj_from_dbref). Resolves #980. 2016-06-01 23:09:33 +02:00
Griatch
81170b69d0 Added validationMade() to websocket protocol, to be able to parse the
incoming host information at connection (for getting the browser
session id directly from the path as ws://.../?csessid).
2016-05-31 15:36:48 +02:00
Griatch
ecf6852d46 Made EvCels auto-close colors rather than bleed over. This is necessary to avoid accidental color clashes in tables that fill the cells to a |-border edge (particularly for EvForm. 2016-05-23 23:56:44 +02:00
Griatch
f99ee27382 Removed some test data. 2016-05-22 20:49:46 +02:00
Griatch
8b5c135d01 Changed how xterm256->HTML regexes are compiled at start-time; the regex compilation previously caused a startup delay of up to 15 seconds. After the rework, this time is down to 0.004 seconds. 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
Sina Mashek
7e3bc95c4c Removed 'self' from _get_mysql_db_version() 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
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
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
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
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