Commit graph

3316 commits

Author SHA1 Message Date
Griatch
07f889e2fa Fix minor typo in GMCP parser. 2016-09-14 18:09:26 +02:00
Griatch
bcf421de91 Minor check for .pk in nicks 2016-09-14 07:19:02 +02:00
Griatch
76a903119c Clean up log file output and fix some bugs. Swallows spammy and useless AMP connection errors. 2016-09-13 23:10:51 +02:00
Griatch
86c970eb62 Add sessionhandler.portal_disconnect_all to remove another needless call between server and portal on logout. This means logout from either side will clean up on the respective side and then inform the other side once, rather than triggering a return call. 2016-09-13 21:48:43 +02:00
Griatch
8eb500f8e0 Add sessionhandler.portal_disconnect which cuts down interaction over AMP by one when a player disconnects. 2016-09-13 20:42:38 +02:00
Griatch
5a5884f6da Add PROTOTYPE_MODULES to settings_default, making use of world/prototypes.py already being defined. 2016-09-13 18:03:50 +02:00
Griatch
e6e61aa5e6 Minor tweaks to fix a portal traceback during handshake. 2016-09-13 12:31:47 +02:00
Griatch
528401ec99 Change the channel cmdset prio to 101, same as Exits as per #1059. 2016-09-13 09:06:19 +02:00
Tehom
1a03433500 This fixes channel nicknames not working while in an OOC state. 2016-09-13 02:23:02 -04:00
Griatch
4de88f7e80 Update the contrib/README.md file. 2016-09-11 19:01:56 +02:00
Griatch
5d22bbe39f Remove some whitespace in a file. 2016-09-11 18:45:09 +02:00
CloudKeeper1
760865f26f Addresses issues identified above.
1. Second pass not working, room has no exits when using example 2:
The suggested commands for the example code didn't include the relevant switch. Wasn't an issue with the code, it just only iterated once.
2. First `build_forest` function not being reached due to duplicate function name:
Changed name of example code build functions to unique names. Funnily enough Pycharm didn't pick that up either.
3. Attribute errors not caught:
Added appropriate return statements.
4. Example on line 297 wrong:
Changed examples.
5.Suggestion - pass back Dbref:
Dbref is now returned on creation. This was in the original code, I just overlooked it.
2016-09-11 18:45:09 +02:00
CloudKeeper1
a489b6df55 Added appropriate switch to example 2. 2016-09-11 18:45:09 +02:00
CloudKeeper1
03529923e9 Typo: Verticle to Vertical 2016-09-11 18:45:09 +02:00
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