Griatch
9ca41b5d0d
Update game template class doc strings to be more up-to-date. Resolve #3387
2024-06-27 15:58:11 +02:00
Griatch
f6b43b0416
Ran black on sources
2023-11-02 20:58:03 +01:00
Griatch
abc55276c6
Channel.start with integer start_delay led to a traceback. Resolve #3240
2023-08-06 21:47:59 +02:00
Griatch
d13ac065c7
Fix unit tests
2023-05-18 23:38:14 +02:00
Griatch
f70fd64478
Make turnbased combat work
2023-05-15 19:34:38 +02:00
Griatch
7971e6c2ff
Start turn-based menu
2023-03-10 21:27:15 +01:00
Griatch
a461a97576
Format code imports
2022-11-10 22:21:12 +01:00
Griatch
afadb1001e
More work on tech demo area
2022-07-13 14:32:19 +02:00
Griatch
ef7280f55a
Add TagProperty, AliasProperty, PermissionProperty. Default autocreate=True for AttributeProperty.
2022-04-09 15:56:24 +02:00
Griatch
29430d8d0f
Avoid inf recursion when deleting script from at_stop. Resolve #2642
2022-02-12 20:19:35 +01:00
Griatch
5e2372f79d
Make sure Typeclass.at_init() is always called on cache initialization for any typeclass. Resolve #2641
2022-02-07 20:45:48 +01:00
Owllex
487dd473fa
Set script atts to None rather than deleting them.
...
This fixes an issue where `_paused_time`, `_paused_callcount`, and
`_manually_paused` are repeatedly created and deleted each time the
server reboots, incurring some small DB inefficiencies for attributes
that are needed contintually.
2022-01-15 22:14:30 -08:00
Griatch
58f86fd3d7
Make common typeclass.delete return True/False to match Object.delete api for consistency. Resolve #2398
2021-11-03 23:20:00 +01:00
Griatch
ecd4307a87
Add stop_task kwarg to help Script delete-on-stop. Resolve #2455 .
2021-08-03 22:15:41 +02:00
Griatch
8837b93dd2
Update localization
2021-05-29 13:22:19 +02:00
Griatch
e1762c8b2f
Update scripts command, Scripts documentation
2021-03-07 17:41:48 +01:00
Griatch
b5195a6e96
[feat] Script refactor; decouple timer component from script lifetime. Resolve #1715
2021-03-07 10:34:01 +01:00
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