Griatch
1314629a06
Minor bugfix of addcom command, some other cleanup.
2009-05-02 15:55:47 +00:00
Griatch
5bc1db70ed
Added help/del to the state-help system, made some appearance tweaks on the examples.
2009-05-02 08:55:12 +00:00
Griatch
fd050f75ca
Some adjustments of the formatting for auto_help. Added some colours to the state_example menu.
2009-05-02 08:25:37 +00:00
Griatch
cafbdf720e
Minor typo-fixes as well as making some variable names more intuitive.
2009-05-01 15:56:19 +00:00
Griatch
0efe2c3095
Created a state system. See
...
http://groups.google.com/group/evennia/browse_thread/thread/66a7ff6cce5303b7
for more detailed description.
Created a new folder gamesrc/commands/examples and moved all examples in there.
/Griatch
2009-05-01 15:34:43 +00:00
Griatch
ba623af351
Took out some useless code and imports left in after testing this.
2009-05-01 06:42:37 +00:00
Greg Taylor
a5efca450d
Looks like there's an import in here that doesn't exist. Commenting it out. Starkiel, was this supposed to do anything?
2009-05-01 05:03:52 +00:00
Griatch
3eb4cddf42
- implemented @destroy as per the MUX help specifications. As part of this, fixed the object recycling routines to actually properly replace GARBAGE-flagged objects (it crashed before).
...
- Set up a global cleaner event to clean all @destroyed objects every 30 minutes (makes their dbrefs available).
- Added the @recover command for recovering @destroyed objects up until the point that the cleaner runs and actually destroys them. This can recover @destroyed objects, rooms and exits to the same state as before @destroy. It could easily be made to recover player objects too, but I'm thinking this would be a security issue.
- Added to @dig in order to allow for creating rooms with a particular parent. Also auto-creates exits in each room if desired. The only things that is not implemented is the aliases of the exits, I don't really know how to do that.
- Changed the @create command format to match the @dig (it uses : to mark the parent instead of = now, since MUX' @dig reserve = to the exit list.)
- Added extra security in the example event to guard against the bug that causes the whole scheduler to freak out if the event_function() gives a traceback.
- Changed many instances of type to point to the defines_global.OTYPE instead of giving the integer explicitly.
/Starkiel
2009-04-30 15:01:59 +00:00
Griatch
8799a0fd55
Added example of how to handle event errors gracefully without them taking down the server with with unhandled exceptions (this should be handled somewhere above exception too, but it's hard to tell when to do it since twisted is raising them). /Starkiel
2009-04-30 08:23:54 +00:00
Griatch
b63bcc6132
Removed an unneeded debug logger entry from the example event to avoid spamming the log.
2009-04-26 11:04:54 +00:00
Griatch
a9dbac8aae
- Made many small bugfixes to the @parent and @create functions as well as their underlying methods.
...
- Made it so user #1 is also affected by the on_player_creation() function.
- Added an event folder for custom events, including a working example
- Expanded the example commands and parents to include the changes to how they should be initialized.
- Added an optional ansi scheme (not active by default)
2009-04-25 20:51:12 +00:00
Greg Taylor
0ad8c88c22
Comment elaboration.
2009-04-25 06:32:47 +00:00
Greg Taylor
ffa03309fc
Local object command tables are now in. See game/gamesrc/parents/examples/red_button.py for example. Note that local command matches will override global matches. Command handler short circuits on the first command match. This will typically be the object with the lowest ID.
2009-04-25 06:11:42 +00:00
Greg Taylor
ef371aaee2
Ah heck, why not one more?
2009-01-30 06:45:18 +00:00
Greg Taylor
001a698b19
URL update for documentation.
2009-01-30 06:41:54 +00:00
Greg Taylor
9c1dc0a62c
Fix a path issue.
2009-01-30 06:35:50 +00:00
Greg Taylor
4cfe2b6bd9
First draft of example WSGI stuff.
2009-01-30 04:16:17 +00:00
Greg Taylor
f69252a490
Discontinuing the platform-dependent startup scripts in favor of cross-platform evennia.py.
2009-01-30 03:58:22 +00:00
Greg Taylor
df69011134
Working on getting command tables implemented on individual objects. It's probably not a good idea to update to this revision in a 'production' environment yet.
2009-01-30 03:28:41 +00:00
Greg Taylor
a7ba0d0feb
Adding example command module.
2009-01-27 16:34:21 +00:00
Greg Taylor
ee94da4bd8
Forgot to update the @cpattr help file with a minor syntax fix.
2009-01-24 20:48:57 +00:00
Greg Taylor
9407eb0ee4
Huge overhaul in the way objects and sessions are used with commands. We now pass all commands through objects (aside from unlogged commands), which means session.msg() is now deprecated for any use other than unlogged out.
...
As a side-effect of all of this, logging in more than once acts as behaves now. Also, this will allow things/rooms/exits (IE: not players) or un-logged in players to run commands or be forced to run them via @fo. All of this will bring us more in-line with MUX behavior.
2009-01-24 20:30:46 +00:00
Greg Taylor
f2d4b3aba4
I have imported and dumped the MUX2 help files into a fixture in game/docs/help_files.json. These are now loaded on the first game's run. As we update help files and dumpdata/commit them, game admins may use the new 'update_help' manage.py command to update their copy of help files. For example: python manage.py update_helpfiles. Those with a current checkout of the source may want to do this now.
...
It is important to note that these are currently un-modified MUX2 help files. There are a lot of things that are not applicable, incorrect, or only partially correct. It will be an ongoing project to clean these up.
2009-01-24 03:06:18 +00:00
Greg Taylor
b646aa5093
As of Twisted 8.2, win32api is required for Windows. Try to import win32api before evennia.py hits Twisted and causes an un-friendly looking exception. If win32api isn't found, show an error message with the download URL.
2009-01-24 02:56:53 +00:00
Greg Taylor
6715f76847
Make helpentry topic names unique. Add a description to the cross-platform startup script. Added a util directory and a MUX/MUSH help file importer script.
2009-01-22 16:56:00 +00:00
Greg Taylor
214534a86f
Fix the Auth section not showing up in automatic admin.
2009-01-22 04:01:54 +00:00
Greg Taylor
0169c52442
Fix the admin displays for most of the models. ConfigValue is being weird for some reason, though.
2009-01-18 04:54:05 +00:00
Greg Taylor
f5ba11e7e7
Clean up imports, done messing with this for a while. Please help test it.
2009-01-15 15:12:31 +00:00
Greg Taylor
f4b784cfa9
Use os.kill for shutting down the game instead of getting it through Popen.
2009-01-15 15:11:32 +00:00
Greg Taylor
2d746f617b
Catch keyboard interrupts so they don't throw an error.
2009-01-15 15:07:06 +00:00
Greg Taylor
e1e974c196
This may actually knock out our settings problem for good.
2009-01-15 15:03:18 +00:00
Greg Taylor
6d93c4114f
Latest iteration of the new cross-platform startup script, please test!
2009-01-15 03:50:47 +00:00
Greg Taylor
5bf1461d75
This should get all of the web stuff working peachy again.
2009-01-15 02:46:38 +00:00
Greg Taylor
abe17a2965
Re-designed the startup script to be more cross platform and robust.
2009-01-13 17:06:03 +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
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
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
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
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