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