Commit graph

14 commits

Author SHA1 Message Date
Greg Taylor
4ca5a4a7bf Revamp how commands are loaded. This will now allow for easy addition of custom commands and over-riding existing Evennia-supplied commands. 2009-01-27 15:21:15 +00:00
Greg Taylor
7280eaf803 Add an extra_vars element to the command table that allows extra variables to be passed through the command table. Also added DOING ala MUX. 2009-01-24 03:17:43 +00:00
jamesvclemence
3d4ad07f9a @cpattr now coded, please post reports if bugs found, appears to work as expected. 2009-01-23 17:25:22 +00:00
Greg Taylor
377844f1c6 @search is working now, aside from the flag search. 2009-01-22 14:49:58 +00:00
Greg Taylor
4c562cd6ce Work on the comsys. @cwho is working now. 2009-01-22 03:19:40 +00:00
Greg Taylor
8ebea8c22e Add MUX-style @chzone. 2009-01-18 02:40:57 +00:00
Greg Taylor
1a3942edac MUX-style @chown implemented. 2009-01-18 02:34:50 +00:00
Greg Taylor
914628d385 Fixed an issue with Object manager's is_dbref. Paging should be a lot more sound now too. 2009-01-15 05:11:55 +00:00
Greg Taylor
e6d3d9395d Previously, the global command table was being filled with entries from other tables due to some funky globalization of the ctable instance variable. Fixed that and yanked the conditionals on a few of the logged out commands that check for logged in status. 2009-01-12 18:01:35 +00:00
Greg Taylor
bd3d195d5b Beginnings of @parent, the in-game tie-in for the scripting system. Can now list the currently cached scripts via @parent/showcache, and clear the cache via @parent/clearcache. 2008-12-16 03:36:49 +00:00
Greg Taylor
d58f4eb517 Looking through our command code after a long hiatus, I realized that it was pretty much awful. So here's part 1 of the command interpreter overhaul.
- The command handler has been drastically simplified. We were doing way too much processing in the handler that should have been done in the individual command functions themselves.
- The 'cdat' dict we were previously passing around has been replaced with a Command object that has useful methods for performing some of the parsing command functions will probably want to do from time to time.
- All commands were updated to use the new Command object, tested, and cleaned up in general.
- A lot of formatting was cleaned up.
- A lot of previously un-found bugs and limitations were fixed.
- The 'page' command has been broken out into its own file, since it's going to have a number of functions that would otherwise clutter commands/general.py.

Expect a commit (probably later today) that will clean up the second half of cmdhandler.py.
2008-12-14 20:21:02 +00:00
Greg Taylor
37d66093cc Addition of a re-usable CommandTable class. We still have two global command tables that are now instances of this class. Game developers will use methods on CommandTable to add their own commands without modifying the base server code.
This is also in preparation of allowing commands to be present on objects via their script parents.
2008-12-14 01:49:37 +00:00
loki77
186dcc17c5 Fixed bad indentation. 2008-06-17 00:38:59 +00:00
Greg Taylor
4bb00013ae Even more death and destruction. A lot more stuff moved to src/. A lot more bugs probably introduced. 2008-06-15 19:38:39 +00:00
Renamed from cmdtable.py (Browse further)