Michael King
4cb2617324
Added extrapolated "name_exists" function.
...
Note that this can move, I just put it where it made
the most sense.
Code that checks for account names and aliases can
now be replaced with (assuming this is imported):
functions_user.name_exists("username")
If there is an alias match or an account match, it
will return True.
2009-01-13 07:21:41 +00:00
Michael King
86010b6ea4
Removed "finally" keyword that breaks python 2.4 compatibility.
...
This should work as expected without the "finally", as the exception will raise after the log message.
2009-01-13 06:34:28 +00:00
Greg Taylor
e0668e3573
Easy Python 2.4 compatibility tweak. Don't think the 'finally' keyword existed in Python 2.4
2009-01-13 01:42:39 +00:00
Greg Taylor
b05fa3112f
Provide at least some feedback when stopping a daemon-mode server.
2009-01-12 18:03:14 +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
Greg Taylor
0b533b984d
Fix interactive mode to actually show the output in the foreground session, rather than to a log file.
2009-01-12 18:00:27 +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
Ozan Turkyilmaz
cc3c54b3fe
start-up stript in python. for stoping the server on nt we have to use win32 api which i have no idea.
...
if it does not work, let me now
next thing to do is use subprogress.
Ozan
2008-12-18 22:31:22 +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
62d0be532b
Remove reference to the non-existant test game from the README.
2008-12-16 03:12:20 +00:00
Greg Taylor
a517f833b5
Updated installation instructions slightly.
2008-12-16 03:11:49 +00:00
Greg Taylor
7b77b936ca
Fixing startup script.
2008-12-15 16:26:37 +00:00
Greg Taylor
f0f31a9a69
Finish cleaning up the script stuff. Added a README to the base parents directory warning not to modify the classes there.
2008-12-15 05:58:32 +00:00
Greg Taylor
122bf4e3ff
Splitting the scripted parent system out into the gamesrc directory. There will be more explanation of this later.
2008-12-15 05:55:04 +00:00
Greg Taylor
00297d336a
Big change here is that you now either need to run manage.py (with or without arguments) in order to create your settings.py file when doing initial setup. Or creating it works too.
...
Also get ready to start separating things out into the new game directory.
2008-12-15 04:56:47 +00:00
Greg Taylor
714804e253
Web stuff is once again working with the development server. This is mostly useful for the admin interface.
2008-12-15 04:43:48 +00:00
Greg Taylor
5249f27074
Things should be working again, minus the web stuff.
2008-12-15 04:35:00 +00:00
Greg Taylor
322c626295
Silly me, forgetting these __init__.py files.
2008-12-15 04:06:59 +00:00
Greg Taylor
f22c982cbe
Should be done moving stuff around, now to get it working again.
2008-12-15 04:04:53 +00:00
Greg Taylor
f45aa57751
2008-12-15 04:03:49 +00:00
Greg Taylor
98b32580b5
2008-12-15 04:01:58 +00:00
Greg Taylor
837f1152c6
Starting here, trunk is broken pending re-organizations. Check out the previous revision if you'd like to tinker.
2008-12-15 04:00:25 +00:00
Greg Taylor
4b25a08597
Tweak property to hide journaled db3 files.
2008-12-15 03:40:23 +00:00
Greg Taylor
01db5700e8
More re-arranging to make things more closely resemble MUX/MUSH directory structure. Reason we're doing this is to begin the emergence of a separation of server code from game-specific stuff (called a driver by some codebases like LPMud).
...
Ideally game developers don't touch the server code, they just play within the game directory, which will contain all of their script parents and stuff.
NOTE: I may have broken the Linux/Unix start script. I am not able to boot back into Linux at the moment due to some testing going on, so if anyone could take a moment to tell me one way or another, I'd appreciate it.
NOTE: You'll need to move your evennia.db3 file into the game directory if you're using sqlite.
2008-12-15 03:37:30 +00:00
Greg Taylor
66a529ba84
The command handler has been completely overhauled and is actually readable now. It -might- be a little faster as well. It's not really that point in development to start micro-optimizing, so I haven't ran any benchmarks.
...
Our command evaluation now mirrors MUX2's. It was kind of weird before now, I'm not really sure how it got so out of order. In any case, I'm no longer ashamed of our command handler code. Hooray.
2008-12-15 01:10:26 +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
37d66093cc
Addition of a re-usable CommandTable class. We still have two global command tables that are now instances of this class. Game developers will use methods on CommandTable to add their own commands without modifying the base server code.
...
This is also in preparation of allowing commands to be present on objects via their script parents.
2008-12-14 01:49:37 +00:00
Greg Taylor
d38f2bd2f8
2008-12-14 01:12:43 +00:00
Greg Taylor
90cdc6573d
Making comments consistent across both Windows and Linux/Unix startup scripts. Added some elaboration about Twisted Command Prompt in startup.bat.
2008-12-14 00:06:59 +00:00
Greg Taylor
e3c58aeb6d
Fixed startup.bat to work again since the creation of the 'src' folder. Forgot to update the path. Also updated Windows 'Getting Started' guide on evennia.com to be more verbose.
...
Also did a few really minor formatting fixes and commenting elsewhere.
2008-12-14 00:02:11 +00:00
Ozan Turkyilmaz
7b53efac69
added stop fonctionaly into the script as it is useful for daemon mode.
2008-12-12 13:49:58 +00:00
Greg Taylor
c8e460e668
Forgot to update the INSTALL file with the new local_settings.py stuff.
2008-12-11 17:00:43 +00:00
Greg Taylor
2e6a74760f
Important change! Removed settings.py.dist and settings_common.py in favor of a local_settings.py file. This will make changes to the settings file much easier. You will need to create local_settings.py. Copy-paste any variables you'd like to change from settings.py to local_settings.py. Anything appearing in local_settings.py over-rides settings.py. For those that have been following the codebase and have a settings.py file of their own, you'll need to either delete it or move it to a file name other than settings.py so that the new default settings.py file from the repository may be downloaded.
2008-12-11 16:53:04 +00:00
Greg Taylor
b1cf3f4af0
Courtesy of Ozan Türkyılmaz, startup.sh now takes flags for interactive and daemon mode. If no arguments are provided, default to daemon mode.
2008-12-08 20:43:43 +00:00
Greg Taylor
3041684ba3
Django admin functionality restored.
2008-11-05 18:17:59 +00:00
Greg Taylor
75c38ada19
Evennia once again runs on the latest trunk. Admin interface is still broken pending transition to newforms-admins stuff.
2008-11-05 18:08:51 +00:00
Greg Taylor
72df223b3a
Fix the os_path reference, should be os.path.
2008-10-21 20:10:34 +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
e6e5a889f5
I am reminded that having to mess with config files sucks. Try to derive BASE_PATH on our own so admins don't have to.
2008-06-21 01:29:55 +00:00
loki77
3e57f49395
New way of working with scriptlinks.
...
Scripts should be defined as '.' separated directory structures, starting in the base evennia directory.
2008-06-18 04:36:23 +00:00
loki77
6d1a8b8250
Fixed a bug with scriptlink that caused an error for players. Basically it split on ., which I believe used to be the seperator, but it is now /.
2008-06-17 01:37:11 +00:00
loki77
186dcc17c5
Fixed bad indentation.
2008-06-17 00:38:59 +00:00
Greg Taylor
6b1662f370
One more consistency nit-pick before I take a rest for a while.
2008-06-15 21:33:17 +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
b12ba45cc7
Moving constants over to the new flags module.
2008-06-15 20:41:58 +00:00