Commit graph

68 commits

Author SHA1 Message Date
trhr
f088207091 fixing fstring 2020-04-16 06:14:03 -05:00
trhr
0f8c0ad9bf fixing fstring 2020-04-16 05:53:51 -05:00
trhr
090157979b django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() are deprecated in favor of the functions that they’re aliases for: django.utils.translation.gettext(), gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy(). 2020-02-09 20:14:47 -06:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
4ea6209123 Ran black on branc 2019-12-16 20:31:42 +01:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Griatch
ed187ad05f Various fixes from game jam 2019-05-14 10:33:31 +02:00
Griatch
58116ff900 Remove basestring mentions remnants of 2.7 2018-10-13 19:30:24 +02:00
Ryan Stein
6f91e1e546 Remove to_unicode. 2017-11-03 12:36:45 -04:00
Ryan Stein
f2e800ddf1 Unwrap several for statements from 2to3 conversion process. 2017-11-02 12:46:33 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
b3c6e9d2cc Update alerts reported by LGTM 2017-09-23 16:46:54 +02:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Griatch
5a370a36ea Merge branch 'master' into devel 2017-06-17 22:21:00 +02:00
Griatch
0ff1718437 Resolve django 1.11 migration errors. 2017-06-17 22:15:00 +02:00
Vincent Le Goff
bda06acac6 Add the InterruptCommand exception to cleanly interrupt commands 2017-06-15 21:49:20 -07:00
Griatch
35db4bf301 Make minor docstring indent fix. 2017-06-14 22:07:15 +02:00
Griatch
5fa084c976 Refactor yield-mechanism to be present on top of the module, removing dependence on utils.delay and optimizing some imports. 2017-06-14 22:02:01 +02:00
Vincent Le Goff
d894b95717 Add cmdhandler's ability to handle 'yield' in command.func() 2017-06-14 12:35:23 -07:00
Griatch
a648433db8 Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel. 2017-04-01 16:08:23 +02:00
Griatch
357e829d4e Make at_get_cmdset get receive a parallel kwarg. 2017-03-01 15:20:30 +01:00
Griatch
7c9aff23c8 Add ability to send a specific command instance to the cmdhandler, bypassing cmdset lookup. Add the cmdobj and cmdobj_key keywords. 2017-02-28 15:30:22 +01:00
Griatch
1fbb4c4358 Add functioning prefix-ignorer and cleanup of code. 2017-02-17 09:19:55 +01:00
Griatch
dffbf9f8d6 Rework prefix-ignorer to retain a reference to the unstripped cmdname. Currently unworking. 2017-02-17 09:19:55 +01:00
Griatch
4d14625504 Add info about the call string to the log when reporting command errors. 2017-02-06 19:35:10 +01:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
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
1981f8073f Lots of debug messages. 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
17ee28ab6c Move COMMAND_NESTING safety handler into try..except..finally clause to avoid it ticking up accidentally due to the loop exiting from a traceback. 2016-09-03 22:52:29 +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
bd4ffa06f8 Fixed a misplaced comment that hid a traceback on error. 2016-05-22 20:45:41 +02:00
Griatch
4cb19bec59 Added IN_GAME_ERRORS setting for convenient debugging during development (False by default) 2016-05-22 20:45:41 +02:00
Griatch
8448b513e1 Converted msg-arguments to options 2016-05-22 20:45:06 +02:00
Ahmed Charles
921cf47731 Comment cleanup. 2015-11-15 20:29:40 +00:00
Griatch
1d78fb3d92 Fixed a lingering doc error. 2015-11-15 21:07:16 +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
Griatch
652bb02bc7 In the wake of changes to hide away tracebacks from players, made the error report include the server log time stamp so as to make it easier to reconcile with the real traceback information. 2015-11-09 15:07:06 +01:00
Ahmed Charles
39e40bfba1 Don't show tracebacks to players.
In this case, the tracebacks are in the log.
2015-11-09 12:30:55 +01:00
Griatch
50371b6abd Merged conflicts. 2015-10-19 23:32:00 +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
Ahmed Charles
53ec675960 Add extra space between sentences. 2015-10-18 11:58:20 +02:00