Commit graph

2889 commits

Author SHA1 Message Date
Griatch
61d591409a Added a simple get_input convenience function to utils.evmenu, for asking simple questions of the user. 2015-08-20 21:45:42 +02:00
Jake Shasteen
7d3ed681ac Added {u to the ansi parser for underlining text. 2015-08-15 00:33:57 -04:00
Griatch
2cdb13143d Made the charcreate lock (only allow one char/player) for MULTISESSION_MODE<2 a part of the respective command rather than globally in the module. 2015-08-13 09:06:27 +02:00
Griatch
b1b1912e8c Removed a lingering refefence to old get_all_attributes method. Resolves #780. 2015-08-06 07:56:18 +02:00
Adrian Pacała
8234e4bd91 Clean up JavaScript example in WebSocket client 2015-07-25 18:37:16 +02:00
Andrew Bastien
2c62e93fb4 - Fixed more in at_failed_login(). Forgot a pass, whoops. 2015-07-25 18:35:34 +02:00
Andrew Bastien
c1f35a4e10 - Tiny fix to the failed login call. 2015-07-25 18:35:34 +02:00
Andrew Bastien
e0e382e0c6 - Added .at_failed_login(session) to default Player typeclass.
- unloggedin.CmdUnconnectedConnect now calls the at_failed_login hook on player if a correct user is entered by an invalid password provided.
2015-07-25 18:35:34 +02:00
Griatch
640439dcf5 Removed the examine: locktype from the @create locktype setting. Resolves #770. 2015-07-22 14:38:12 +02:00
Griatch
82a80174f0 Removed a faulty default alias in the Command base class; since commands are more strictly compared by key *and* alias, this could cause some confusing overload scenarios. 2015-07-18 08:30:05 +02:00
Griatch
8e554ef8f6 Updated the typeclasses/ directory modules to use Google style docstrings, as per #709. 2015-07-12 13:52:21 +02:00
Griatch
b9043a9e95 Made sure evmore does pass its kwargs on to the main msg method at all times. 2015-07-09 21:15:35 +02:00
Griatch
900ada5e92 Removed some debug messages from evmore. 2015-07-09 14:45:16 +02:00
Griatch
3ae00972a9 Added evmore - a more-like pager mechanism for displaying long texts. 2015-07-09 14:37:09 +02:00
Griatch
d47bd96ddd integrated the line editor functionality with the @set command (using the /edit switch), removing the example CmdEdit command from the eveditor module. 2015-07-09 14:37:09 +02:00
Griatch
d2a69910a9 Some further fixes with the refactored line editor. 2015-07-09 14:37:09 +02:00
Griatch
870c750538 Refactored and cleaned up the EvEditor module. 2015-07-09 14:37:09 +02:00
Griatch
cc2b094bc6 Moved lineditor into utils/eveditor.py. The line editor is accessed by simply importing the class (same as EvTable, EvMenu etc), so the utils.get_line_editor function was removed. 2015-07-09 14:37:09 +02:00
Griatch
adae4f2ec4 Made the evmenu work as expected 2015-07-09 14:37:09 +02:00
Griatch
8c5dddd062 Added ansi.strip_ansi as a convenience shortcut to remove ansi markup from a string. 2015-07-09 14:37:09 +02:00
Griatch
8d37627dfe Fixed a bug in ansi string caching that didn't take mxp into account. 2015-07-09 14:37:09 +02:00
Griatch
eb598921ac Some debug testing and handling of colored keys. 2015-07-09 14:37:09 +02:00
Griatch
fe810ec5f7 Made bettermenu into evmenu and moved to utils. Still some issues with MXP. 2015-07-09 14:37:09 +02:00
Griatch
698e226763 Added new bettermenu system 2015-07-09 14:37:09 +02:00
Griatch
72049eeddd Made the evennia_launcher gracefully report a missing log directory instead of raising a traceback (a missing log dir happens when cloning game dirs since log files are in .gitignore) 2015-07-08 10:41:47 +02:00
Griatch
095a1c0c13 Updated contrib menusystem and talking_npc to make use of the dynamic command update properties. Also fixed a lingering error in talking npc that resolves #768. 2015-07-07 16:43:10 +02:00
Griatch
ea0de32607 Updated the Command class with set_key/set_alias methods to allow for dynamic updating of command key/aliases properties while making sure all optimization recaches are hit. 2015-07-07 16:42:20 +02:00
Griatch
a8332fe431 Reworked the fix of #769 to be cleaner and using a full import mechanism rather than the pre-module lookup that messed up the unittests. 2015-07-07 15:29:28 +02:00
Griatch
0003868533 Added more logics for pre-lookups of cmdset paths at any nested package depth. Resolves #769. 2015-07-07 13:31:17 +02:00
Griatch
45e0785c8e Made a change to the cmdset comparison algorithm to make sure all commands are compared both by alias and key by use of a set-intersection operation. Before one side of the comparison used key and the other used key+aliases, which led to inconsistent results in some situations, especially when combining system commands with aliases. 2015-06-28 17:58:42 +02:00
Griatch
3cc816c58c Remove contrib-import that causes also unused contribs to clash with typeclass-names in custom game folder. This turns off api2doc parsing of contribs, but it's a worthwhile cost to pay. Even so, we will still clash when e.g. using the TutorialWorld while trying to setup some common typeclass names, like "Weapon". We may need to change the contrib typeclass names in the long run to make them less likely to clash; or otherwise separate them from the standard library; this is a future issue though. This change resolves #766. 2015-06-25 23:31:16 +02:00
Griatch
8572cc21c2 Fixed a utf-8 error lingering from docstring conversions. Resolves #767. 2015-06-25 23:04:26 +02:00
Griatch
19bfaae8a6 Finished converting server/ and server/portal to google-style docstrings as per #709. 2015-06-23 15:20:32 +02:00
Griatch
ccae355175 Converted server/profiling/ to Google-style docstrings, as per #709. 2015-06-23 13:39:45 +02:00
Griatch
6d0122906f Made top-level server/ directory google-style docstring compliant as per #709. 2015-06-23 13:30:59 +02:00
Griatch
00b5309295 Updated more of server/ to google docstrings as per #709. 2015-06-23 10:42:51 +02:00
Griatch
57b2396af7 Fixed a unicode error in the evennia launcher. 2015-06-23 08:06:53 +02:00
Griatch
d5f24c2d13 Finished adding Google-style docstrings to oobhandler, as per #709. 2015-06-23 08:05:32 +02:00
Griatch
b2ddd34efd Updated parts of server/ dir to google docstrings as per #709. 2015-06-22 21:02:03 +02:00
Griatch
abff559a61 Begun conversion of server/ directory to google style docstrings as per #709. 2015-06-22 08:45:35 +02:00
Griatch
86a1cf5a13 Added a comment to the default .gitignore on group use. 2015-06-22 08:02:24 +02:00
Griatch
da9c97b699 Updated all of players/ directory to Google style docstrings as per #709. 2015-06-21 13:51:32 +02:00
Griatch
8ac424c216 Made multi-command-match display on multiple lines 2015-06-20 23:48:09 +02:00
Jonathan Piacenti
71389fd6fe Slight wording tweak. 2015-06-20 16:34:38 -05:00
Jonathan Piacenti
27500b9762 Better handling of command ambiguity. 2015-06-20 16:31:59 -05:00
Jonathan Piacenti
462b73b626 Rename display_name and improve docstrings. 2015-06-20 16:31:36 -05:00
Jonathan Piacenti
1822b01086 Add display_name and disambiguation_tag for dynamic naming. 2015-06-20 15:42:39 -05:00
Jonathan Piacenti
a5887d23e2 Make command ambiguity handler pluggable. 2015-06-20 13:18:50 -05:00
Griatch
f116543e14 Added pytz to the requirement list, to handle timezones better 2015-06-20 15:17:07 +02:00
Griatch
561b051734 Made the cmdset flags no_exits, no_objs and no_channels pass-through the cmdset merge unless overruled by higher-prio sets' flags. Resolves #760. 2015-06-20 13:15:43 +02:00