Commit graph

173 commits

Author SHA1 Message Date
Griatch
f343ca7ebd Update oobfuncs.py 2014-10-06 18:50:52 +02:00
Griatch
062a545a97 Changed at_cmdset_get() hook to at_cmdset_get(**kwargs). This allows for the possibility to control dynamic generation of cmdsets, for example to force Exit cmdsets to be rebuilt. The aliasing command now uses this. Resolves #563. 2014-09-20 10:26:59 +02:00
Griatch
ddc86f2a8b Cleaned up the connection screen example a little and added utf-8 encoding token at the top. 2014-09-20 09:20:38 +02:00
Griatch
221d56fecd Made the spawner more streamlined, and allowed the @spawn command to access prototypes in a file specified by the optional PROTOTYPE_MODULES setting. 2014-07-01 04:04:54 +02:00
Kelketek Rritaa
df85edc295 Made template overriding more consistent and created template_overrides dir. 2014-06-29 11:07:11 -05:00
Kelketek Rritaa
7499932337 Removed creation of admin media symlink. Fixed media handling. 2014-06-29 08:23:12 -05:00
Kelketek Rritaa
a34ddea236 Fixed placement of websocket javascript and template.
Fixed wrong readme in static.

Moved backends.py into web/util
2014-06-29 07:05:45 -05:00
Kelketek Rritaa
a6187ed997 Minor cleanup in a readme and a method signature. 2014-06-28 16:35:57 -05:00
Kelketek Rritaa
fbe0eab01c Some consistency improvements with URL overrides. 2014-06-28 16:28:24 -05:00
Kelketek Rritaa
16bcc3c9f0 Restructured web resources to better manage static files. 2014-06-28 16:28:14 -05:00
Griatch
d99d52fa5a Re-removed some comments to batch-code example left over from debug. 2014-04-20 23:18:51 +02:00
Griatch
0dc62a5fc9 Refactored batch processors, addressing points in #489. 2014-04-20 23:06:10 +02:00
Griatch
2edea1eace Changed the default login screen to change with settings.SERVERNAME. 2014-03-08 23:10:26 +01:00
Griatch
cdde9fb955 Turned back bodyfunctions example to returning more seldomly 2014-02-14 01:56:01 +01:00
Griatch
9f2433b9c2 Switched Scripts to use ExtendedLoopingCall. 2014-02-13 21:04:59 +01:00
Griatch
87f3093dac Deprecation warning: Added combined hook at_access(result, accessing_obj, access_type, **kwargs) to Objects and Players. This hook replaces at_access_failure and at_access_success, which are now both DEPRECATED and will be removed later. 2014-01-18 23:56:07 +01:00
Griatch
f1e156a299 Some minor tweaks to remove some debug logging. 2013-12-09 09:18:55 +01:00
Griatch
81ce6a1827 Fixed silly bug in previous commit. 2013-12-09 09:13:51 +01:00
Griatch
242a0f17f8 Cleaned up oobhandler input. 2013-11-28 16:26:04 +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
ead595c2df Fixed a minor typo. Resolves Issue 432. 2013-11-06 20:57:37 +01:00
Griatch
f9b9c98b07 Merging in local changes. 2013-10-17 23:57:23 +02:00
Griatch
e36c7d5cc1 Cleaned up worst instability. Test suite does validate yet. 2013-09-21 17:33:48 +02:00
Griatch
916813376e The game/gamesrc/objects/examples defaulted to class names that did not match the tutorials. 2013-09-19 20:07:43 +02:00
Griatch
416d6e14bc Fixing a bug in @ic if trying to puppet while already puppeting. Added sessid keyword to at_post_login hook in order to correctly relay login text only to the correct session. Removed the src.utils.debug module as well as the CmdDebug command which has not been supported for a good while. 2013-04-18 09:13:31 +02:00
Griatch
a6544f2848 changed cmdset_default -> cmdset_character and changed the class names to match. Added migrations to properly update default-set cmdset_stores to the new positions (objects created from custom types are not migrated, these should see errors and need to re-point their imports to the new defaults) 2013-04-12 13:01:20 +02:00
Griatch
1aff5f1fd1 Renamed cmdset_ooc -> cmdset_player and settings.CMDSET_OOC -> settings.CMDSET_PLAYER. Also split most of the player-specific commands to a new module player. 2013-04-11 01:02:05 +02:00
Griatch
be2d0086a3 Updated the game/gamesrc/ examples with the new hook names. 2013-04-09 22:22:17 +02:00
Griatch
58c010ef46 Some further work on the OOBhandler mechanism. 2013-01-04 10:35:29 +01:00
Griatch
92f6b06626 Added new start/stop hooks to server. These are read differently depending on if the server is reloaded or reset/shutdown. OBS: If you have already implemented your own version of AT_STARTSTOP_MODULE, you need to add stubs for new hooks. You can find the required hooks in gamesrc/conf/examples/at_startstop.py.
gamesrc/conf/examples
2012-10-28 22:02:22 +01:00
Griatch
52af816977 Added hooks at_access_success and at_access_failure to allow for custom messaging for certain lock errors. Resolves Issue 311. 2012-10-28 14:07:18 +01:00
Griatch
4dff822764 Fixed bug in @batchcommand (Resolves Issue 287). Also updated @dig to again handle deleting ranges of dbrefs (with or without # in front). 2012-10-14 16:24:21 +02:00
Griatch
83fa9397d5 Added a plugin system for server and portal. This allows for plugging in your own services without having to edit any modules in src/server/. Also made some various cleanups and fixes. 2012-09-18 22:52:33 +02:00
Griatch
bc34a76173 Changed default login from email+password to the more familiar username+password.
The old system has been moved to contrib/mux-login.py.
This change was done due to the need for an email seems counterintuitive to
many new developers, giving the impression that it is actually required by
django (it is not, rather it was supposedly similar to MUX).
2012-08-13 20:25:46 +02:00
Griatch
6fa5e42909 Fixed a typo in the example command template. 2012-05-19 11:01:48 +02:00
Griatch
96e95ca525 Raised Python requirement to 2.6+. Some spurious work on the mdsp support. 2012-05-05 23:52:13 +02:00
Griatch
45c5be8468 More whitespace cleanup. 2012-03-30 23:57:04 +02:00
Griatch
e042366f31 Removed the conf/ modules, putting them into conf/examples instead, in line with other API changes. The gamesrc/ folder is now completely empty and all new modules have to be added explicitly. 2012-03-25 19:52:51 +02:00
Griatch
b2f45a7cf4 Fixed an inconsistent API name. (db_serverconfs -> db_serverconfigs) 2012-03-25 18:21:22 +02:00
Griatch
e7869ed830 Removed the old base* start files from game/gamesrc. This is in line with the new API usage. Unfortunately this will likely lead to some collisions for people. 2012-03-25 17:23:10 +02:00
Griatch
b2d91d9bb5 Switched settings_default to use src/ base modules instead of modules in game/gamesrc/ as default (these will be removed) 2012-03-25 17:13:39 +02:00
Griatch
4398d42360 Added new templates to gamesrc/*/examples. The old base* modules still in place. Some cleanup of the API. 2012-03-25 16:35:22 +02:00
Griatch
88c0087fbd Updated game/ for the ev API. There will likely be some changes happening in the game/folder, in the way new objects are inherited. This should use the API rather than inherit from the basecommand/baseobject modules (these will probably into the example folders as vanilla templates instead). 2012-03-25 13:09:17 +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
7a2cdd3842 Moved all command definitions of Typeclassed entities up one level, to Object, Player and Script respectively. The actual code is still on the models (ObjectDB, PlayerDB and ScriptDB), but one should not be able to use the methods without having to dig into the code as far. Also added extensive, up-to-date headers to the inheriting base objects in game/gamesrc. 2012-03-24 18:25:32 +01:00
Griatch
8350c7dca7 Added #INSERT capabilities to @batchcmd processor too. This allows to group and run multiple batch-cmd batchfiles from one central batchfile. You can not mix batchcmd and batchcode files however - that would go beyond the use cases for the respective batch processors (and give unnecessarily complex code for little gain). 2012-03-21 10:24:49 +01:00
Griatch
8b99b8a130 Added #INSERT parameter for batch-code processor. This should resolve the issue of wanting to combine several batch files. Also improved traceback feedback from the batch-code processor. 2012-03-21 01:53:33 +01:00
Griatch
1ca8df9e70 Fixed issues with batch-code processor not working correctly. Also added some better parsing. Resolves issue 221. 2012-03-20 22:29:37 +01:00
Griatch
309c03ce43 Added at_server_start() and at_server_stop() hooks to allow users to safely initialize their custom systems whenever the server restarts. 2012-03-07 20:32:04 +01:00
Griatch
fb78758356 Implemented working MCCP (data compression) and MSSP (mud-listing crawler support). Moved all user-level customization modules from gamesrc/world to gamesrc/conf to reduce clutter. 2011-11-20 11:52:01 +01:00