Griatch
f5ba4f6204
Include a missing file for previous commit.
2016-08-19 22:34:15 +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
Griatch
e6a866a150
Made Evennia run with Django 1.9
2016-02-18 10:12:42 +01: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
f56500df9a
Fixed typo in error reporter.
2015-12-15 20:59:05 +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
de0e42240c
Have every class inherit from object.
2015-11-09 10:11:34 +01:00
Ahmed Charles
c9404bfb51
Don't use long, since it doesn't exist in python3.
2015-11-02 00:19:04 +01: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
Ahmed Charles
3188f89e47
Cleanup some logger functions which were missed in the merge conflict.
2015-10-19 22:51:49 +00:00
Griatch
c7e1a6a086
Resolved merge conflicts against master.
2015-10-20 00:07:39 +02: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
Ahmed Charles
0384fcc63d
Move to python3 style except.
2015-10-19 23:31:19 +02:00
Griatch
b952a290b5
Fixed conflicts against master.
2015-10-18 12:43:43 +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
Russell Jones
06c3dc0ed3
Run "futurize -1 -w -n ."
2015-10-01 20:00:28 +01:00
Griatch
2743f98fb0
Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795 . Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils.
2015-09-27 13:05:29 +02:00
Griatch
2442422f9e
Integrated rpsystem with rplanguage to a greater degree.
2015-09-26 18:56:14 +02:00
Griatch
1d17302d16
Refactoring to go with the fixed AMP structure and methods.
2015-09-21 16:50:05 +02:00