Commit graph

  • 54c31468ad Removing the last remnants of the async saving debacle. Async saving causes a host of extra problems within Django - order gets messed up and deleting simply doesn't work - but the scariest issue is that it seems to do nasty things with database references - deleting changes dbrefs for objects dynamically ... O_o; Plus, the overhead of creating threads for every save makes the whole thing very slow. It's NOT worth the effort. Griatch 2011-11-05 23:08:25 +01:00
  • 0ed692c19c Fixed a bug that prevented objects inside the room designated as "default home" from escaping when deleting that room. Objects will now be dumped to a null location (and warnings be given) instead of being deleted with the room. Also noticed that large parts of the server is not covered by i18n. Griatch 2011-11-05 21:19:57 +01:00
  • ce00d7c920 LOCALE: Added Swedish translation. Griatch 2011-11-03 22:55:12 +01:00
  • 6481cee1ea Setting some defaults. Griatch 2011-11-03 18:24:39 +01:00
  • b6303808ec Added a simple quell command to contrib/ for showing how to use a command to launch other commands (in this case with a lower permission than you normally do (including bypassing superuser status). Griatch 2011-11-03 18:23:45 +01:00
  • 791b380693 Tried with defer.execute for the async-save intead. Still issues with multiple objects. Griatch 2011-11-03 14:50:24 +01:00
  • 78e12b3aba Merge from trunk. Griatch 2011-11-03 14:09:34 +01:00
  • 17951a05f5 Dev: Testing with asyncronous db saving. Griatch 2011-11-03 14:08:14 +01:00
  • e7b46c89b4 Added the ability for the Command.func() method to return a value. This allows to potentially do e.g. value = caller.execute_cmd('cmdname'). Not used at all by default commands nor the engine itself, but potentially useful for admins wanting to implement some sort of 'nested' command structure, maybe using a custom input language. Griatch 2011-10-27 10:18:18 +02:00
  • 7195e1e773 Minor fixes to create command. Griatch 2011-10-16 00:40:11 +02:00
  • 70b4b559a5 Fixed a typeclass access bug in @find. Resolves issue 199. Griatch 2011-10-10 09:14:50 +02:00
  • 8d3817ccd4 Added at_initial_setup hook. Create a module in game/ and point to it with settings.AT_INITIAL_SETUP_HOOK_MODULE. This module must contain at function at_initial_setup(), which will be called very last in the setup procedure. If no module is given or fail to load, this will fail quietly. Griatch 2011-10-09 19:42:39 +02:00
  • 7f31534618 Made creation of #1 check for custom room/home assignment by hooks. Griatch 2011-10-09 18:02:43 +02:00
  • ef84d3790b Added another error message to initial_setup.py. Griatch 2011-10-09 16:44:10 +02:00
  • aee147102b Gave better error messages when a player typeclass has bugs and thus won't load. Also made a better solution for hiding new characters from the start room when first being created (also makes sure that character.location never starts as being None, recovering back to home in that case). Griatch 2011-10-09 16:32:55 +02:00
  • 8c6b27b5b3 Fixed a migration that failed under mysql. Griatch 2011-10-05 21:49:43 +02:00
  • b465bdd7bb Updated reST docs. Griatch 2011-10-04 22:29:40 +02:00
  • 1291509d03 Added inlines and fixed admin interface to not allow editing User once a Player is created. Griatch 2011-10-04 21:14:41 +02:00
  • 6ddfdd85f0 Updating ReST docs. Griatch 2011-10-04 00:46:50 +02:00
  • cbcb13feb1 Covered more error messages when the setting file won't load in the managerCovered more error messages when the setting file won't load in the manager.. Griatch 2011-10-04 00:17:39 +02:00
  • 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. Griatch 2011-10-03 23:53:23 +02:00
  • c8b4f7518d Fix of admin setup for DEBUG=False, based on https://code.djangoproject.com/ticket/10405#comment:11 (thanks to catch22 for finding this) Griatch 2011-10-03 21:25:06 +02:00
  • bf72239dc9 Admin interface: some more listings. Griatch 2011-10-02 23:02:43 +02:00
  • bc0195bbaa Worked with admin interface, cleaning up and adding functionality. There are still some strange behaviour that makes e.g. the presence of inlines to auto-create empty database objects for some strange reason. Inlines are turned off at the moment (so there is no convenient way to add attributes from the admin interface at this time). Creating players now work, but one needs to create all three components (User, Player, Character) in one go and tie them together. The User-admin form was changed to also support multi-word usernames (django default didn't allow spaces). Griatch 2011-10-02 22:37:07 +02:00
  • 7f2e6dd4fa Tidying up the admin interface by adding more verbose and helpful names to database fields as well as adding more help texts. The ObjectAdmin still gives tracebacks. Griatch 2011-10-02 01:21:03 +02:00
  • 6ae1123421 Fixed hook method descriptions. Griatch 2011-10-01 22:36:55 +02:00
  • 23cd9e31b1 Restructured the way typeclasses are loaded. This makes it possible to run at_init() hooks at initiation also for objects without any custom cases for character/players. at_init() hooks are called only when an object is initiated. This means that a room's at_init() hook is only called when someone looks or enters it or a script operates on it, for example, rest of the time these objects are dormant, most efficiently. Griatch 2011-10-01 22:00:22 +02:00
  • 0a1bcd36c2 Removed FULL_PERSISTENCE setting. It was a "feature" that was added at a time when caching was more inefficient than now. Also the new reload mechanism make FULL_PERSISTENCE=False unfeasable. Use ndb explicitly for non-persistence. Griatch 2011-10-01 15:10:21 +02:00
  • 679524bd4a Removed persistence from test script bodyfunctions. Griatch 2011-10-01 13:23:23 +02:00
  • 5271944f9a docs: updating rest documentationdocs: updating rest documentation.. Griatch 2011-10-01 13:21:34 +02:00
  • c8d2e3d6a2 Fixed some issues with the @script command. Griatch 2011-10-01 13:13:48 +02:00
  • bab89b191b Resolves issue 195. A typo in the sessionhandler that lead to big consequences. Griatch 2011-10-01 12:44:30 +02:00
  • 2597df0512 Last commit had a typo leading to startup traceback. Griatch 2011-09-20 20:26:35 +02:00
  • 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. Griatch 2011-09-20 19:59:08 +02:00
  • 058f8a9519 Fixed a bug in creating fresh dict-attributes/lists in the new attribute-save system. Resolves issue 191. Griatch 2011-09-20 15:55:58 +02:00
  • ecf11b38cd Fixed an issue with the locks not getting properly set on rooms. Griatch 2011-09-20 13:44:26 +02:00
  • c3a4063cc3 wiki: fixes. Griatch 2011-09-20 13:23:39 +02:00
  • 9a719d7fb0 Updated rst files to latest wiki. Griatch 2011-09-20 13:21:07 +02:00
  • 60424fa828 Merge commit. Griatch 2011-09-20 12:39:22 +02:00
  • 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. Griatch 2011-09-20 12:37:45 +02:00
  • f954e99822 Fixed the tutorial_world Mob so it moves and announces its arrival. Sergi Reyner 2011-09-19 19:08:11 +01:00
  • 0af6dff175 Updated rst files to wiki. Griatch 2011-09-15 22:45:05 +02:00
  • 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). Griatch 2011-09-15 10:46:41 +02:00
  • 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. Griatch 2011-09-15 01:18:53 +02:00
  • de9c2ec437 Cleaned admin interface, removing misleading fields. It's still broken in a few places however, objects give a traceback here, not sure why. Griatch 2011-09-15 00:28:26 +02:00
  • 399919a8a9 Database schema has changed. Run migrations if you use South. Started work on tidying up admin interface. Griatch 2011-09-14 22:34:10 +02:00
  • 60e980be67 Updated rst-docs to match online wiki Griatch 2011-09-14 21:17:50 +02:00
  • f523ce686a added docs/ dir to readme file.. Griatch 2011-09-13 11:49:57 +02:00
  • 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. Griatch 2011-09-13 10:18:20 +02:00
  • dce64d8bd2 fixes. Griatch 2011-09-11 17:09:30 +02:00
  • 751e2306ae Fixed link page. Griatch 2011-09-11 16:41:33 +02:00
  • 2200632739 Tried some variations with reST conversion, but didn't find a satisfactory alternate solution. Griatch 2011-09-11 16:19:27 +02:00
  • eae89eabc0 Patched wiki2html to give correct source code snippet output. Griatch 2011-09-11 12:17:33 +02:00
  • 22b23be095 Fixed things in wiki repo so reST decumentation conversion don't hickup as much. Griatch 2011-09-11 03:24:41 +02:00
  • daa327877c Fixed up look of reST documentation index a bit. Griatch 2011-09-11 00:38:39 +02:00
  • 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. Griatch 2011-09-10 23:44:49 +02:00
  • 5a2b9e27a0 Resolves issue 187. Griatch 2011-09-09 23:58:51 +02:00
  • ef3ee3bbcb Fixed INSTALL file for Mercurial. Griatch 2011-09-09 23:49:55 +02:00
  • f8234ec932 Updated docstring for cmdhandler to better reflect the current functionality. Griatch 2011-09-08 11:59:19 +00:00
  • 7237be87c6 Fixing typo in lock definitions for @dig as well as docstrings. Patch by sergi.reyner. Resolves issue 186. Griatch 2011-09-08 10:41:55 +00:00
  • 3aad32d7b4 Fixing issue 183, reported by sergi.reyner. Typo in src/objects/models.py, ocation/location. Greg Taylor 2011-09-07 15:47:19 +00:00
  • d2e0dfe59c Fixing an issue with stopping script LoopingCall instances. Reported and investigated by raydeejay. Greg Taylor 2011-09-07 15:44:13 +00:00
  • bc587dfd0c Fixed bug in get command that let you pick something up several times. Griatch 2011-09-04 07:27:11 +00:00
  • 71bdc47fbb Fixed typo. Changed reload argument for evennia.py to be 'reload' rather than 'restart'. Griatch 2011-09-03 15:10:28 +00:00
  • 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). Griatch 2011-09-03 10:22:19 +00:00
  • 14dae44a46 fixed typo Griatch 2011-08-15 20:57:08 +00:00
  • 4462869ab2 Fixes a type in cmdsethandler. Resolves issue 182. Griatch 2011-08-14 20:41:30 +00:00
  • c7605e9dc5 Minor cleaup of multiple-match return for commands. Griatch 2011-08-11 21:58:03 +00:00
  • 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. Griatch 2011-08-11 21:16:35 +00:00
  • 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. Griatch 2011-08-06 19:39:06 +00:00
  • 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. Griatch 2011-08-06 18:56:05 +00:00
  • d466d8325f Added missing call argument. Resolves issue 177. Griatch 2011-08-06 18:18:42 +00:00
  • 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. Griatch 2011-08-06 18:15:04 +00:00
  • 6cb2b8b745 Working on cleaning some strange behavior when trying to submitting faulty typeclasses to script system. Also fixing bugs here and there. Griatch 2011-07-03 21:01:06 +00:00
  • dae375d1c4 Fixes a migration bug with a missing import. Griatch 2011-06-29 05:56:44 +00:00
  • 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'. Griatch 2011-06-28 19:39:05 +00:00
  • 919800eb12 Tutorialworld: Made mob somewhat less deadly. Griatch 2011-06-28 18:48:14 +00:00
  • a0d391900c Tutorial_world: forgot to lock antechamber against mob entering. Griatch 2011-06-27 07:35:14 +00:00
  • 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. Griatch 2011-06-26 22:41:14 +00:00
  • 8770a263ac Fixes, cleanups and bugfixes in various systems. Griatch 2011-06-26 22:03:09 +00:00
  • 1565ac3a72 Fixed a rare conditional bug affecting Exits with custom cmdsets on them. Griatch 2011-06-26 15:36:49 +00:00
  • 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. Griatch 2011-06-26 14:35:02 +00:00
  • 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. Griatch 2011-06-24 20:12:59 +00:00
  • 1d93d8295f Added ability to login directly using SSH auth; based on patch by hagna. Griatch 2011-06-18 10:18:17 +00:00
  • 218ae61836 Add the same error-checking used for SSH to SSL keyfile generation. Griatch 2011-05-31 19:31:49 +00:00
  • 88c1002fde Added better error handling if SSH keypair fail to generate (issue 167) Griatch 2011-05-31 19:16:03 +00:00
  • 790f840715 Added the @tunnel command as a wrapper for @dig, for easy building in commonly used directions (n,sw, up, down, in, out etc) Griatch 2011-05-31 15:33:37 +00:00
  • f3776d1e08 Fixed problem with some keys in web client (issue 143). Griatch 2011-05-29 11:37:43 +00:00
  • a8a70e9f5e Added SSL (Secure Sockets Layer) support, inspired by patch by rcaskey (issue 79). The automatic certificate creation does not work well; so the system instead instructs and gives example on how to create your own using third-party tools. I can connect to the server using a twisted-client instance, but not that many regular mud clients seem to support SSL at all (and if they do I don't know to configure them ...) Griatch 2011-05-28 15:48:50 +00:00
  • 7c56c69cea Added SSH support, based on patch by hagna (issue 166). Griatch 2011-05-27 17:47:35 +00:00
  • d2400a8a6b Added the ability to give multiple typeclass search-paths to config file. This way you can add a path to your custom directory and don't have to write so much when creating typeclassed objects using e.g. @create. Griatch 2011-05-13 22:26:08 +00:00
  • b9c1921a0b Added a new 'contrib' folder for optional code snippets not suitable for the server core. Added contrib/menusystem for implementing a multi-choice menu system. Added contrib/lineeditor - a powerful line editor with commands mimicking VI. Also added an example NPC class using the menu system to allow for a conversation. As part of creating these contributions, lots of bugs were found and fixed. A new and more powerful cmdparser was intruduced as a result - this one is much easier to understand than the old one, while being more efficient and versatile. All testsuites were updated. Also: Resolves issue 165. Griatch 2011-05-12 21:51:11 +00:00
  • 2c47d6a66b Made all unittests validate again. Griatch 2011-05-01 20:44:01 +00:00
  • 2973b096e7 Added cmdset priority info to examine display. Griatch 2011-05-01 18:11:38 +00:00
  • b8a13a2389 Migrate. Made Exits work differently, by use of commands directly instead of an exithandler assigning commands on-the-fly. This solution is a lot cleaner and also solves an issue where @reload would kill typeclasses in situations where an exit was painting to an object whose typeclass was reloaded (same issue occured if the exit typeclass itself was reloaded). As part of these fixes I cleaned up the merging of cmdsets to now merge in strict priority order, as one would expect them to do. Many small bug-fixes and cleanups all over. Resolves issue 164. Resolves issue 163. Griatch 2011-05-01 18:04:15 +00:00
  • 4bcd5239b5 Mixed batch of minor bug fixes and cleanups. Griatch 2011-04-30 21:09:19 +00:00
  • 9520e261d8 Cleaned up @set to list attributes on an object and also to show attribute values without parsing their markup. Griatch 2011-04-25 20:31:50 +00:00
  • 9c5f662196 Added the "raw" switch to examine, to allow for viewing attributes and properties without parsing markup first. Griatch 2011-04-25 20:13:15 +00:00
  • 973f606f3f Added the functionality to let the @set command accept simple lists and dicts (relevant for @batch building) Griatch 2011-04-24 16:30:43 +00:00
  • 27809694d7 Migrate. Added the "view" access restriction (to make objects invisible). Also changed the input of ObjectDB.objects.object_search() to not require a caller as an argument (this makes it consistent with other search methods). All default systems should have updated to the new call, but if you have custom calls, you need to change them to fit the new syntax (this is only important if explicitly use ObjectDB.objects.object_search; if you just use caller.search you should be fine) Griatch 2011-04-24 11:26:51 +00:00