Griatch
1d6873eef4
Fix caching error in new cmdset merge regime. Removed debug messages.
2016-10-15 23:22:33 +02:00
Griatch
a61a33e87d
Refactor ChannelHandler. Fix issues with new cmdset merge procedures.
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
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
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
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
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
Griatch
72d4bb4de7
Fix so as to not send traverse messages to the traverser. Fixes unittests.
2016-09-09 07:52:48 +02:00
Griatch
e373e1733b
Make the move transition hooks use get_display_name to make them compatible with the rpsystem contrib as per #1051 .
2016-09-08 22:11:22 +02:00
Griatch
1da9217a18
Return no match if using obj.search() with an empty list of candidates. This accounts for candidate lists that are created dynamically, for example limiting them to the inventory (which may be empy). Resolves #1016 .
2016-08-20 11:00:33 +02:00
Griatch
d76b7b0454
Add use_dbref kwarg for turning off #dbref lookup in obj.search. Resolves #990 .
2016-08-19 22:14:51 +02:00
Griatch
69252340d9
Change move_to behavior when moving from None location. Before, this would force a source location (usually home) but this hides the actual source location, and a None-location has been handled by the announce hooks for some time. Resolves #1011 .
2016-08-07 19:57:13 +02:00
Griatch
b014df00de
Clairifed the docstring for object.search.
2016-06-22 13:50:07 +02:00
Griatch
15036e8069
Revert "Fix problem with trying to pass non-text to msg(text=...). Resolves #996."
...
This reverts commit 8fe631d808 .
2016-06-15 19:54:47 +02:00
Griatch
8fe631d808
Fix problem with trying to pass non-text to msg(text=...). Resolves #996 .
2016-06-15 08:11:00 +02:00
Griatch
4fafa22e86
Added some more doc texts to the puppet hooks of Objects to show how to get the player and sessions at that state. Resolves #992 .
2016-06-05 09:50:36 +02:00
Griatch
dcbf2ed9c1
Removed an erroneous text-conversion in msg() that made it impossible to add custom text outputcommands. Resolves #986 .
2016-06-01 23:23:27 +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
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
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
4817ec90b3
Changed the OOB message structure to include sending text data as well; still not working fully.
2016-05-22 20:45:05 +02:00
Griatch
aa1fcfe6e1
Changed the @find pperm lock to perm, since the player will be checked automatically anyway and this works better with @quell.
2016-03-23 00:44:18 +01:00
Griatch
24c733f7cb
Made builders and above see #dbrefs in various admin commands.
2016-03-22 15:17:50 +01:00
Andrew Bastien
270037455a
Added connection_time and idle_time properties to DefaultCharacter class.
2016-03-13 04:59:57 -04:00
Kai Huang
882a70ae4b
Reverted incorrect internationalization in objects.py
2016-02-08 18:26:55 +01:00
Kai Huang
fd2f762730
Internationalization for comms and objects.
2016-02-08 18:26:55 +01:00
Griatch
0bf05a8795
Removed at_before_traverse hook completely since it was not used and also makes no sense to use due to how exits works. Overload at_traverse if wanting to tweak how traversal happens. Resolves #902 .
2016-01-20 18:58:41 +01:00
Griatch
03d415beb1
Fixed errors due to the removal of execute_cmd("look") calls in the
...
latest revisions - this turns out to bypass the normal use of cmdsets
to control things like the dark room in the tutorial. Resolves the
second mentioned error in #889 .
2015-12-15 19:26:42 +01:00
Ahmed Charles
76dc0545c4
Remove unused traceback imports.
2015-11-15 20:40:03 +00:00
Griatch
0a509470f7
Removed some debug info
2015-11-15 20:36:33 +01:00
Griatch
45f973fdb6
Made unittests work with changed Session apis. Resolves #808 .
2015-11-15 20:36:18 +01:00
Griatch
efefe3e5ff
First version of changed sessid->session change that starts properly. Not fully tested yet.
2015-11-14 21:43:58 +01:00
Griatch
709f5ff5b3
Reworked most of the system to use sessions directly instead of sessids by the introduction of on-object sessionhandlers. No debugging done yet.
2015-11-14 18:36:19 +01:00
Ahmed Charles
487fcdf873
Use list* from future.utils.
...
dict.keys() -> list(dict)
dict.values() -> listvalues(dict)
dict.tems() -> listitems(dict)
2015-11-09 10:23:00 +00:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01:00
Ahmed Charles
7645338218
Fix indentation.
2015-11-01 21:16:41 +01:00
Griatch
c58f858339
Reworked that look() methods on Players and Objects into at_look. They were also changed to accept pre-searched target objects rather than the command string. They also return a processed look string rather than sending it directly. The reason for this is that methods on the typeclass should not be handling command parsing - this should be the exclusive job of Command.parse in order to make command parsing completely contained withing one system. Likewise, it makes for more flexibility to not call self.msg() inside at_look but to let the outside caller do this explicitly - it might want to modify and append to the string before sending it off (something not used anywhere yet but which may be interesting). In order to correctly keep parsing entirely in the command body for the player, I made a custom parent for CmdOOCLook and CmdOOC, which does the parsing of the 'playable' characters already at the parse() step, storing the result in the .playable property on the (player-) command. This technique could probably be applied to other player commands looking up the _playable_characters Attribute, in order to centralize it.
2015-11-01 17:13:00 +01:00
Ahmed Charles
c51ccd5bc7
Typo in objects.py.
2015-11-01 15:24:40 +01:00
Ahmed Charles
caddb8b79b
Add look() on DefaultObject.
2015-11-01 15:11:39 +01:00
Ahmed Charles
53227cda3e
Add for_contents() which runs a function on an object's contents.
2015-11-01 15:11:12 +01:00
Ahmed Charles
8a66fc40a9
Use with_metaclass from future.utils for python3 compat.
2015-11-01 15:11:12 +01:00
Griatch
50371b6abd
Merged conflicts.
2015-10-19 23:32:00 +02:00
Ahmed Charles
48f1d0b26f
Remove commented out logger calls.
2015-10-19 23:31:19 +02:00
Ahmed Charles
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Griatch
6a11da1714
A lingering wrong call to at_search_result that was missed in the previous changes. Resolves #813 .
2015-10-08 10:59:21 +02:00