Commit graph

49 commits

Author SHA1 Message Date
Greg Taylor
5c5d2249bd Command reloading ended up being really super easy. @reload now rebuilds and re-imports all of the command modules. This should make development a lot easier. 2009-01-27 16:16:43 +00:00
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
848c7da075 Don't allow even superusers to modify non-modifiable attribs. 2009-01-25 03:16:49 +00:00
Greg Taylor
7ff97599be Move standard_objsearch to Objects.search_for_object. Also make sure @alias only accepts alphanumeric strings. 2009-01-25 03:11:52 +00:00
Greg Taylor
625d7ce8c9 Fix @cpattr to work, simplified it a bit as well. Still nowhere near MUX2 compliant at this point. 2009-01-24 20:48:16 +00:00
Greg Taylor
9407eb0ee4 Huge overhaul in the way objects and sessions are used with commands. We now pass all commands through objects (aside from unlogged commands), which means session.msg() is now deprecated for any use other than unlogged out.
As a side-effect of all of this, logging in more than once acts as behaves now. Also, this will allow things/rooms/exits (IE: not players) or un-logged in players to run commands or be forced to run them via @fo. All of this will bring us more in-line with MUX behavior.
2009-01-24 20:30:46 +00:00
jamesvclemence
50f4d04096 Fixed comment again, trailing space made a mess 2009-01-24 19:26:27 +00:00
jamesvclemence
ea51083797 Neatened comment to fit line length 2009-01-24 19:24:57 +00:00
jamesvclemence
0f51a5b1a8 Corrected the erroneous use of tabs - mistake in vim config\! 2009-01-24 19:21:09 +00:00
Greg Taylor
16e494f508 Fix HelpEntry model search field in the admin to search for topic name and the topic's text. Add missing search types to @search, aside from 'powers', which will need to be added once we figure out how powers will work. 2009-01-24 03:50:37 +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
Greg Taylor
f2d4b3aba4 I have imported and dumped the MUX2 help files into a fixture in game/docs/help_files.json. These are now loaded on the first game's run. As we update help files and dumpdata/commit them, game admins may use the new 'update_help' manage.py command to update their copy of help files. For example: python manage.py update_helpfiles. Those with a current checkout of the source may want to do this now.
It is important to note that these are currently un-modified MUX2 help files. There are a lot of things that are not applicable, incorrect, or only partially correct. It will be an ongoing project to clean these up.
2009-01-24 03:06:18 +00:00
jamesvclemence
9250cb6446 Fixed command failure if one of a list of targets does not exist 2009-01-23 17:54:39 +00:00
jamesvclemence
9820d28438 Fixed the lack of cycling through a list of given objects in @cpattr 2009-01-23 17:49:04 +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
9403d15ae8 Flag searching implemented. 2009-01-22 15:05:31 +00:00
Greg Taylor
377844f1c6 @search is working now, aside from the flag search. 2009-01-22 14:49:58 +00:00
Greg Taylor
a7a3a33334 Add a builder override to object.controls_other function. Also refine what is shown when examining based on ownership and permissions. 2009-01-22 04:20:55 +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
462628ab55 Builders start seeing dbrefs for the most part. 2009-01-15 16:24:52 +00:00
Greg Taylor
8b89a4db2f Don't show dbrefs in get/drop notifications. May add a show_dbrefs flag down the road. 2009-01-15 16:01:23 +00:00
Greg Taylor
c622632654 Paging with aliases should be good to go once more. 2009-01-15 15:38:07 +00:00
Greg Taylor
d0c6723928 Paging once again can be used without a target when LASTPAGED is present. 2009-01-15 15:34:43 +00:00
Greg Taylor
21e4df0c91 More work on the page command. Slightly closer to MUX2 behavior, although there's still a way to go. 2009-01-15 15:28:44 +00:00
Greg Taylor
a2254c2d22 Fix the alignment of the WHO list. 2009-01-15 05:36:03 +00:00
Greg Taylor
5bce1e0ec2 Don't error when @name without an argument. 2009-01-15 05:23:29 +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
156e409bda Fix channel history to yank the broadcasting of 'last', also added a "To be implemented" notice to @reload. 2009-01-15 04:18:23 +00:00
Greg Taylor
51a648ddab Fixes a few more command errors in commands without args. Create from the login screen now works without errors again. 2009-01-15 03:48:42 +00:00
Greg Taylor
59e5f60e34 Whoops, forgot to protect against no arguments. Silly me. 2009-01-15 03:25:27 +00:00
Greg Taylor
800e84a15e This should fix the comsys channels not behaving well. 2009-01-15 03:22:29 +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
jamesvclemence
d89f85cb98 Corrected comment for the ingame check on 'create' command 2009-01-12 16:29:13 +00:00
jamesvclemence
623f6bea5a Disabled the use of 'create' and 'connect' ingame 2009-01-12 16:26:07 +00:00
jamesvclemence
d80d93b250 cmd_connect improved to fail gracefully if no argument is provided. 2009-01-12 08:49:19 +00:00
jamesvclemence
da505f3bf5 cmd_create improved to fail gracefully if no argument is provided. 2009-01-11 23:06:16 +00:00
Greg Taylor
9a166ba024 Moving script_parent to a field on the object model. This is critical enough to warrant it being there instead of in an attribute. Minor changes here and there.
NOTE: This update adds a field, delete your evennia.db3 or manually add a NOT NULL 'script_link' charfield(255).
2008-12-16 04:28:57 +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
18e2eca2c5 Removed some retarded uses of 'server' reference variables. 2008-12-16 03:17:45 +00:00
Greg Taylor
5249f27074 Things should be working again, minus the web stuff. 2008-12-15 04:35:00 +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
51a911d048 We now access the scriptlink by calling object.scriptlink instead of get_scriptlink. Shortens the typage a little and allows for some less complex fun possibilities down the road. 2008-06-21 02:05:44 +00:00
Greg Taylor
cf18029be1 Moving some of the login tasks out of sessions.py and into the BasicPlayer script parent. Also, added seconds to the 'time' command, which I apparently forgot. 2008-06-15 21:29:27 +00:00
Greg Taylor
a954069776 Finished moving stuff around, things should be in mostly working order now. 2008-06-15 20:31:25 +00:00
Greg Taylor
5064d0cacc Moved defines_globals to src/ 2008-06-15 20:04:06 +00:00
Greg Taylor
811016867b Comsys moved to src/ 2008-06-15 19:41:27 +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