Commit graph

15 commits

Author SHA1 Message Date
Greg Taylor
94779a86a5 Added new SCRIPT_ROOT variable to settings.py, you'll need to copy this over from settings.py.dist if you're running a test game. We also now have rudimentary support for default, enter, and use locks per the basicobject.py file. Take a look at the example locks in there. A returned boolean value determines whether the player passes. Make sure you emit an error message within the lock if you're going to return false. We will have simple in-game attribute or dbref locks via an @lock command similar to MUX/MUSH that override scripted behaviors. 2007-07-12 13:45:23 +00:00
Greg Taylor
e2cc754441 Lots of goodies in this one. More work on the default web front page, a few extra utility functions for functions_db as well. Some cleanup in the session code to use some of the new abstraction I added a while back. Player's last login time is now also set on the User object. Issue 28: Forward slashes causing crashes, found by Kuros, fixed by me. 2007-06-06 13:38:13 +00:00
Greg Taylor
0e9732d49c Big re-organization of command functions. Introduced the commands directory to hold command modules. This will make it easier to sub-divide stuff as we pile on more commands, and for dropping in new optional command modules. 2007-05-29 03:32:48 +00:00
Greg Taylor
c7f32f904d Lots of re-arranging of the comsys and near completion of comsys player commands. I'm going to halt further progres on this long enough for me to take a second look at my code and re-factor some things, then go on to work on some of the lesser-used commands. New in this revision: on, off, last, who for channels (pub who, etc.). Make sure you nuke all of your comsys-related tables and re-sync. 2007-05-25 03:24:23 +00:00
Greg Taylor
8335f8b80f Fixing exit traversal. Was trying to be too careful for my own good in the command handler. 2007-05-23 01:49:19 +00:00
Greg Taylor
204ef6d4c5 Big commit. We now have a respectable command table with built in permission checking. I've commented this pretty well, so see cmdtable.py and cmdhandler.py for more details. There is also some assorted cleanup and an unrelated fix or two resulting from the new Twisted back-end. Note that for the permissions, you will eventually be able to override the codebase's permissions via the web interface for each command. 2007-05-22 15:11:56 +00:00
Greg Taylor
531fbbacaa Fixing @open to be a bit more robust. Also handle exit name matching a lot more gracefully. 2007-05-18 15:20:24 +00:00
Greg Taylor
107bd6d71a Implemented channel communication. You may now addcom/delcom and talk over channels. See @clist for master channel list, and comlist for your personal list. Still tons of work and cleanup to do, but it's in functional in its simplest form. 2007-05-16 20:01:54 +00:00
Greg Taylor
ac32ab05c1 Finally caved in and created a command table. It's just going to get too messy with @-commands doing straight module lookups, plus the dict is probably a little faster. Feel free to start moving non-privved @-commands to commands_general and vice-versa since we now have the ability to do so. 2007-05-11 15:23:27 +00:00
Greg Taylor
f1dd985294 Added idle timeout code to help combat the screwed up session situation. Some admins would've wanted this eventually, but it'll help until I figure out how to close dead sessions that look like they're still alive. Added a new server config directive, idle_timeout. If the value is non-zero, the idle timeout is the respective number of seconds between commands. Also, the IDLE command will save you from idle timeouts but won't modify your publicly visible idle time. 2007-05-09 15:28:12 +00:00
Greg Taylor
a1bc2375ef Finish up single-character aliases for pose, say, and pose/nospace. 2007-04-30 19:49:30 +00:00
Greg Taylor
4fd5a20e2c Added a @reload command to reload most of the modules. This currently only seems to work for the stuff outside of the apps directory, and doesn't include the server, session_mgr, or events modules, as they have variables in them that we can't have reset. So basically, changes to the functions_ and commands_ modules can be applied with @reload, but little else. Hopefully this will improve with time. Also fixed a bug with @name'ing players but not updating their account's username to reflect it. 2007-04-30 17:51:55 +00:00
Greg Taylor
81b1797144 Finished moving error trapping to cmdhandler.py. No need to do any exception handling on a per-command basis anymore. 2007-04-30 14:33:22 +00:00
Greg Taylor
98e9175582 Addition of a player_search() function in functions_db. This first searches for alias matches (exact, no case-sensitivity). If it finds none, it does a normal local_and_global_search() limited by object type PLAYER. Also did some more code cleanup and commenting. 2007-04-30 14:21:48 +00:00
Greg Taylor
5421ab7f6e Re-organization. 2007-04-03 13:42:51 +00:00
Renamed from evennia/trunk/cmdhandler.py (Browse further)