Griatch
93a1646ea7
Moved contribs to use the new API. Added the system command keys to a property syscmdkeys, for easy access from ev.py.
2012-03-25 18:11:14 +02:00
Griatch
d3ea942ac8
Fixed tutorial_world to use ev API.
2012-03-25 17:39:45 +02:00
Griatch
e7869ed830
Removed the old base* start files from game/gamesrc. This is in line with the new API usage. Unfortunately this will likely lead to some collisions for people.
2012-03-25 17:23:10 +02:00
Griatch
b2d91d9bb5
Switched settings_default to use src/ base modules instead of modules in game/gamesrc/ as default (these will be removed)
2012-03-25 17:13:39 +02:00
Griatch
b43fb3156a
Added create_* and search_* helper methods directly in the API.
2012-03-25 17:01:27 +02:00
Griatch
4398d42360
Added new templates to gamesrc/*/examples. The old base* modules still in place. Some cleanup of the API.
2012-03-25 16:35:22 +02:00
Griatch
3408f3ca3f
Added alternative function names to create module, for consistency with the search module. This means you can do create.objects() now too.
2012-03-25 14:01:51 +02:00
Griatch
88c0087fbd
Updated game/ for the ev API. There will likely be some changes happening in the game/folder, in the way new objects are inherited. This should use the API rather than inherit from the basecommand/baseobject modules (these will probably into the example folders as vanilla templates instead).
2012-03-25 13:09:17 +02:00
Griatch
3466e406f6
Exposing some more utils modules to API.
2012-03-24 23:24:54 +01:00
Griatch
cdbdbe6928
API fix; the default_commands ended up in the wrong layer
2012-03-24 23:19:44 +01:00
Griatch
0d01462077
Adding a new API system to Evennia. This centralizes all access of the evennia driver through a single module "ev". Importing ev one should be able to access (and also importantly, easily explore) Evennia's API much easier. This API goes a long way to "flatten" the structure so that one doesn't need to remember how to find some method in a deeply nested subdirectory.
...
As part of this work, I have also written full listings of all available properties on Typeclassed objects (including those inherited in various ways). Should hopefully make things easier to find.
One can of course still import things directly from src/ as before. But this is a first step towards removing the "base" objects in game/gamesrc and instead making those accessible through the core API.
2012-03-24 23:02:45 +01:00
Griatch
7a2cdd3842
Moved all command definitions of Typeclassed entities up one level, to Object, Player and Script respectively. The actual code is still on the models (ObjectDB, PlayerDB and ScriptDB), but one should not be able to use the methods without having to dig into the code as far. Also added extensive, up-to-date headers to the inheriting base objects in game/gamesrc.
2012-03-24 18:25:32 +01:00
Griatch
8ada50fcb7
Adding more lenient checks of TTYPE to avoid a visible traceback. The error with TTYPE utf-8 tracebacks seems to be in an older version of tintin++, newer versions don't show this behaviour. Older versions of tintin++ will display one Huh? (with logged traceback) after which everything will work. This is reported in issue 219.
2012-03-21 19:56:04 +01:00
Griatch
6aac9e6c2b
Fixed permission on @batchcode command.
2012-03-21 11:46:15 +01:00
Griatch
8350c7dca7
Added #INSERT capabilities to @batchcmd processor too. This allows to group and run multiple batch-cmd batchfiles from one central batchfile. You can not mix batchcmd and batchcode files however - that would go beyond the use cases for the respective batch processors (and give unnecessarily complex code for little gain).
2012-03-21 10:24:49 +01:00
Griatch
2ebbf51a8a
Adding some more info to requirements.txt. Resolves issue 222.
2012-03-21 09:09:37 +01:00
ploosh
fd9f0829ca
Added basic package requirements file
2012-03-21 03:00:47 -04:00
Griatch
8b99b8a130
Added #INSERT parameter for batch-code processor. This should resolve the issue of wanting to combine several batch files. Also improved traceback feedback from the batch-code processor.
2012-03-21 01:53:33 +01:00
Griatch
1ca8df9e70
Fixed issues with batch-code processor not working correctly. Also added some better parsing. Resolves issue 221.
2012-03-20 22:29:37 +01:00
Griatch
81e7a31072
Removed a mis-placed line in the object search that caused spurious errors in some commands.
2012-03-20 19:59:29 +01:00
ploosh
f09bfdf1d6
Fixed pose command to echo in room only if a pose is actually struck
2012-03-17 03:22:52 -04:00
Griatch
2eb5c4fc8c
Updating ReST docs.
2012-03-15 15:26:07 +01:00
Griatch
f46a9a1280
Cropped @batchcommand output better. Resolves issue 217.
2012-03-14 21:03:28 +01:00
Griatch
5beee55149
Added ability of @set command to actually store real Python types, not just strings.
2012-03-13 23:56:19 +01:00
Griatch
abb5384dd1
Removed strange echo of all players (including yourself) in the tutorial's hanging bridge room.
2012-03-13 22:15:03 +01:00
Griatch
aae67225a4
Added auto_help as a class property on Commands. This allows to turn on/off auto-help generation on a per-command basis (default is on).
2012-03-13 22:07:51 +01:00
Griatch
6a78fdafcb
Removed a debug-print statement.
2012-03-13 01:39:30 +01:00
Griatch
ca280af659
Fixed cache issues with @type and @name commands that didn't properly update the cache when using them.
2012-03-13 01:37:28 +01:00
Griatch
309c03ce43
Added at_server_start() and at_server_stop() hooks to allow users to safely initialize their custom systems whenever the server restarts.
2012-03-07 20:32:04 +01:00
Griatch
7818ca077a
Fixed some spurious bugs.
2012-02-29 21:58:08 +01:00
Griatch
7e146eae11
Added some fixes to tutorial world.
2012-02-29 19:29:56 +01:00
Griatch
a12f7b9c32
Added a desc to the tutorial entrance.
2012-02-29 18:21:39 +01:00
Griatch
690bfadd9d
Added arg_regex, an optional Command class-method for customizing how commands are identified by using a regex to enforce a specific look/grammar to the command argument. Discussed and suggested in issue 213.
2012-02-27 20:56:01 +01:00
Griatch
42254fa3c4
Fixed an issue with creating new chars following the latest optimizations.
2012-02-26 19:04:57 +01:00
Griatch
018a98b92c
Optimized typeclass conversion in typeclass manager.
2012-02-26 16:04:19 +01:00
Griatch
91f2a5930c
Minor additions to typeclass loading.
2012-02-26 15:10:22 +01:00
Griatch
c513486b5a
Made a fix in runner concerning profiling of the Portal.
2012-02-26 13:45:07 +01:00
Griatch
9660dd6656
Added caching to some more object properties.
2012-02-26 12:43:16 +01:00
Griatch
bdf86b203d
Reverting caching-changes to cmdset_storage, causes spurious errors.
2012-02-26 12:07:25 +01:00
Griatch
71c7d5f8e0
aching cmdset_paths.
2012-02-26 01:26:38 +01:00
Griatch
24c4791e9e
Fixed a bug with the updating of the caching.
2012-02-26 01:10:20 +01:00
Griatch
fb0d77c794
Added caching for aliases.
2012-02-25 23:56:31 +01:00
Griatch
1fa5791e19
Added aggressive caching for common typeclassed variables.
2012-02-25 23:37:50 +01:00
Griatch
b99db98191
Fixed a silly typo.
2012-02-25 21:15:58 +01:00
Griatch
a0a205c945
Did some additions to the MSDP implementation. Added a first test for implementing MSDP commands, but it is not working yet.
2012-02-25 21:14:48 +01:00
Griatch
9935bff36e
Changed internal bit identifiers in AMP protocol, for compactness.
2012-02-25 19:26:54 +01:00
Griatch
631020d8a2
Some small fixes to the help command.
2012-02-25 18:24:30 +01:00
Griatch
9733a43a16
Fixed the issues with assigning to nested attribute-lists/dicts "in-situ", e.g. obj.db.mylist[1][2] = val. This now works as it should. I'm still not sure this behaviour is worth the fact that returning mylist from the attribute will actually return a nested structure of PackedLists/Dicts, and these will continue to save to the database whenever they are updated, also if not used in conjuction with db. Since this behaviour is what is already in the database, I'm committing this fix for the nested assignment error until I decide what to do about the other issue = val. This now works as it should. I'm still not sure this behaviour is worth the fact that returning mylist from the attribute will actually return a nested structure of PackedLists/Dicts, and these will continue to save to the database whenever they are updated, also if not used in conjuction with db. Since this behaviour is what is already in the database, I'm committing this fix for the nested assignment error until I decide what to do about the other issue..
2012-02-24 23:22:38 +01:00
Griatch
9e2380decd
Added ' as an alias for the "say" command, common in many muds.
2012-02-22 21:39:27 +01:00
Griatch
562a32107e
Added more yields to cmdhandler, removed unnecessary callback to return.
2012-02-22 16:00:41 +01:00