Griatch
bc8ce9f394
Fixed command auto-help strings to make it look better in the cmdhelp wiki page
2014-02-12 15:05:17 +01:00
Griatch
ea7e43c746
Updated gametime module to work on-the-fly, based on patches and discussion with user Khandrish. Also made cleanups to @scripts command and some small bug fixes.
2014-01-04 17:14:51 +01:00
Griatch
e9e2c78eef
Refactored amp.py to more cleanly splitting long AMP messages also during server sync (this could cause errors with a large number of connected players). Also fixed an issue with the lockstring get:all() being set by @create despite it not needing to (overloading changes in the typeclass).
2013-11-27 16:57:41 +01:00
Griatch
1ae17bcbe4
PEP8 cleanup of the entire codebase. Unchanged are many cases of too-long lines, partly because of the rewrite they would require but also because splitting many lines up would make the code harder to read. Also the third-party libraries (idmapper, prettytable etc) were not cleaned.
2013-11-14 19:31:17 +01:00
Griatch
642ae2faf9
Fixed cache and metaclass irregularities as well as the location and contents caches.
2013-09-22 21:48:08 +02:00
Griatch
0a394929b7
Fixed an issue in idmapper metaclass wrapper, it caused text fields to be occationally be written with objects.
2013-09-22 19:56:51 +02:00
Griatch
bbba695380
Changed unittest suite to use dummy sessions.
2013-09-22 16:29:02 +02:00
Griatch
4659ddbfc3
Changed object.msg() to relay directly to connected session rather than via the player.msg() method.
2013-09-22 11:39:24 +02:00
Griatch
2ba16e155e
Fixed a bug in amp that made reloading not work.
2013-09-21 22:00:46 +02:00
Griatch
e36c7d5cc1
Cleaned up worst instability. Test suite does validate yet.
2013-09-21 17:33:48 +02:00
Griatch
4a5de04956
Changed msg() to work with **kwargs rather than data dicts. Still not fully updated the portal side (also remember that keywords let through to the portal must not contain dbobjs, since the portal has no connection to the database).
2013-09-14 09:10:31 +02:00
Griatch
7b0c96640c
Reverting metaclass wrapper for db_key, will have to look into why it behaves strangely.
2013-07-12 23:58:22 +02:00
Griatch
73a5800fbf
Fixed updates of the contentmanager. Not all command tests run yet.
2013-07-12 22:08:15 +02:00
Griatch
78e7346962
Updated commands to use the new objectdb.search API.
2013-05-11 23:22:02 +02:00
Griatch
8969017aaa
Added prettytable ( http://code.google.com/p/prettytable/ ) as a replacement for utils.format_table and updated almost all places where the old formatter was used. The code becomes much simpler and shorter with prettytable, there are some situations, such as the contrib/menusystem where the old format_table works well for dynamically creating any number of columns and rows on the fly.
2013-04-12 22:06:41 +02:00
Griatch
0fddf433dc
Updated all Player-level commands to properly relay messages using self.msg rather than caller.msg (the former will properly relay to the right sessid without needing any extra arguments).
2013-04-12 14:27:36 +02:00
Griatch
5100a0561f
Some further bug fixes.
2013-04-09 11:14:08 +02:00
Griatch
7581d65cb3
Made superuser able to have a separate "superuser character" in order to be able to have also test-characters without privileges.
2013-03-11 22:01:52 +01:00
Griatch
bbdf2e0896
Fixed a bug that caused superuser status to be cached only once for characters, even if the player was not yet connected.
2013-03-11 20:01:03 +01:00
Griatch
406800f254
Merge.
2013-03-09 12:16:50 +01:00
Griatch
0f2762d5f2
Added functionality to @services command. Allowed @reload to also accept a reason argument.
2013-03-08 23:09:21 +01:00
Bobby Bailey
7607edca5b
Update @about to reflect current license.
2013-03-02 22:01:44 -05:00
Griatch
4dea96f5e4
Some further fixes.
2013-02-14 17:55:05 +01:00
Griatch
b82a75d816
Fixed initial_setup and set up the _playable_characters attribute on all players, for handling multi-accounts. Still some issues with how the character's permissions is accessed.
2013-02-03 20:04:40 +01:00
Griatch
b26c3ab872
Fixed bugs and allowed for logging in using one character. Added a simple command for creating a new character.
2013-02-03 17:00:46 +01:00
Griatch
11d1114f61
Some minor cleanups.
2013-02-01 21:51:38 +01:00
Stephen Hansen
230e12d8b6
Fix to @py to a) print value of expressions, and b) print duration when requested for evals
2013-02-01 12:29:40 -08:00
Stephen Hansen
5cfff771f2
Initial support for pypy + evennia
2013-01-31 14:34:52 -08:00
Griatch
e8d93dedbe
Added a /time switch to the @py command, after idea by JoshBenner over IRC. This optionally outputs the execution time for a given input.
2013-01-11 16:46:04 +01:00
Griatch
d55bee8905
Fixed a type - get_attribute_cache() should be get_attr_cache()
2012-11-09 23:17:10 +01:00
Griatch
d2d9953f94
Cache changes: Moved all caches (except idmapper) to central caching module. This makes it easier to overview cache memory usage (and clean it) as well as plug-in external cache mechanisms.
2012-11-01 11:20:07 +01:00
Griatch
ec46465656
Implemented ansi-colour backgrounds in webclient. Added a new @color command for displaying colour spaces. Also changed a number of other features outlined in Issue 309.
2012-10-24 21:41:07 +02:00
Griatch
9abc25c53e
Made @py cmd-echo verbatim. Resolves Issue 310.
2012-10-23 22:34:56 +02:00
Griatch
3f01ab8006
Some minor fixes to the default @py output and also some more info to the extended_room contrib.
2012-10-20 21:04:00 +02:00
Griatch
97973dd5f9
Fixed erroneous global_search keyword in a few places in the code due to the API having changed. Resolves issue 276.
2012-10-14 12:06:42 +02:00
Griatch
fce5c79561
A name change in a command stopped the ev API from loading.
2012-05-01 23:56:59 +02:00
Griatch
36b15b4ad8
Made some tweaks to some default commands, such as @version, which was renamed @about and displays some more info about the system.
2012-05-01 17:31:16 +02:00
Griatch
94477b8340
Updated the reload and shutdown mecanism to avoid a loop when shutting down from inside the game. Made sure to have server sync correctly with portal at @reload (some session info were lost before). Some other cleanups.
2012-05-01 14:19:54 +02:00
Griatch
e82515f8cb
Updated to a supported idmapper version. Added a method for calculating the cache usage of the idmapper, and tied it to the @system command.
2012-04-30 00:51:36 +02:00
Griatch
2dba8ad547
Changed attribute-caching to use a string as key rather than the attribute-object itself. The latter caused the database to be invoked in order to create the hash over and over.
2012-04-28 14:47:11 +02:00
Griatch
3091587e33
Added a timeout to the attribute caching; the system will now clean cache at regular intervals once it pass a certain size defined in settings.
2012-04-28 00:37:36 +02:00
Griatch
8c3b49e704
Changed how the Typeclass system returns errors. Instead of echoing typeclass erros to the MUD-info channel (which is not only not only very spammy for everyone but also very hard to make clean so as to avoid recursion at a stage of typeclass failing), the system instead stores a property on itself called 'typeclass_last_errmsg' that holds eventual errors. This means that the task of reporting errors does not fall on the typeclass system itself but on the calling methods, as it should be. So src.utils.create.create_* functions now takes a new optional keyword "report_to" that holds an object to receive errors. If this keyword is given, the function msg():es that object with the error and returns None as before. If report_to is not set however, the create_* methods now return an Exception containing the error text. All default commands have been changed to accomodate for this behaviour, which allows for much more control over errors.
...
Also, the default ADMIN_MEDIA static files changed location in Django 1.4. The initial_setup function now accounts for this.
2012-04-21 16:15:37 +02:00
Griatch
bdb5ab0123
Removed @ps command, it is superceded by @serverload and was just a placeholder anyway.
2012-03-25 18:47:31 +02:00
Griatch
07a17ac15e
Added ev API support to @py command.
2012-03-25 18:36:23 +02:00
Griatch
0d01462077
Adding a new API system to Evennia. This centralizes all access of the evennia driver through a single module "ev". Importing ev one should be able to access (and also importantly, easily explore) Evennia's API much easier. This API goes a long way to "flatten" the structure so that one doesn't need to remember how to find some method in a deeply nested subdirectory.
...
As part of this work, I have also written full listings of all available properties on Typeclassed objects (including those inherited in various ways). Should hopefully make things easier to find.
One can of course still import things directly from src/ as before. But this is a first step towards removing the "base" objects in game/gamesrc and instead making those accessible through the core API.
2012-03-24 23:02:45 +01:00
Griatch
2c4af9076d
Made some commands sensible to the new form of obj.typeclass (it's not a typeclass instance, not a class). Changed the way TypedObject.swap_typeclass works, so as to properly manage failures.
2011-10-03 23:53:23 +02:00
Griatch
475361ad28
Added functionality to Attributes to store and update dicts and lists dynamically. One side effect of this is that dicts and tuples need to be stored as custom object types which means that e.g. isintance(obj.db.mylist) == type(list) will return False. In order to do checks like this, use src.utils.utils.inherits_from() instead. The Attribute system now also supports tuples. All other iterables except dicts, lists and tuples are stored and retrieved as lists, same as before.
...
This fixes issue 189.
2011-09-20 12:37:45 +02:00
Griatch
f13e8cdf7c
Trunk: Merged griatch-branch. This implements a new reload mechanism - splitting Evennia into two processes: Server and Portal with different tasks. Also cleans and fixes several bugs in script systems as well as introduces i18n (courtesy of raydeejay).
2011-09-03 10:22:19 +00:00
Griatch
2b4e008d18
Scripts and Exits updated. Fixed some deep issues with Scripts that caused object-based scripts to not properly shut down in some situations, as well as spawn multiple instances of themselves. I think this should resolve all "at_repeat doubling" issues reported. Due to optimizations in the typeclass cache loader in a previous update, the Exit cmdsets were not properly loaded (they were loaded at cache time, which now doesn't happen as often). So Exits instead rely on the new "at_cmdset_get" hook called by the cmdhandler. It allows dynamic modification of cmdsets just before they are accessed. Resolves issue173 (I hope). Resolves issue180. Resolves issue 181.
2011-08-11 21:16:35 +00:00
Griatch
2059fd9701
Fixed a bug that had global scripts think they were already running. Resolves issue 176. Made the @time command a tad more useful by having it report uptime also in seconds.
2011-08-06 18:56:05 +00:00