Commit graph

2866 commits

Author SHA1 Message Date
Greg Taylor
be05772713 Script methods will now take a dictionary with keys rather than hard arguments. This will hopefully allow for a bit more flexibility. 2007-07-17 15:58:19 +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
fa4cc4cab3 Make config values not case-sensitive. 2007-07-17 13:26:00 +00:00
Greg Taylor
6d8d280248 Cosmetics. 2007-07-16 19:12:38 +00:00
Greg Taylor
ad92c85067 Ok, I really should test this stuff before committing. send_cmessage() should now handle invalid channels. 2007-07-16 19:09:10 +00:00
Greg Taylor
26bec8a281 Third time's a charm? 2007-07-16 18:58:30 +00:00
Greg Taylor
4c6f7b9db8 Not a very good solution, but it'll do for now. 2007-07-16 18:55:20 +00:00
Greg Taylor
aed889b11c Attempt #2 2007-07-16 18:52:55 +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
debb34aae9 You may now specify a list of ports in settings.py to listen on instead of just a straight integer value. You'll need to copy GAMEPORTS from settings.py.dist if you have an existing game. 2007-07-15 01:16:02 +00:00
Greg Taylor
270f7e7128 Comment clarification. 2007-07-12 17:44:43 +00:00
Greg Taylor
94779a86a5 Added new SCRIPT_ROOT variable to settings.py, you'll need to copy this over from settings.py.dist if you're running a test game. We also now have rudimentary support for default, enter, and use locks per the basicobject.py file. Take a look at the example locks in there. A returned boolean value determines whether the player passes. Make sure you emit an error message within the lock if you're going to return false. We will have simple in-game attribute or dbref locks via an @lock command similar to MUX/MUSH that override scripted behaviors. 2007-07-12 13:45:23 +00:00
Greg Taylor
679ef8dc74 Whoops, fixed some comment stuff. 2007-07-10 15:34:36 +00:00
Greg Taylor
9c57e1cf7a Adding some more script hooks. 2007-07-10 15:34:07 +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
dfc358ada8 WINDOWS USERS: (This applies to UNIX/Linux as well, but is probably more interesting to Windows users). You may now open up your settings.py file and add SERVE_MEDIA=True to serve media directly from Django. This is useful when you're running Django's built-in development server and want to be able to get to your CSS/Images, or if you have an apache server and don't want to configure a media location. Note that this is NOT something you want in a production environment, as it's slow, and may pose security risks. However, this will get you up and running very quickly for web work. The new setting, SERVE_MEDIA, is defaulted to False and is in the latest settings.py.dist file. 2007-06-12 01:12:26 +00:00
Greg Taylor
a1f46603d0 The svn:ignore property got blasted in trunk somehow. Re-adding the old values. 2007-06-11 17:20:59 +00:00
Michael King
adbc6ec2bb Removed references to Attribute class from cmd_alias.
Removed Attribute import
2007-06-11 17:07:31 +00:00
Michael King
7052d313b6 Added feedback for @alias if the player does not have control over the
target.
Gave the success results for @alias some clarity.
2007-06-11 17:03:53 +00:00
Greg Taylor
836a2e6fc3 Updated some comments to make them a little more clear. 2007-06-11 16:01:21 +00:00
Michael King
0980408e1c Aesthetics finalized for cmd_alias
Added RollbackImporter skeleton class to Evennia Server class
2007-06-11 15:49:05 +00:00
Greg Taylor
6015aca8db Fix for issue 29, duplicate session removal no longer results in the loss of the CONNECTED flag. 2007-06-11 15:42:47 +00:00
Michael King
8991d4ecac Merged in working changes to alias. Needs better error messages, but
it's in there.
2007-06-11 14:57:02 +00:00
Michael King
9648af6521 Added settings.py to svn:ignore
Merged in updates to branch
2007-06-11 14:48:57 +00:00
Michael King
1d14834a3b Merged first version of alias-command from branch. 2007-06-11 12:50:42 +00:00
Greg Taylor
b1bb2b7927 Fixes to get 'inventory' working again. Whoops. 2007-06-11 02:36:34 +00:00
Greg Taylor
a4b6973c7a Forgot to include some context stuff. You'll need to re-create your settings.py from the settings.py.dist file. 2007-06-10 16:01:35 +00:00
Greg Taylor
418ab7e30f Update last_login on disconnect too. 2007-06-06 14:06:25 +00:00
Greg Taylor
fad87ae759 One more ignore. 2007-06-06 13:50:31 +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
6b8c3f137c Updating some svn:ignore properties to ignore .pyc files. 2007-06-06 13:39:11 +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
f68e686fd9 Missing parenthesis, whoops. 2007-06-06 12:26:50 +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
bb6905c1ca Small fix for certain versions of Python and some simplification of the settings.py file. 2007-06-05 18:07:47 +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
27c0e7a873 Really basic proof-of-concept scripthandler.py for review and discussion. This should illustrate my basic idea about script support. I think this will be a very elegant solution to the scripting situation. This will be filled out in the coming days and will hopefully make more and more sense as I tie it in. Database changes are likely, make sure to keep an eye on the commit logs. Also edited some svn:ignore props and added a placeholder for the basicobject script. 2007-06-04 17:33:31 +00:00
Greg Taylor
e6d7c51771 On second thought, let's move os.name to gameconf. 2007-06-04 15:11:15 +00:00
Greg Taylor
8cc9abfa94 Whoops, forgot a file. 2007-06-04 04:00:08 +00:00
Greg Taylor
bc2ea1780b Fixed an issue with @list that broke Windows compatibilty. We simply won't be able to let the user '@list process' under Windows, as the Python API lacks the needed modules and functions to do so. So everyone doesn't have to go through the head-scratching I did to figure out how to get Evennia running on Windows, I have included a startup.bat file for anyone wanting to develop under Windows. If someone would like me to post instructions on running under Windows, send a mail to the list stating the fact and I'll outline the process. 2007-06-04 03:54:33 +00:00
Greg Taylor
15d80f4c9a I'm going to start tinkering with possible scripting system solutions. Here's the directory structure the standard scripts are going to use. 2007-05-29 03:49:40 +00:00
Greg Taylor
0e9732d49c Big re-organization of command functions. Introduced the commands directory to hold command modules. This will make it easier to sub-divide stuff as we pile on more commands, and for dropping in new optional command modules. 2007-05-29 03:32:48 +00:00
Greg Taylor
a10df7ec6b Update the INSTALL file to include a notice about referring to the web-based documentation. Yes, I'm looking for an excuse to test the commit log :) 2007-05-27 23:20:44 +00:00
Greg Taylor
2e6d4f5a00 Moving the port configuration to the settings.py file and out of the database. 2007-05-27 22:09:06 +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
92165ade01 Mention mysql_old in settings.py.dist. We'll document this in the install docs. 2007-05-27 21:59:16 +00:00
Greg Taylor
543a9cfe26 Fix for MySQL sillyness. 2007-05-27 21:56:40 +00:00