Commit graph

1399 commits

Author SHA1 Message Date
Kelketek
bf8a5dedc8 Removed bogus warning about SECRET_KEY and replaced it with a more accurate one. 2013-05-16 22:41:48 -05:00
Kelketek
0fa625236e Removed traces of db_index on db_header and db_title for comms. Turned db_header into textfield. 2013-05-15 06:33:04 -05:00
Kelketek
005b969425 Removed uneccessary test function. 2013-05-13 15:56:20 -05:00
Kelketek
e752c2dd64 Made username creation/login case insensitive. 2013-05-13 12:30:00 -05:00
Griatch
53581637d8 Added tag many-chars-per-player for changeset eeaff45fcf41 2013-05-12 22:16:52 +02:00
Griatch
c843f15d42 Merged the dev branch (many-chars-per-player) and made some more error checking in the migrations. 2013-05-12 22:13:05 +02:00
Griatch
4854661889 Some fixes to evlang that caused an assertionerror at startup. 2013-05-12 21:06:24 +02:00
Griatch
1488ccb912 Removed a deprecation in evlang. 2013-05-12 20:43:42 +02:00
Griatch
68e4384761 Some minor fixes to debug output. 2013-05-12 20:28:30 +02:00
Griatch
88075bf2a0 Fixed some lingering issues in TutorialWorld. 2013-05-12 20:24:00 +02:00
Griatch
bd9421d4b0 Implemented unittests for all default commands in a new and much faster way. 2013-05-12 19:53:19 +02:00
Griatch
a6840aff15 First draft of a reworked the unittest framework to handle the new form of chars/players/commands. Not functioning yet. 2013-05-12 14:13:13 +02:00
Griatch
cb4c813a68 Removing old contrib quell command since @quell is now in the main distribution. 2013-05-12 13:46:48 +02:00
Griatch
3ac44946c3 Changed perm lockfunc to primarily use the Player-level permission and added the @quell command for managing permission downgrading. 2013-05-12 13:45:46 +02:00
Griatch
78e7346962 Updated commands to use the new objectdb.search API. 2013-05-11 23:22:02 +02:00
Griatch
218e4a149c Implemented a modified and cleaned objectdb.search and accompanying object.manager.search_object that also searches globally. The default commands have not yet been converted to use the new call. 2013-05-11 20:01:19 +02:00
Griatch
be22a31ec4 Made it possible to "take" over puppeting from one's own stale sessions. Fixed a nasty bug in swap_typeclass. 2013-05-11 16:09:26 +02:00
Griatch
ad8a9fbe69 Added warning message for puppeting to an object without neither location nor home set. 2013-04-20 16:14:12 +02:00
Griatch
416d6e14bc Fixing a bug in @ic if trying to puppet while already puppeting. Added sessid keyword to at_post_login hook in order to correctly relay login text only to the correct session. Removed the src.utils.debug module as well as the CmdDebug command which has not been supported for a good while. 2013-04-18 09:13:31 +02:00
Griatch
a3f12a289d Fixed a misnamed class import in dbserialize. 2013-04-17 22:08:25 +02:00
Griatch
89c33a9197 Some deprecation fixes for django1.4+. Added the ability to add lists to Attribute-stores lists using e.g. obj.db.mylist + [1,2,3,4] 2013-04-17 19:43:37 +02:00
Griatch
c943b13351 Fixed error in who when playing as a character. 2013-04-15 01:01:21 +02:00
Griatch
8720df5b49 Merge. 2013-04-15 00:12:00 +02:00
Griatch
55565f23c0 Updated a data migration to properly set Attribute _last_puppet. This allows players in MULTISESSION_MODE=0,1 to auto-puppet from the start. 2013-04-14 23:19:27 +02:00
Griatch
17d7ad9b37 Fixed a traceback in CmdExamine. 2013-04-14 22:57:23 +02:00
Griatch
29cde0921d Re-implemented the six.with_metaclass functionality to avoid having to include six in the distrubution. 2013-04-14 22:09:32 +02:00
Griatch
d0edb84909 Removed some spurious imports (the six tools) which doesn't seem to work for everyone. 2013-04-14 21:50:11 +02:00
Griatch
27668a565d Fixed an issue with a too-inclusive regex for URLs in the webclient. Resolves Issue 322. 2013-04-14 17:45:33 +02:00
Griatch
80a6745a1e Made Attribute value queries also work with database objects by overloading the Attribute manager methods in question. Added procpool support for the new serializer functions and cleaned up some things. 2013-04-14 16:36:44 +02:00
Griatch
8d48aa5a06 Added the last migrations needed to fully convert the Attribute system. Cleaned up the @ooclook command a bit as well as tidied up the who command a bit. 2013-04-14 13:35:25 +02:00
Griatch
1a00797021 The new Attribute system should properly handle non-ascii characters. Also updated examine command to match. Resolves Issue 355. 2013-04-14 00:54:39 +02:00
Griatch
82c2e19ed5 Fixed remaining issues with migrating the attribute changes. 2013-04-14 00:35:23 +02:00
Griatch
230d73cfa0 Migrations work under sqlite3, both from latest dev, from new install and from trunk. There might be some consistency issues though (it seems the character list is not properly migrated), so more testing is required. 2013-04-13 23:50:33 +02:00
Griatch
8bd8193ab9 Some cleanup of the dbserialize module. 2013-04-13 19:55:09 +02:00
Griatch
512d7748d1 Finished with a working implementation of the new Attribute mechanism using PickledObjectField. First step of migration is finished, but not converting any old attribute data yet. 2013-04-13 18:13:15 +02:00
Griatch
75341ade6f A first test using PickledObjectField and a rewritten dbserialize module to store Attributes. No migrations set up yet. 2013-04-13 15:15:02 +02:00
Griatch
4d5cd5352a Added a missing migration of cmdsets. 2013-04-12 22:14:01 +02:00
Griatch
7f91f51539 The idle counters were not called, causing sessions to time out even when active. Fixed now. 2013-04-12 22:10:16 +02:00
Griatch
8969017aaa Added prettytable (http://code.google.com/p/prettytable/) as a replacement for utils.format_table and updated almost all places where the old formatter was used. The code becomes much simpler and shorter with prettytable, there are some situations, such as the contrib/menusystem where the old format_table works well for dynamically creating any number of columns and rows on the fly. 2013-04-12 22:06:41 +02:00
Griatch
0fddf433dc Updated all Player-level commands to properly relay messages using self.msg rather than caller.msg (the former will properly relay to the right sessid without needing any extra arguments). 2013-04-12 14:27:36 +02:00
Griatch
b58a464409 Cleaned up all commands of the player type to correctly relay their msg-data only to their assigned session. 2013-04-12 13:59:15 +02:00
Griatch
a6544f2848 changed cmdset_default -> cmdset_character and changed the class names to match. Added migrations to properly update default-set cmdset_stores to the new positions (objects created from custom types are not migrated, these should see errors and need to re-point their imports to the new defaults) 2013-04-12 13:01:20 +02:00
Griatch
c152202082 Forgot to add the default/player.py module holding Player-specific commands. 2013-04-11 01:02:40 +02:00
Griatch
1aff5f1fd1 Renamed cmdset_ooc -> cmdset_player and settings.CMDSET_OOC -> settings.CMDSET_PLAYER. Also split most of the player-specific commands to a new module player. 2013-04-11 01:02:05 +02:00
Griatch
5874505902 Changed object.player to return a typeclass. Resolves Issue 325. Also made sure that .typeclass always returns a typeclass, also if called on something which is already a typeclass. 2013-04-10 22:33:32 +02:00
Griatch
4669b8ed89 Fixed the migrations from a pre-populated database to the many-char-per-player branch. 2013-04-10 21:45:56 +02:00
Griatch
ea4c30a0b1 Added a convenience property player.character that will return the (puppeted) Object if in MULTISESSION_MODE 0 or 1, all puppeted Objects for MULTISESSION_MODE=2. Note that this is not quite the same as the old player.character - it will only return a character if that character is actually puppeted (the old scheme returned it also if the Player was offline). 2013-04-09 22:44:05 +02:00
Griatch
be2d0086a3 Updated the game/gamesrc/ examples with the new hook names. 2013-04-09 22:22:17 +02:00
Griatch
9a187b48ff Made admin interface not crash with the removal of the direct db_obj field on players. 2013-04-09 19:43:27 +02:00
Griatch
a22ce6d563 Added missing object.db_sessid migration. 2013-04-09 19:34:15 +02:00