Griatch
6eda0de5f2
Merge and fix conflicts with develop
2018-07-21 14:34:26 +02:00
Tehom
058c65074e
Handle scripts with negative intervals.
2018-05-10 19:40:58 -04:00
Tehom
9ee420458c
Fix paused tasks.
2018-05-10 19:30:58 -04:00
Tehom
59d136f405
Add special handling for scripts when flushed from cache to avoid duplicate ExtendedLoopingCalls.
2018-05-10 19:23:59 -04:00
Griatch
4e488ff2a2
Correct bugs in script_creation, fix unittest for olc_storage
2018-03-03 18:52:12 +01:00
Griatch
43185d8f17
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
Griatch
97e04ee710
Twisted min version upped to 15.2.1 due to a change in the LoopingCall infrastructure that Evennia relies on. This resolves #744 by updating the Evennia implementation accordingly.
2015-05-27 22:35:05 +02:00
Griatch
e77d86a8f7
Moved default class import markers to base model.
2015-03-14 23:14:47 +01:00
Griatch
d752106906
Made typeclass loading a little more forgiving, adding a multitude of try-levels to fall back to in case of errors. Default is now to fallback to first settings-set default, then to the library default and only as a last resort fall back to the model. Every fallback step is logged. This should make the missing-hook error of #698 go away and report missing typeclasses in a better way.
2015-03-11 00:41:06 +01:00
tajmone
779ddbbbba
docstrings and typos in "\utils\" and "\scripts\"
2015-03-09 18:44:22 +01:00
Griatch
fea3e92573
Cleaned up scripts module.
2015-03-09 18:13:25 +01:00
Griatch
b998c34c2a
Updated script docs
2015-03-09 17:22:47 +01:00
tajmone
2135ec05f2
docstrings and typos in "\utils\" and "\scripts\"
2015-03-09 13:13:09 +01:00
Griatch
60163184ad
Some cleanups.
2015-03-09 11:42:01 +01:00
tajmone
972b5cd2e2
docstrings and typos in "\utils\" and "\scripts\"
2015-03-09 11:33:55 +01:00
Griatch
84ccbf6b86
Fixed a migration that didn't run properly. Made typeclass loading a little more forgiving, giving a log_trace and loading the dbclass rather than crashing immediately.
2015-03-06 19:51:51 +01:00
Griatch
71e9038c62
Started removing the global maintenance scripts, but ran into strange AMP issues.
2015-03-06 15:59:58 +01:00
Griatch
68d294d007
Refactored and cleaned up the idmapper directory; it's been so changed by evennia that it makes little sense to keep the original structure (which was intended for adding an app into). Resolved the unittest errors with the idmapper.
2015-02-23 15:06:30 +01:00
Griatch
bbb99a9c28
Changed Script to DefaultScript to be consistent with other default typeclasses.
2015-01-24 19:08:54 +01:00
Griatch
ad3f19896c
Changed all src/ and ev references to evennia
2015-01-07 15:36:32 +01:00
Griatch
c7325a5032
Further reworking, naming the library folder 'evennia' instead of lib or src.
2015-01-07 13:36:57 +01:00