Griatch
18669c8700
Fixing so assigning to a nested attribute value doesn't loose data. It is unfortunately not possible to support direct assignment of deeply nested attributes at this time. So if obj.db.mydict = {1:{2:3}}, then obj.db.mydict[1] = 1 will work just fine, but obj.db.mydict[1][2] = 4 will not. For more advanced manipulation such as the latter case, store the dict in a temporary variable and save it back after changes have been done.
2011-09-20 19:59:08 +02:00
Griatch
058f8a9519
Fixed a bug in creating fresh dict-attributes/lists in the new attribute-save system. Resolves issue 191.
2011-09-20 15:55:58 +02:00
Griatch
ecf11b38cd
Fixed an issue with the locks not getting properly set on rooms.
2011-09-20 13:44:26 +02:00
Griatch
c3a4063cc3
wiki: fixes.
2011-09-20 13:23:39 +02:00
Griatch
9a719d7fb0
Updated rst files to latest wiki.
2011-09-20 13:21:07 +02:00
Griatch
60424fa828
Merge commit.
2011-09-20 12:39:22 +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
Sergi Reyner
f954e99822
Fixed the tutorial_world Mob so it moves and announces its arrival.
2011-09-19 19:08:11 +01:00
Griatch
0af6dff175
Updated rst files to wiki.
2011-09-15 22:45:05 +02:00
Griatch
1995f61d46
Put up a warning about not using BaseObject.at_init() at this time (it's not called, as per issue 188). Also removed the deprecated at_cache() hook (it doesn't work anymore now that the caching system is much more efficient and only caches once).
2011-09-15 10:46:41 +02:00
Griatch
f1d743f14c
Checked at_init() due to reported issues of it not getting called. Couldn't find any problems, rather it was called too many times, so removed an unecessary call.
2011-09-15 01:18:53 +02:00
Griatch
de9c2ec437
Cleaned admin interface, removing misleading fields. It's still broken in a few places however, objects give a traceback here, not sure why.
2011-09-15 00:28:26 +02:00
Griatch
399919a8a9
Database schema has changed. Run migrations if you use South. Started work on tidying up admin interface.
2011-09-14 22:34:10 +02:00
Griatch
60e980be67
Updated rst-docs to match online wiki
2011-09-14 21:17:50 +02:00
Griatch
f523ce686a
added docs/ dir to readme file..
2011-09-13 11:49:57 +02:00
Griatch
ffeb1494cb
Added empty log dir (mercurial don't allow that normally), as well as fixed an issue with i18n when starting without a settings.py file.
2011-09-13 10:18:20 +02:00
Griatch
dce64d8bd2
fixes.
2011-09-11 17:09:30 +02:00
Griatch
751e2306ae
Fixed link page.
2011-09-11 16:41:33 +02:00
Griatch
2200632739
Tried some variations with reST conversion, but didn't find a satisfactory alternate solution.
2011-09-11 16:19:27 +02:00
Griatch
eae89eabc0
Patched wiki2html to give correct source code snippet output.
2011-09-11 12:17:33 +02:00
Griatch
22b23be095
Fixed things in wiki repo so reST decumentation conversion don't hickup as much.
2011-09-11 03:24:41 +02:00
Griatch
daa327877c
Fixed up look of reST documentation index a bit.
2011-09-11 00:38:39 +02:00
Griatch
bd0079a39d
Added Sphinx (reST-style) conversion of Evennia documentation to docs/. This is an auto-generated conversion directly from the Wiki, so it's not custom-written in any way (will also make it easy to update). You need Sphinx to compile the sources into fancy pages. Supporting sphinx is to make documentation easier to print and view offline. Currently no sphinx src-code viewing is activated by default, it gives too many spurious errors (the converters are in the repo though if you're interested in experimenting). So for offline autodocs, doxygen is still to recommend.
2011-09-10 23:44:49 +02:00
Griatch
5a2b9e27a0
Resolves issue 187.
2011-09-09 23:58:51 +02:00
Griatch
ef3ee3bbcb
Fixed INSTALL file for Mercurial.
2011-09-09 23:49:55 +02:00
Griatch
f8234ec932
Updated docstring for cmdhandler to better reflect the current functionality.
2011-09-08 11:59:19 +00:00
Griatch
7237be87c6
Fixing typo in lock definitions for @dig as well as docstrings. Patch by sergi.reyner. Resolves issue 186.
2011-09-08 10:41:55 +00:00
Greg Taylor
3aad32d7b4
Fixing issue 183, reported by sergi.reyner. Typo in src/objects/models.py, ocation/location.
2011-09-07 15:47:19 +00:00
Greg Taylor
d2e0dfe59c
Fixing an issue with stopping script LoopingCall instances. Reported and investigated by raydeejay.
2011-09-07 15:44:13 +00:00
Griatch
bc587dfd0c
Fixed bug in get command that let you pick something up several times.
2011-09-04 07:27:11 +00:00
Griatch
71bdc47fbb
Fixed typo. Changed reload argument for evennia.py to be 'reload' rather than 'restart'.
2011-09-03 15:10:28 +00: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
14dae44a46
fixed typo
2011-08-15 20:57:08 +00:00
Griatch
4462869ab2
Fixes a type in cmdsethandler. Resolves issue 182.
2011-08-14 20:41:30 +00:00
Griatch
c7605e9dc5
Minor cleaup of multiple-match return for commands.
2011-08-11 21:58:03 +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
16affc284b
Allow for changing the home location of new characters by changing a setting. The given location must exist and is given as a dbref. If one wants more advanced control over start locations, one needs to customize the unloggedin/create command to match the particular game. Resolves issue 178.
2011-08-06 19:39:06 +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
Griatch
d466d8325f
Added missing call argument. Resolves issue 177.
2011-08-06 18:18:42 +00:00
Griatch
ddfd8120bb
Made scripts and typeclassed objects remember db_typeclass_path at all times - a temporarily faulty typeclass will no longer mess up things forever after. Refined and optimized the way typeclasses are cached and loaded, minimizing db hits. The default result when trying to create an object or script with a typeclass that is faulty/not found is now to fail. The previous way, to create an entity anyway using defaults was hard to debug and caused confusion. Resolves issue 175.
2011-08-06 18:15:04 +00:00
Griatch
6cb2b8b745
Working on cleaning some strange behavior when trying to submitting faulty typeclasses to script system. Also fixing bugs here and there.
2011-07-03 21:01:06 +00:00
Griatch
dae375d1c4
Fixes a migration bug with a missing import.
2011-06-29 05:56:44 +00:00
Griatch
1e44e27f5e
Added ability to restrict which interface addresses Evennia listens to. Settable in configuration file. Default is to listen to all available interfaces. Based on patch by user 'Chris'.
2011-06-28 19:39:05 +00:00
Griatch
919800eb12
Tutorialworld: Made mob somewhat less deadly.
2011-06-28 18:48:14 +00:00
Griatch
a0d391900c
Tutorial_world: forgot to lock antechamber against mob entering.
2011-06-27 07:35:14 +00:00
Griatch
b2b743b0aa
Added TutorialWorld - a small, but complete single-player quest area showing off some of Evennia's features. You can find it in contrib/tutorial_world.
...
Build with: @batchcommand contrib.tutorial_world.build
I have tested it, but there are most likely still bugs, so report all you find (along with possible suggestions for improvements) to the bugtracker/mailing list.
2011-06-26 22:41:14 +00:00
Griatch
8770a263ac
Fixes, cleanups and bugfixes in various systems.
2011-06-26 22:03:09 +00:00
Griatch
1565ac3a72
Fixed a rare conditional bug affecting Exits with custom cmdsets on them.
2011-06-26 15:36:49 +00:00
Griatch
95d672763b
Multiple fixes and cleanups - command parser excludes inaccessible commands already at parse level now. Fixed the functionality of a few of the lock functions to be more intuitive. Added functionality to the examine command to better show the commands available to an object.
2011-06-26 14:35:02 +00:00
Griatch
334c0b1d08
Fixed a bunch of small issues. The RedButton example hasn't been working for a while, should be ok again now - also cleaned it up a bit.
2011-06-24 20:12:59 +00:00