luyijun
e69cce9925
Fix a bug that script whose db_interval is 0 will be run when call its start method twice.
2020-08-02 10:48:47 +08:00
Griatch
edcd06d531
Handle case of script.at_repeat() immediately calling stop(). Resolves #2061 .
2020-02-29 12:24:26 +01:00
Griatch
49b34f390d
Don't allow step_task if task is None. Resolves #2047
2020-02-12 23:13:52 +01: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
7a8d5853af
Some minor tweaks.
2020-01-28 19:40:15 +01:00
Oscuro87
e8dc8a93d3
Fix a comment I broke, part 2...
2020-01-28 16:31:30 +01:00
Oscuro87
0e2994203a
Fix a comment I broke
2020-01-28 16:30:36 +01:00
Oscuro87
285cb420dc
Thid candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740
2020-01-28 16:14:57 +01:00
Oscuro87
bc8a1320d7
Second candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740
2020-01-28 16:06:06 +01:00
Oscuro87
cff07bd8d5
Candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740
2020-01-28 15:48:16 +01:00
Griatch
7f7dd3bbf2
Fixed various Script issues. Resolves #2010 . Might affect #2006 .
2020-01-18 20:50:26 +01: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
ca39276001
Ran black on master branch
2019-12-16 20:33:38 +01:00
John Borwick
d5ec338782
Task needs to be started if pause() was previously called
2019-11-16 15:26:27 -08:00
Griatch
c2c7fa311a
Format code with black. Add makefile to run fmt/tests
2019-09-28 18:18:11 +02:00
Greg Taylor
bd33886cc0
Remove uses of the 'future' py2->3 module
...
This is no longer needed, now that we are Py3.7+ only. One
layer of indirection removed, and one less dependency.
2019-09-15 00:18:56 -07:00
Griatch
7d8d3216a9
Resolve duplicate script execution for global script. Make paused script fire at_server_reload. Resolve #1911 .
2019-09-05 23:54:07 +02:00
Griatch
781e8310f5
Security update; Increase rec Django version to 2.2.4
2019-08-09 18:03:02 +02:00
Griatch
6ddc98a947
Refactor containers for inheritance and delayed loading
2019-04-14 15:37:34 +02:00
Griatch
2781434fd4
Improve script self-description
2019-04-14 11:29:17 +02:00
Griatch
098af3caba
Move globalhandler into utils.containers, make settings format more flexible, default to base typeclass, add helper functions and some more lenient error handling
2019-04-14 11:24:45 +02:00
Griatch
b6b07ccdb5
Update CHANGELOG, pep8 fixes
2018-10-23 01:04:25 +02:00
Johnny
f943b3e179
Adds create() method to DefaultScript and unit test for DefaultScript.create().
2018-10-09 23:41:04 +00:00
Griatch
a954f9c723
Merge and fix conflicts with develop
2018-07-21 14:34:26 +02:00
Tehom
af558ede7c
Handle scripts with negative intervals.
2018-05-10 19:40:58 -04:00
Tehom
f0bae25ca0
Fix paused tasks.
2018-05-10 19:30:58 -04:00
Tehom
b4283a642b
Add special handling for scripts when flushed from cache to avoid duplicate ExtendedLoopingCalls.
2018-05-10 19:23:59 -04:00
Griatch
d7deed0b51
Correct bugs in script_creation, fix unittest for olc_storage
2018-03-03 18:52:12 +01:00
Griatch
70a81a939c
OLC systen. Create olc_storage mechanism
2018-03-03 18:52:12 +01: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
f9e7b01f57
Add **kwargs options to at_* hooks to all typeclasses, for greater flexibility for users. Resolves #1276 .
2017-04-20 20:58:35 +02:00
Vincent Le Goff
c18bfe7388
Update the time-sensitive script
...
Since the game time doesn't drift much anymore, the script doesn't
need to restart on startup. The restart on repeat is kept, small
drifts could accumulate otherwise.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ec63d43905
Add a check to not create a task to watch a script if the task already exists
2017-02-15 23:43:49 +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
5b60eef635
Properly remove pause state data when restartig a script.
2016-09-02 15:02:20 +02:00
andrei-pmbcn
97412b4169
Fixed the bug that prevented restarting a script more than once after unpausing. Resolves #1023 .
2016-08-28 19:37:32 +02:00
Griatch
bece57f067
Added non-persistent functinality to the TickerHandler, for specific use with OOB.
2016-05-22 20:45:40 +02:00
Griatch
402b9a7394
Upped twisted requirement to 16.0.0. This because of a backwards incompatible change in Twisted's lLoopingCall that Evennia makes use of. This fixes failings with loading the tutorual world (due to loopingcall errors).
2016-03-24 11:50:58 +01:00
Kai Huang
8011d42321
return 0 in case of ObjectDoesNotExist in DefaultScript.stop instead of pass.
2016-02-02 22:16:33 +01:00
Kai Huang
88674307ec
Catch ObjectDoesNotExist exception when calling delete() in DefaultScript.stop(). Fixes 919
2016-02-02 22:16:33 +01:00
Griatch
86ae7c47af
Removed some debug functions.
2015-12-17 00:12:56 +01:00
Griatch
161383f9ae
Fixed a repeat error in Scripts ( resolves #890 ). Added separation between calling script.pause() deliberately and it being called automatically by the reset/reload, in order to preserve manual pauses across server reloads ( resolves #891 ).
2015-12-17 00:12:07 +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
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Ahmed Charles
418ca41803
Move to python3 style raise.
2015-10-19 23:31:19 +02:00
Griatch
4bb3f7c8c0
Removing a debug in scripts.
2015-09-29 21:48:48 +02:00
Griatch
5b70a38a2e
Implemented script.reset_callcount and script.restart to allow for modification of in-situ modification of the runtime characteristics of a Script. Resolves #794 .
2015-09-29 21:43:03 +02:00
Griatch
c393f70638
Fixed regression error in script force_repeat. Resolves #785 .
2015-08-20 22:14:04 +02:00