Commit graph

2866 commits

Author SHA1 Message Date
Griatch
033344ad2c Moved get_evennia_pids into src.utils.utils for more general access. 2013-07-10 11:06:38 +02:00
Griatch
2a7c45d6e8 Run Migrations. Migrated to new Attribute schema, converting old attributes. Not fully tested yet. 2013-07-09 00:09:19 +02:00
Griatch
a1d818f8aa First test with moving Attributes to m2m field. Not working yet. 2013-07-08 18:13:21 +02:00
Griatch
261e463505 cleaned up script copy method in script manager. 2013-07-02 16:24:47 +02:00
Griatch
2487d4b622 Fixed script-searching using the obj= keyword. Also made the search more efficient using Q-objects. Resolves Issue 385. 2013-07-02 16:09:20 +02:00
Griatch
92a8e39de5 Changed how the cmdset's errmessage is propagated. Adding failing cmdsets added ErrorCmdsets to the cmdhandler. This was for callback reasons, but it clutters up things for no good reason. 2013-07-02 15:50:42 +02:00
Griatch
47a324f720 Made cmdhandler merge same-prio cmdsets in groups. Before this fix one could face the following situation: Two exits "allcom" and "test". Both have exit cmdsets with prio 9. If "test" merges first, it contains no "allcom" command to overload the "allcom" in the Player cmdset (prio -5). But the merged set now has a priority of 9 thanks to merging the "test" set. So when merging the "allcom" exit-command, it merges with a same-prio set. And since exit-cmdsets have the duplicate-flag set, there will be two allcom commands in the final set. The problem does not show up if "allcom" happened to be merged first, making this effect non-consistent and buggy.
Merging the same-prio exit-sets first, then merging onto the lower-prio sets resolves this issue.
2013-07-02 13:38:38 +02:00
Griatch
3cf01ce711 Reverted previous merge, instead solving the issue by the metaclass making sure to add cmd:all() to the exit command only if the object itself does not specify it. 2013-07-02 11:51:04 +02:00
Griatch
b41761f60c Merge. 2013-07-02 09:35:45 +02:00
Griatch
5800b960ff Added safety feature to lock handling. 2013-07-02 09:34:35 +02:00
Daniel Benoy
b9f40fe8ee Fixed a regression which caused exits to be locked out from use. 2013-07-01 21:46:20 -04:00
Griatch
0164574c00 Added sessid keyword to at_pre_puppet and at_post_unpuppet hooks, where the sessid is otherwise not yet available, as per Issue 383. 2013-07-01 15:03:12 +02:00
Griatch
92339362ec Changed/fixed some issues with the command priorities that caused a lower-prio dynamically-created command to not properly be accounted for. Also changed the prio order for which of the cmdsets are used for checking the "duplicates" flag - it is now the new set being merged onto the new one (i.e. the priorotized) cmdset that must have this flag set in order for the result to have duplicates. 2013-07-01 14:30:17 +02:00
Griatch
1e6384e40c Fixed some documentation typos/rewrites as suggested in Issue 393. 2013-06-30 14:13:01 +02:00
Griatch
878f83aba0 Merge. Added updates to some of the fixes, such as making channel connetion updates look for online Players instead of online Sessions (the latter would have created duplicates in a multi-session environment). 2013-06-30 13:57:21 +02:00
Kelketek
c4db3e5370 Made normal channels not message offline users by default. 2013-06-29 18:52:15 -05:00
Kelketek
240dee1d5b Fixed issue with attribute search not properly handling attribute prefixes. 2013-06-29 15:10:14 -05:00
Kelketek
c3f86ab45b Fixed issue where searching for 'me' did not return typeclassed object. 2013-06-29 14:14:00 -05:00
Griatch
e30f3f7e59 Minor fix to a comment. 2013-06-20 18:10:51 +02:00
Griatch
e6067c873c Fixing old docstring on @quell command, suggesting superuser cannot be quelled. 2013-06-20 18:06:10 +02:00
Griatch
a0a94df83d Removed extra caching for fields (this slowed things down over normal django field caching). Considering reworking Attribute storage in order to make use of those caches as well. 2013-06-06 12:45:39 +02:00
Griatch
7351aacba5 Fixed an issue with setting location. Still errors with creating new objects. 2013-06-05 18:47:41 +02:00
Griatch
965e236d9a Merge. 2013-06-03 17:09:14 +02:00
Griatch
340160e4ea Reverting changes to runner, instead adding settings.CYCLE_LOGFILES config variable. 2013-06-03 17:03:31 +02:00
Griatch
31410f5710 Merge from Kelketek clone. 2013-06-03 16:28:38 +02:00
Daniel Benoy
c10a02f713 Fixed security hole checking channels with @cwho 2013-06-02 06:53:57 -04:00
Kelketek
b98cbd941d Removed log cycling. 2013-06-01 08:03:03 -05:00
Kelketek
7623b1a863 Fixed #379. Addcom no longer crashes when used IC. 2013-06-01 07:22:46 -05:00
Griatch
41235c25a2 Changed propcache back to a simple dict. Working on content cache, not working yet. 2013-05-30 00:49:47 +02:00
Griatch
fb3259be8c Activated propcache with new cache system. Still not functioning correctly, also the content cache needs to be handled. 2013-05-29 23:07:44 +02:00
Griatch
b6383ddab9 Moved attr_cache to new caching system, activated all attribute updating signals. 2013-05-29 18:47:51 +02:00
Griatch
8202dba596 Changed cache system to use Django's cache mechanism. Changed field caches to make use of Django signalling instead of custom caching calls (this should make the system consistent also when called from the webserver). Created a wrapper system for easily wrapping fields with a default wrapper (so as to not have to explicitly define the properties (such as objdb.key) which all just do the same thing - load from the field and make sure to call save(). 2013-05-29 16:16:28 +02:00
Griatch
4715499958 Fixed a missing sessid on System commands. Resolves Issue 377. 2013-05-26 19:29:42 +02:00
Griatch
deafb9c544 Added cache-cleaning to the idmapper base class. This works to sync most changes from the admin site-side, but not location changes (which leaves the content cache stale). Thinking of testing the django in-built cache framework instead, maybe using custom fields? 2013-05-25 10:20:26 +02:00
Griatch
0a39b8f65e Webserver move to Server is finished and everything seems to work normally. 2013-05-24 21:10:31 +02:00
Griatch
70ea21dab8 Added settings for webserver threadpool limits. 2013-05-23 23:57:21 +02:00
Griatch
20e093aa26 Settings and server configs updated. The caches between server and website threads are still not properly addressed - a change in the admin interface does not immediately translate to a change in-game. 2013-05-23 23:42:55 +02:00
Griatch
c083fe6266 Webserver->Server is working, some more cleanup needed. 2013-05-23 22:58:50 +02:00
Griatch
a9a70c91b1 Fixed a bug with the who command. 2013-05-23 21:38:01 +02:00
Griatch
94f50fcf33 Moved webserver to Server and set up the webclient to work as a stand-alone program on the Portal side. The website link to the webclient is currently pointing to the wrong process, some way to direct that transparently to the Portal-side is needed. 2013-05-23 00:02:25 +02:00
Griatch
812bdb0f73 Refactored src/server, splitting out into a portal subdirectory to make it clearer what goes on which "side". 2013-05-22 18:40:16 +02:00
Griatch
76fa0059ea First preparations for moving webserver to Server process. 2013-05-22 18:18:50 +02:00
Griatch
60068771c7 Fixed a lingering portal session when connection was closed uncleanly. This could in some situations lead to out-of-sync sessions in MULTISESSION_MODE=2. 2013-05-21 15:05:10 +02:00
Griatch
efdb954491 Fixed a logical error in obj.manager causing it to fail to find arbitrary db_>fieldname>. Resolves Issue 373. 2013-05-21 14:29:50 +02:00
Kelketek
bda5d88c24 Fixed issue with webclient sessions hanging on disconnect. 2013-05-18 21:20:54 -05:00
Kelketek
93d0db8489 Removed the redundant handling of location within @IC and @OOC. These should be handled by the hooks. 2013-05-18 20:05:42 -05:00
Kelketek
cab0182077 Fixed issue with lock replacements not committing. 2013-05-18 19:57:47 -05:00
Kelketek
65328e94ff Fixed issue with OOC command sending the menu to all connected sessions of a player. 2013-05-18 19:30:47 -05:00
Kelketek
ad7d8fc9fd Fixed typeclass searching for objects. 2013-05-18 18:47:04 -05:00
Kelketek
1a26552600 Possible fix to bad disconnection issue. 2013-05-18 18:18:32 -05:00