Commit graph

145 commits

Author SHA1 Message Date
Greg Taylor
bb0ff9f6ff Implement @wipe as per MUX. NOTE: THIS REVISION REQUIRES YOU TO RE-SYNC YOUR objects_attribute TABLE. The best way to do this is to drop your attribute table and your comsys tables, then re-sync via syncdb. This was needed due to some conflicts in namespace that I didn't want to get around with disorganized work-arounds. 2007-05-24 17:44:17 +00:00
Greg Taylor
9457e19787 logs/evennia.log is now writing once more. Also fixed a stupid indentation error. 2007-05-24 14:49:05 +00:00
Greg Taylor
b6c869b076 Abstraction of generic player object searches, as should've been case from the beginning. Bad me for letting this get out of hand! In any case, this eliminated a lot of code and makes pretty much all of the commands that interact with objects a lot neater, readable, and consistent. 2007-05-24 14:22:11 +00:00
Greg Taylor
b47d0d2b07 Use Twisted's logging facilities. 2007-05-24 03:36:58 +00:00
Greg Taylor
f9f24f6616 Don't return attribute matches if said attribute is in the hidden attribute list. 2007-05-24 03:22:11 +00:00
Greg Taylor
39b640e948 Add the ability to examine obj/attr with wildcards. 2007-05-24 02:58:59 +00:00
Greg Taylor
88dcdc95eb Some documentation fixups that I noticed off-hand. 2007-05-23 19:52:55 +00:00
Greg Taylor
a523f845d1 One-liner nitpick. 2007-05-23 19:40:21 +00:00
Greg Taylor
3ecb46f958 Added @ps to show events and the next time they're going to fire. 2007-05-23 19:19:20 +00:00
Greg Taylor
53b111f4ae Shiny new event system that uses Twisted's task stuff. This one is a good bit more flexible and semantically correct. More to come on this soon. 2007-05-23 19:00:37 +00:00
Greg Taylor
7d78cbcf4b Adding wildcard_to_regexp() to functions_general and cleaning up some imports. 2007-05-23 17:51:31 +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
928a5a29d6 Fix a problem with @cemit permissions. 2007-05-22 23:53:05 +00:00
Greg Taylor
52c986dff7 Whoops. 2007-05-22 15:49:29 +00:00
Greg Taylor
f69313f950 Clear up handling of 'me' and 'here'. 2007-05-22 15:41:28 +00:00
Greg Taylor
1a996bbf7e Added a HIDDEN_ATTRIBS list to defines_global.py containing a list of attributes that shouldn't show up on examined objects. 2007-05-22 15:22:25 +00:00
Greg Taylor
59518c440c We're now in shape that I'd consider Alpha-quality rather than pre-alpha. Admins can now actually start building grids without fear of people doing bad stuff, and for the most part the codebase should hold up. 2007-05-22 15:14: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
9746382614 Fixing a flag on twistd. As an addendum to the last commit, there is a big speed improvement, it wasn't just imagined. Check it out on the public test server at evennia.com port 4000. 2007-05-21 20:53:56 +00:00
Greg Taylor
97cf1213e6 Converted to Twisted from asyncore. Not positive if this is just my local machine, but it seems like this backend is a bit faster. 2007-05-21 20:52:05 +00:00
Greg Taylor
82f46a2b69 Minor doc clarification. 2007-05-18 15:39:27 +00:00
Greg Taylor
5ee9f0d577 It's time to take care of the legal mumbo jumbo. We're going with a Modified Clarified Artistic License. Basically, you've got free reign of the software as long as you make any of the changes to the source you make publicly available. 2007-05-18 15:36:28 +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
f6311dd41e Gah, one of these days I'll remember to completely fix both sides of things. No longer showing object's dbref on disconnect either. 2007-05-18 14:25:31 +00:00
Greg Taylor
9e5c297faa Don't return the ansi-fied version of the Object's name on its __str__() method as this is used in the admin interface and makes nasty looking garbage appear. 2007-05-18 14:07:57 +00:00
Greg Taylor
756ac8dfe1 More case-sensitivity stuff. Also remove player's dbref from first connection welcome message. 2007-05-18 13:44:21 +00:00
Greg Taylor
9221f889e3 Attribute names are no longer case-sensitive, as per MUX/MUSH. Also added LAST and LASTSITE to the protected attribute list. 2007-05-18 13:39:57 +00:00
Greg Taylor
2a46879ad2 Set a the player's LAST and LASTSITE attributes on connect as per MUX. 2007-05-18 13:36:39 +00:00
Greg Taylor
c067154cd4 Quick fix for channel list retrival. 2007-05-16 20:04:03 +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
17bbc4c3b3 Crash fix for what might be timing out sessions at the login prompt. 2007-05-16 18:25:44 +00:00
Greg Taylor
974c20efc7 Sort command list via @list commands. 2007-05-16 18:22:49 +00:00
Greg Taylor
5e0cb06221 Use cPickle instead of pickle for a small performance boost. 2007-05-15 17:30:45 +00:00
Greg Taylor
c7452e5a88 Finished up addcom/delcom. Added comlist. Fixed @list commands (still needs to sort by command name eventually). 2007-05-15 17:28:23 +00:00
Greg Taylor
e1f4c2e0da @cdestroy now implemented as per MUX. 2007-05-15 14:30:52 +00:00
Greg Taylor
725b1b2ac0 Adding a check to prevent duplicate channel names. 2007-05-15 14:18:56 +00:00
Greg Taylor
463197470e Feexed. 2007-05-11 15:43:55 +00:00
Greg Taylor
44701530dc Indenting fixes, still need to finish on commands_comsys, will pick it up later unless someone beats me to it. 2007-05-11 15:43:06 +00:00
Greg Taylor
65df59ff53 Moving @ccreate from commands_privileged to commands_comsys. Still need to add duplicate name checking. 2007-05-11 15:25:15 +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
2fc06adcfa Adding the first bit of permissions checking as an example. See cmd_who and the Object class's user_has_perm method for examples. We'll need to start fleshing this stuff out before adding many more new commands. For existing games, remove your auth_permissions table and re-sync your DB. 2007-05-09 15:53:53 +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
32fa9e419a Committing the first draft of the comm channel and channel message classes. 2007-05-08 15:06:48 +00:00
Michael King
86e9a8292c * added skeletons for commands_comsys.py (has all of the MUX2 commands I
* could remember) and functions_comsys.py (has a couple of ideas for
* useful functions).
2007-05-04 18:02:49 +00:00
Michael King
e8674f1848 * Created INSTALL; moved initial installation instructions from README
* to INSTALL
2007-05-04 16:58:56 +00:00
Greg Taylor
cd70495f47 Was looking for an excuse to nab revision 100 :) Updated some stuff to reflect our new Google project/code pages. 2007-04-30 20:02:11 +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
4f67efb70a Implemented page history, meaning you don't need to provide your victim's name/alias and the equal sign after the initial page. TODO: Allow paging multiple people at once, ala MUX. 2007-04-30 18:39:41 +00:00
Greg Taylor
c4597f41a1 WHO alignment fix. Whoops. 2007-04-30 18:19:06 +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