Commit graph

3302 commits

Author SHA1 Message Date
CloudKeeper1
a544e37ca9 Update to code as per suggestions on PR and IRC.
The code has been changed following peer review.
*Both the map and build instructions have been abstracted out of the module.
*Functionality has been expanded to include multiple passes allowing custom exit creation.
*Documentation expanded and a further example provided.
2016-09-11 18:45:09 +02:00
CloudKeeper1
d80eb80f1d Contrib Proposal: ASCII Map Builder
This is a command capable of taking a reference to a basic 2D ASCII map stored in the Evennia directory and  generating the rooms and exits  necessary to populate that world. The characters of the map are iterated over and compared to a list of trigger characters. When a match is found it triggers the corresponding instructions.

You then call the command in-game using the path to the module and the name of the variable holding the map string. The path you provide is relative to the evennia or your mygame folder.
    @mapbuilder <path.to.module.VARNAME>
2016-09-11 18:45:09 +02:00
Griatch
c30a55a677 Fix bug in nick/delete. Resolves #1056. 2016-09-11 10:53:30 +02:00
Tehom
f76ea7e576 Correction to make sure the key isn't changed to prevent delcom failure 2016-09-11 10:47:32 +02:00
Tehom
112c5fcd07 Attempt to fix nicknames for channels not working 2016-09-11 10:47:32 +02:00
Griatch
e6f857a536 Remove setting.SEARCH_MULTIMATCH_SEPARATOR, replacing it with SEARCH_MULTIMATCH_REGEX and SEARCH_MULTIMATCH_TEMPLATE. This allows simple yet powerful control over the error output without needing to overload the parser. 2016-09-11 10:39:47 +02:00
BlauFeuer
ad8d105795 Revert curly braces fix - Griatch did it better 2016-09-10 11:25:50 +02:00
BlauFeuer
dd840ba05b rpsystem.py minor fixes to CmdEmote
+Escape curly braces in emote
+Check for ? as ending punctuation before adding full-stop
2016-09-10 11:25:50 +02:00
Griatch
d5c8db4c82 Fix error in rpsystem's forget command as per #1051. 2016-09-09 08:24:21 +02:00
Griatch
72d4bb4de7 Fix so as to not send traverse messages to the traverser. Fixes unittests. 2016-09-09 07:52:48 +02:00
Griatch
34f1d84c4c Excape { } brackets in rpsystem contrib emotes. Resolves #1052. 2016-09-08 22:52:13 +02:00
Griatch
e373e1733b Make the move transition hooks use get_display_name to make them compatible with the rpsystem contrib as per #1051. 2016-09-08 22:11:22 +02:00
Griatch
3d6f65fcdd Fix parsing error in dice contrib. Resolves #1047. 2016-09-08 21:00:05 +02:00
Griatch
e0e8e9453a Fix edge case with the who command and players with puppets at None locations. Resolves #1050. 2016-09-08 20:49:25 +02:00
Griatch
dc32300092 Fix caching leftover in attribute cache that lead to a traceback on the first re-login. Resolves #1041. 2016-09-08 20:46:11 +02:00
Griatch
ce0bfe8a0d Made some corrections to the if tree. Resolves #1042. 2016-09-07 23:49:30 +02:00
Dan Feeney
4330d37f20 fixed error occurring when caller does not have a player attribute 2016-09-07 23:49:30 +02:00
Tehom
5349ecfd61 Added settings.GAME_SLOGAN to global context. 2016-09-07 23:27:00 +02:00
Tehom
77ab2cd341 Added missing access() method to Msg for its lockshandler. 2016-09-05 11:46:47 +02:00
Griatch
cc9b75db44 Updated TmpMessage to match the API of Msg. 2016-09-05 11:28:00 +02:00
Griatch
c66ae693c5 Run migrations! Adds support for saving Msg entities in an Attribute. Note that recovering Msgs from an Attribute saved *before* this fix can still cause tracebacks. They may not be recoverable since dbobjects are not possible to unpickle on their own. 2016-09-05 11:15:14 +02:00
Griatch
b46df5643a Add minor fixes to tutorial world batch-build script and some better error reporting in the extended_room detail command. 2016-09-03 23:32:00 +02:00
Griatch
17ee28ab6c Move COMMAND_NESTING safety handler into try..except..finally clause to avoid it ticking up accidentally due to the loop exiting from a traceback. 2016-09-03 22:52:29 +02:00
Griatch
2ed92e8149 Converted Tags to use the new caching scheme. 2016-09-03 20:03:44 +02:00
Griatch
c77252ebcb Unittests passing for attributehandler updates. 2016-09-03 20:03:44 +02:00
Griatch
e0268d6cb3 Fix error in attributehandler 2016-09-03 20:03:44 +02:00
Griatch
fd351a2809 Made attributes.has() actually return booleans as the API specifies. 2016-09-03 20:03:43 +02:00
Griatch
3c9b58f460 First version of working alternative attribute caching system. 2016-09-03 20:03:43 +02:00
Griatch
14aa12bd01 Started exploring a different caching scheme for Attributes as per issues #1034 and #1033. 2016-09-03 20:03:43 +02:00
Griatch
f6286accea Make chardelete work also if switching ic/ooc state. Made the same fix to evmenu itself. Resolves #1035. 2016-09-03 15:47:14 +02:00
Griatch
af8e54c027 Fix player/char reference in evmore, also fixed a calling bug in evmore.msg using the wrong kwarg. 2016-09-03 12:10:57 +02:00
Griatch
9856ac735d Remove the use of the python executable when calling twistd.exe in the windows twistd batch file. Interestingly, running python on a Windows executable (as opposed to a python script file) works fine for some (Win7?) while causing errors of a non-recognized file type for others (Win10?). 2016-09-02 23:14:14 +02:00
Griatch
57923bdbc7 Fix an install error in Windows due to the Twisted Windows executable changing name from twistd.py to twistd.exe. 2016-09-02 22:10:04 +02:00
Griatch
c64f64973c Update the google style link. 2016-09-02 18:28:49 +02:00
Griatch
086beb1c26 Remove non-functional retval from utils.delay, making it a straight wrapper for twisted.reactor.callLater. 2016-09-02 17:17:50 +02:00
Griatch
5b60eef635 Properly remove pause state data when restartig a script. 2016-09-02 15:02:20 +02:00
Griatch
756d4be4bc Fix missing rotate argument for deque-attriutes, actually commit unittest updates. 2016-09-02 14:32:42 +02:00
Griatch
4f1515fc72 Fix unittests and changed all of rpsystem to use |-type color markers. 2016-09-02 00:26:18 +02:00
Griatch
690bc82862 Fix lingering bug with rpsystem process_sdesc. Also added a new method process_recog for processing recogs separately (defaults to just calling process_sdesc). Also made the rpsystem say command use the get_display_name for its self-name display. 2016-09-02 00:13:59 +02:00
Griatch
f883c9d087 Fix so process_sdesc is called with the correct obj. 2016-09-01 23:39:23 +02:00
Griatch
7e451951fa Fix an error when giving an invalid channel name to delcom. Resolves #1032. 2016-09-01 17:30:06 +02:00
Griatch
9d00f1ddfd Fix a wrongly called variable in ticherhandler. 2016-09-01 16:55:49 +02:00
Griatch
949aeee806 Update docstring: Better describes the limits of the callables possible to use with TickerHandler. 2016-09-01 15:14:53 +02:00
Griatch
c8909b4b67 Fix bug in contrib.rpsystem's emote multimatch display. 2016-08-31 23:43:49 +02:00
Griatch
164a28308c Make contrib.rpsystem's recogs protected from empty strings in the same way as sdescs 2016-08-31 23:24:47 +02:00
Griatch
6730e990b2 Make sure rpsystem sdescs can not be set to the empty string, and if it is, use obj.key. Resolves #1030. 2016-08-31 23:19:13 +02:00
Tehom
b9ea41e713 Added unicode to list of permitted types for db_value in AttributeAdmin. 2016-08-31 22:47:16 +02:00
Griatch
88b217c0b8 Add support for collections.OrderedDict and collections.deque to Attribute serializer mechanism. Also some cleanups in dbserializer. 2016-08-31 22:45:57 +02:00
Griatch
80befa96b6 Added an /update switch and a corresponding update command to the typeclass switch system, this allows to soft-update a typeclass and re-run only its at_object_creation, which seems to be the most common use-case. 2016-08-31 21:02:15 +02:00
Griatch
6e89c708d2 Add the /object switch to examine to allow one to search for Objects when OOC. Also updated player.search() to account for this functionality. 2016-08-31 20:27:40 +02:00