Commit graph

1383 commits

Author SHA1 Message Date
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
Griatch
8e1bcdde02 Removing old m2m field for holding puppetable characters. 2013-04-09 19:22:11 +02:00
Griatch
c967cc7914 MULTISESSION_MODE 0-2 works as they should. Remains some fixes to migrations. 2013-04-09 19:19:53 +02:00
Griatch
efc078b78c Cleaned up the logging of connect/disconnect. 2013-04-09 17:51:30 +02:00
Griatch
1e07b8ca34 After the rework of the many-char mode, mode 0 now works stably and auto-logins correctly it seems. 2013-04-09 17:11:34 +02:00
Griatch
26ced2cb90 Heavily reworked the many-char system, cleaner and more consistent by not having any persistent links on the Object side once a player has unconnected. 2013-04-09 15:59:21 +02:00
Griatch
5100a0561f Some further bug fixes. 2013-04-09 11:14:08 +02:00
Griatch
20a57d4167 Further fixes to the system, still some issues remaining. 2013-04-06 21:36:52 +02:00
Griatch
9eb1903f02 Lots of cleanup and bug fixes. Still some issues with reconnecting to the right location in multisession_mode 0. 2013-04-03 18:31:53 +02:00
Griatch
e86c127903 Further fix to migration. 2013-04-03 12:44:34 +02:00
Griatch
cdd9416cb3 Cleanups of migrations. 2013-04-03 12:10:58 +02:00
Griatch
1223b46edd Added data migration for character-control list attribute. 2013-04-03 11:56:51 +02:00
Griatch
85d4250f1d Added all functionality for all 3 MULTISESSION_MODEs. 2013-04-03 10:07:01 +02:00
Griatch
3afee00064 Added ALLOWED_HOSTS default setting required by Django 1.5. 2013-03-25 19:44:37 +01:00
Griatch
b5ccad21c5 Added functionality for MULTISESSION_MODE of types 0 and 1. 2013-03-25 09:41:27 +01:00
Griatch
cfc575f360 Added check for django 1.4+ to upstart checks. 2013-03-24 11:04:27 +01:00
Kelketek
9d0b8b5fe7 Added compatibility with Django 1.5. New minimum version is 1.4. 2013-03-23 14:20:41 -05:00