Michael King
5f962b69a0
Added clear_things, clear_players and clear_exits to Object class.
...
* obj.clear_things() relocates all things contained by obj
* obj.clear_players() relocates all players contained by obj
* obj.clear_exits() destroys all exits to and from obj
2007-08-06 20:00:41 +00:00
Greg Taylor
be4e0069a6
Adding comments.
2007-07-31 19:32:03 +00:00
Greg Taylor
65e1b85c6f
Some cosmetics. Also make searching news match against Title and Body for now. Will eventually have some checkboxes to with the option to do both or only one.
2007-07-31 18:39:48 +00:00
Greg Taylor
85d13fe16b
I forgot to add the flatpages templates directory, whoops. Also fix a pluralization cosmetic thing in the admin interface for News entries.
2007-07-31 18:28:42 +00:00
Greg Taylor
613edc774f
Yay, the news system is looking good now. We'll re-visit it later to add searching/sorting by news categories and stuff.
2007-07-31 18:25:24 +00:00
Greg Taylor
762e0f83bc
The news archives and searching news is now operational. Next up, flatpages.
2007-07-31 14:59:00 +00:00
Greg Taylor
648bee599e
Improvements on the news app. It's not nearly done yet, don't bother playing with it for a while unless you're really curious and want to see ugly, un-refined code :)
2007-07-30 20:30:16 +00:00
Greg Taylor
9db148f98c
Add a placeholder page, tbi.html, and a tbi view /tbi, that can be used to link to when a particular web feature isn't complete yet rather than leaving dead links.
2007-07-30 15:23:42 +00:00
Greg Taylor
6aab3a4145
Added a view for looking at an individual news entry. It's ugly, one of you artsy people should make it less so :)
2007-07-26 15:50:24 +00:00
Greg Taylor
1afcd6bf99
We've now got a sane template structure. webtemplates/base.html is the parent of all pages. index.html in that directory is the default page, and sub-directories from there will hold the templates for various applications. Notice how in index.html and the file in the news directory are put together. It's really simple, see the Template documentation on djangoproject.com for more in-depth details.
2007-07-26 13:52:46 +00:00
Greg Taylor
a3ac4ff17c
Word wrap is messing things up a bit. Disabling it for now until we have more time to check this out.
2007-07-26 12:48:44 +00:00
Greg Taylor
fadf3933af
Move the presentation part of the 'look' command out to the new scripting system. You can now make different scripted objects appear vastly different by overriding basicobject's return_appearance (or any of its submethods). Also fixed word wrapping, and we are now wrapping descriptions to 78 characters by default. We'll see how gracefully it handles this, and we might eventually apply it to all output.
2007-07-17 14:39:10 +00:00
Greg Taylor
357ef3a250
Added two new channels: Errors and Info. These will now emit stuff that is sent via log_infomsg and log_errmsg.
2007-07-16 18:49:57 +00:00
Greg Taylor
ebb145654f
Some more work towards having a working news module. This isn't anywhere near ready yet!
2007-06-12 03:37:22 +00:00
Greg Taylor
115a420cee
The default front webpage now has some good examples on how to add in custom functionality. You'll obviously want to customize this for your game, but it'll be a good start.
2007-06-12 02:35:37 +00:00
Greg Taylor
72ebe9cc7b
Finished the Players content block on the default main page. Yay. http://sandbox.evennia.com is the front page for the test site. None of the links work yet, just working on the front page.
2007-06-06 13:49:52 +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
270db06820
Making get_configvalue a bit more informative if a config value can't be found. Also actually populating the webcontext's game_name via get_configvalue.
2007-06-06 12:37:34 +00:00
Greg Taylor
e80fa61d03
News app.
2007-06-05 20:07:19 +00:00
Greg Taylor
1e13d94b20
Beginnings of the integrated front-end website.
2007-06-05 20:06:21 +00:00
Greg Taylor
94ceec3719
Scripting support is now in! See cmd_look (the end of it), scripthandler.py, and scripts/basicobject.py for very brief examples. I'm not sure how well this is going to scale, I had to kludge the import a bit due to some oddities with __import__. There has to be a better way to do this, hopefully I'll be able to figure it out. In any case, expect basicobject to start fleshing out. You'll be able to use it directly or sub-class it with your own stuff.
2007-06-04 20:01:03 +00:00
Greg Taylor
7d869dff18
Moving the game port selection to settings.py for simplicity and security.
2007-05-27 22:06:12 +00:00
Greg Taylor
543a9cfe26
Fix for MySQL sillyness.
2007-05-27 21:56:40 +00:00
Greg Taylor
f7d58f16ae
Possible MySQL fix.
2007-05-27 20:45:40 +00:00
Greg Taylor
5d066a7839
@description? wtf was I thinking? It's supposed to be @describe. Fixing. Existing games will need to update their alias lists.
2007-05-27 16:43:16 +00:00
Michael King
d2115991f8
* Merged in wipe-command branch into trunk (mking)
2007-05-25 17:31:29 +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
49b6a0ba57
Minor fix to accomodate some database re-organization.
2007-05-25 00:21:08 +00:00
Greg Taylor
e1dbdba951
We don't really need a members field on the channel object.
2007-05-24 20:20:00 +00:00
Greg Taylor
485204e979
Create a Public channel by default, make a channel's name and ansi_name the same thing on initial creation.
2007-05-24 19:53:36 +00:00
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
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
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
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
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
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
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
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
7012960a70
Remove get_ansiname() by condensing functionality into get_name(). Removed session debug statements I had in for testing.
2007-04-26 20:32:56 +00:00
Greg Taylor
0fc89247aa
No longer need to distribute a database file. Each user will run their syncdb script and start with a clean slate. Updated installation instructions in README.
2007-04-25 19:39:15 +00:00
Greg Taylor
3292405fcb
Adding initial data via Django's syncdb facility. We will no longer distribute a SQLite DB in the near future in favor of this cross-platform alternative. Also in this commit is a crash fix for @dig with SQLite.
2007-04-25 14:47:33 +00:00
Greg Taylor
9e587bd4e3
Important update: Fixed two crash bugs in attribute getting/setting. Less importantly, the money value shown in 'inventory' now pluralizes properly.
2007-04-23 15:22:40 +00:00
Greg Taylor
5421ab7f6e
Re-organization.
2007-04-03 13:42:51 +00:00