Commit graph

3368 commits

Author SHA1 Message Date
Griatch
1981f8073f Lots of debug messages. 2016-10-15 22:48:38 +02:00
Griatch
cc76de348e Changed how duplicates is passed down the cmdset merge stack. 2016-10-15 22:48:38 +02:00
Griatch
edacd58eab Refactor get_and_merge_cmdsets to merge all cmdsets in one place rather than sub-merging them separately on each object first. See #1087. Also changes the names of the auto-added _exitset to ExitCmdSet and _channelset to ChannelCmdSet. Allow Channel cmdsets to also be identified on Objects. 2016-10-15 22:48:38 +02:00
Griatch
bac6c7f234 Continue adding unit tests to cmdhandler.get_and_merge_cmdsets function. Not finished yet, unclear how to propagate the options correctly. 2016-10-15 22:48:38 +02:00
Griatch
40e1c67f88 Change how cmdset options are merged by priority - this is now a straight priority order, where the option from the higher prio goes. Also add unit tests for cmdset mergers. 2016-10-15 22:48:38 +02:00
Griatch
300758b2dd Testing a new variation on cmdset merging, as per #1087. 2016-10-15 22:48:37 +02:00
Griatch
c7b689c1d8 Fix unittests and a lingering error in the solution to #1073. 2016-10-13 22:10:49 +02:00
Griatch
f59c9fd573 Fix bugs in alias-searching for objects. Resolves #1048. 2016-10-13 21:53:54 +02:00
Griatch
fb96b44324 Fix searching from a ContribRPObject. Resolves #1073. 2016-10-13 20:34:09 +02:00
Griatch
d32e7a8282 Make examine represent Session id's in a less confusing way, as exemplified by #1075. 2016-10-13 20:25:52 +02:00
Griatch
a467d2984e Make TestCommand unittest base handle non-text outputfuncs from msg() calls. This is done by primarily using text, and if that is None, by converting the entirety of the alternative kwargs to strings. Implements #1091." 2016-10-13 20:13:13 +02:00
Griatch
95aa505b45 Add the evennia.utils.gamtime.reset_gametime() function, for restarting gametime from a later time than the server creation time. 2016-10-12 20:27:21 +02:00
Griatch
070e4924e9 Refactored the talking_npc a little, made the contributed changes work. 2016-10-11 22:12:18 +02:00
grungies1138
849f4bde71 Update talking_npc.py 2016-10-11 22:12:18 +02:00
grungies1138
eb4be28d88 Update talking_npc.py
updating talking_npc to use the current Menu system
2016-10-11 22:12:18 +02:00
Tehom
3ff9eac86c Have lockshandler fail gracefully rather than cause a server crash 2016-10-07 10:06:49 +02:00
Tehom
ae5848dd0b Overload the 'last', 'first', and 'count' queryset methods to work for the TypedObjectManager. 2016-10-07 10:04:20 +02:00
hatetank
23e658acf9 minor typos updated 2016-10-07 10:01:26 +02:00
Griatch
e2e6f35d11 Let EvMenu accept arbitrary kwargs as initialization properties (available through caller.ndb._menutree). 2016-10-04 18:16:00 +02:00
Griatch
40a985c791 Make some docstring updates. 2016-10-02 21:59:19 +02:00
Griatch
00c64b10bb Make sure msg(text=None) means that text should not be used (None must be converted to a string to send). Resolves #1077. 2016-10-02 21:51:15 +02:00
Griatch
2b35140fe3 Implement a more throughough cache-flush mechanism. This makes sure to flush foreignkey cache relations for objects not affected by flushing (normally objects with an NAttribute stored in them). Without ForeignKey flushing, the location of such objects would remain cached and drift out of sync, leading to content caches in turn desyncing. Resolves #1064. 2016-10-02 20:52:05 +02:00
Griatch
15025c0586 Added at_idmapper_flush to allow objects more control of their flush characteristics. 2016-10-02 20:52:05 +02:00
Griatch
cd616caf29 Debug tests for trying to catch the flushmem bug #1064. 2016-10-02 20:52:05 +02:00
Griatch
589d6737db Make channelhandler easier to import at different stages without a circular import problem. 2016-10-02 15:54:57 +02:00
Griatch
73bb293156 Fix a tracebac in page due to calling Msg.date_sent instead of Msg.date_created. 2016-10-02 14:15:18 +02:00
Trent Robbins
91874f5339 Removed reference to target after target.at_desc. This allows the target to delete itself in response to being looked at without throwing an error. 2016-10-02 13:40:28 +02:00
Tehom
c5c3a9ef0a Resolves player confusion with the EvMore display, making it more clear that 'n/next' is used for continuing, makes 'look' repeat the display, and notifies them when they exit. 2016-10-02 13:36:29 +02:00
Griatch
d407de4dc3 Refactoring of the EvMore to use the new justifier functionality and also properly deal with very long single lines. 2016-10-02 13:11:49 +02:00
Griatch
4e9d070b64 Save the cmdset stack before entering batchcommands in order to properly re-establiish the stack after batch runs instead of simply clearing it. Resolves #1085. 2016-10-01 15:41:10 +02:00
Trent Robbins
eb4618625d Added support for single quotes, escaped hyphen and converted regex string to raw. 2016-10-01 13:55:09 +02:00
Trent Robbins
89c3a1f846 Removed single quote parsing from player 'connect' and 'create' command parsers. 2016-10-01 13:55:09 +02:00
Tehom
cd04ea4c62 @color didn't escape the | symbol after it became used as an ansi control character, which messed up the formatting of the help file 2016-10-01 13:52:27 +02:00
Dan Feeney
7f63393cb7 modified msg_contents to allow objects without get_display_name to be included in mapping 2016-10-01 13:50:11 +02:00
Griatch
402a4c8aa0 Add support to has_cmdset for cmdset instances as suggested in #1083. 2016-10-01 13:47:35 +02:00
Dan Feeney
78d422dd7a modified has_cmdset to accept either a cmdset's python path or key 2016-10-01 13:47:35 +02:00
Tehom
d1c2c0f8d3 Added 'blank=True' to all the null fields in Msg. 'blank' is not redundant with 'null' - it's a constraint for django admin's validation. Without blank=True, a field cannot be left empty. 2016-09-21 17:33:19 -04:00
Tehom
4639ed8f7e Resolves traceback error when object is moved to a room rather than a player from None location. 2016-09-21 01:02:51 -04:00
Griatch
47fa88e0fc Slight rephrasing of a docstring. 2016-09-20 16:30:31 +02:00
Dan Feeney
d88d882439 moved msg_contents to DefaultObject 2016-09-20 16:30:31 +02:00
Dan Feeney
a45ddf84fe override the default msg_contents on ContribRPRoom to accept a mapping of format tokens to objects which will have get_display_name called 2016-09-20 16:30:31 +02:00
Dan Feeney
8cba8ab429 added the append saver method 2016-09-20 16:19:46 +02:00
Griatch
e2f5a4368f Fix logical error in extended_room desc-setting. Resolves #1068. 2016-09-20 08:50:41 +02:00
Griatch
9bab96e0e8 Set the method to better report a malformed lockfunc rather than to raise a traceback. 2016-09-19 07:13:23 +02:00
Griatch
22e6cb4f8f Add typeclass kwarg to player.search; make player.search search all playerdb-derived typeclasses by default. Resolves #1057. 2016-09-15 13:34:17 +02:00
Griatch
ece023d5ee Correct a typo. 2016-09-14 23:44:22 +02:00
Griatch
4a97a05c10 Some minor fixes and cleanups. 2016-09-14 23:27:55 +02:00
Griatch
07944918f7 Implement a custom authenticate middleware to correctly handle already-authenticated players in auto-connect webclient mode. Resolves #1037. 2016-09-14 22:33:06 +02:00
Griatch
86f963fa71 Make sure a player associated with a connected Session is always tagged as is_connected. Resolves #1061. 2016-09-14 22:01:32 +02:00
Griatch
14e9dafda2 Update docstring for webclient server component. 2016-09-14 19:33:50 +02:00