Commit graph

  • a9a70c91b1 Fixed a bug with the who command. Griatch 2013-05-23 21:38:01 +02:00
  • 94f50fcf33 Moved webserver to Server and set up the webclient to work as a stand-alone program on the Portal side. The website link to the webclient is currently pointing to the wrong process, some way to direct that transparently to the Portal-side is needed. Griatch 2013-05-23 00:02:25 +02:00
  • 812bdb0f73 Refactored src/server, splitting out into a portal subdirectory to make it clearer what goes on which "side". Griatch 2013-05-22 18:40:16 +02:00
  • 76fa0059ea First preparations for moving webserver to Server process. Griatch 2013-05-22 18:18:50 +02:00
  • 60068771c7 Fixed a lingering portal session when connection was closed uncleanly. This could in some situations lead to out-of-sync sessions in MULTISESSION_MODE=2. Griatch 2013-05-21 15:05:10 +02:00
  • efdb954491 Fixed a logical error in obj.manager causing it to fail to find arbitrary db_>fieldname>. Resolves Issue 373. Griatch 2013-05-21 14:29:50 +02:00
  • bda5d88c24 Fixed issue with webclient sessions hanging on disconnect. Kelketek 2013-05-18 21:20:54 -05:00
  • 93d0db8489 Removed the redundant handling of location within @IC and @OOC. These should be handled by the hooks. Kelketek 2013-05-18 20:05:42 -05:00
  • cab0182077 Fixed issue with lock replacements not committing. Kelketek 2013-05-18 19:57:47 -05:00
  • 65328e94ff Fixed issue with OOC command sending the menu to all connected sessions of a player. Kelketek 2013-05-18 19:30:47 -05:00
  • ad7d8fc9fd Fixed typeclass searching for objects. Kelketek 2013-05-18 18:47:04 -05:00
  • 1a26552600 Possible fix to bad disconnection issue. Kelketek 2013-05-18 18:18:32 -05:00
  • e79f68bbe1 Branch merge. Kelketek 2013-05-18 14:34:16 -05:00
  • bf8a5dedc8 Removed bogus warning about SECRET_KEY and replaced it with a more accurate one. Kelketek 2013-05-16 22:41:48 -05:00
  • afb139bc1c Fixed environment setup in ev.py, for launching the api in a normal python interpreter (not manage.py shell) Griatch 2013-05-15 23:57:50 +02:00
  • cc12dc36fa Updated the ReST documentation. Griatch 2013-05-15 23:49:38 +02:00
  • d30a79386f Merge. Griatch 2013-05-15 21:57:56 +02:00
  • 0fa625236e Removed traces of db_index on db_header and db_title for comms. Turned db_header into textfield. Kelketek 2013-05-15 06:33:04 -05:00
  • e0c3ee1546 Some cleanup of the launcher info texts. Griatch 2013-05-15 09:10:14 +02:00
  • 51cf5461fa Fixed a typo on the @ic command's search_object call. Griatch 2013-05-14 21:47:25 +02:00
  • e15d6dfb6e Fixed a search feature that was not included in the revision of the object search mechanism - the ability to search based on an object. Resolves Issue 363. Griatch 2013-05-14 21:17:29 +02:00
  • a533232885 MySQL<v5.6.4 does not support millisecond precision in its DATETIME fields (as opposed to other databases). This meant that Attributes, which do rely on millisecond precision for creating their object hashes, got out of sync in a horrible way on MySQL (Issue 362). This revision fixes the problem by going to second-level precision if a too-low version of MySQL is detected (this should not be an issue since mysql does not reuse its pks anyway). Griatch 2013-05-14 19:15:58 +02:00
  • 95268406ab Made @examine show the superuser flag also when called as a Player. Removed some debug printouts. Griatch 2013-05-14 15:25:35 +02:00
  • 25f1d7b627 An import check in ev.py acted weirdly in some situations. Changed to something more sensible. Griatch 2013-05-14 15:17:05 +02:00
  • f00053710c Added Character-level quelling possibilities to superuser. This makes the superuser quelling completely in line with normal quelling for other permission levels. It also removes the need for the special _superuser_character bypass used before (the migration no longer creates it an initial_setup won't either). Griatch 2013-05-14 14:53:08 +02:00
  • 77a0b47859 Fixed some issues with the _superuser_character bypass as well as the is_superuser property on objects. Also fixed a bug with @examine that caused it to display object Attribute instead of Player Attributes when called from the ooc state. Griatch 2013-05-14 13:55:03 +02:00
  • 7a8e53b3bd Re-inserting ev.settings along with ev.settings_full. It got accidentally deleted in the previous commit. Griatch 2013-05-14 12:15:40 +02:00
  • 63549e8c0c Added error checking to ev to catch importing it from a non-django configured interpreter. Griatch 2013-05-14 11:54:22 +02:00
  • 2386b308f5 Added flushing to attribute caches when an typed object is deleted. This fixes isse 295, but keeping that open for a little longer to see if some other solution can be devised. Griatch 2013-05-14 08:44:40 +02:00
  • 82b82318d5 Cleaning up some more in the attrcache cleaner. Griatch 2013-05-14 08:22:18 +02:00
  • ffbc1ad0e7 Made the caches.flush_attr_cache more comprehensive also for attribute values. Griatch 2013-05-14 08:04:08 +02:00
  • 005b969425 Removed uneccessary test function. Kelketek 2013-05-13 15:56:20 -05:00
  • e752c2dd64 Made username creation/login case insensitive. Kelketek 2013-05-13 12:30:00 -05:00
  • 53581637d8 Added tag many-chars-per-player for changeset eeaff45fcf41 Griatch 2013-05-12 22:16:52 +02:00
  • c843f15d42 Merged the dev branch (many-chars-per-player) and made some more error checking in the migrations. Griatch 2013-05-12 22:13:05 +02:00
  • 4854661889 Some fixes to evlang that caused an assertionerror at startup. Griatch 2013-05-12 21:06:24 +02:00
  • 1488ccb912 Removed a deprecation in evlang. Griatch 2013-05-12 20:43:42 +02:00
  • 68e4384761 Some minor fixes to debug output. Griatch 2013-05-12 20:28:30 +02:00
  • 88075bf2a0 Fixed some lingering issues in TutorialWorld. Griatch 2013-05-12 20:24:00 +02:00
  • bd9421d4b0 Implemented unittests for all default commands in a new and much faster way. Griatch 2013-05-12 19:53:19 +02:00
  • a6840aff15 First draft of a reworked the unittest framework to handle the new form of chars/players/commands. Not functioning yet. Griatch 2013-05-12 14:13:13 +02:00
  • cb4c813a68 Removing old contrib quell command since @quell is now in the main distribution. Griatch 2013-05-12 13:46:48 +02:00
  • 3ac44946c3 Changed perm lockfunc to primarily use the Player-level permission and added the @quell command for managing permission downgrading. Griatch 2013-05-12 13:45:46 +02:00
  • 78e7346962 Updated commands to use the new objectdb.search API. Griatch 2013-05-11 23:22:02 +02:00
  • 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. Griatch 2013-05-11 20:01:19 +02:00
  • be22a31ec4 Made it possible to "take" over puppeting from one's own stale sessions. Fixed a nasty bug in swap_typeclass. Griatch 2013-05-11 16:09:26 +02:00
  • ad8a9fbe69 Added warning message for puppeting to an object without neither location nor home set. Griatch 2013-04-20 16:14:12 +02:00
  • 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. Griatch 2013-04-18 09:13:31 +02:00
  • a3f12a289d Fixed a misnamed class import in dbserialize. Griatch 2013-04-17 22:08:25 +02:00
  • 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] Griatch 2013-04-17 19:43:37 +02:00
  • c943b13351 Fixed error in who when playing as a character. Griatch 2013-04-15 01:01:21 +02:00
  • 8720df5b49 Merge. Griatch 2013-04-15 00:12:00 +02:00
  • 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. Griatch 2013-04-14 23:19:27 +02:00
  • 17d7ad9b37 Fixed a traceback in CmdExamine. Griatch 2013-04-14 22:57:23 +02:00
  • 29cde0921d Re-implemented the six.with_metaclass functionality to avoid having to include six in the distrubution. Griatch 2013-04-14 22:09:32 +02:00
  • d0edb84909 Removed some spurious imports (the six tools) which doesn't seem to work for everyone. Griatch 2013-04-14 21:50:11 +02:00
  • 27668a565d Fixed an issue with a too-inclusive regex for URLs in the webclient. Resolves Issue 322. Griatch 2013-04-14 17:45:33 +02:00
  • 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. Griatch 2013-04-14 16:36:44 +02:00
  • 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. Griatch 2013-04-14 13:35:25 +02:00
  • 1a00797021 The new Attribute system should properly handle non-ascii characters. Also updated examine command to match. Resolves Issue 355. Griatch 2013-04-14 00:54:39 +02:00
  • 82c2e19ed5 Fixed remaining issues with migrating the attribute changes. Griatch 2013-04-14 00:35:23 +02:00
  • 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. Griatch 2013-04-13 23:50:33 +02:00
  • 8bd8193ab9 Some cleanup of the dbserialize module. Griatch 2013-04-13 19:55:09 +02:00
  • 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. Griatch 2013-04-13 18:13:15 +02:00
  • 75341ade6f A first test using PickledObjectField and a rewritten dbserialize module to store Attributes. No migrations set up yet. Griatch 2013-04-13 15:15:02 +02:00
  • 4d5cd5352a Added a missing migration of cmdsets. Griatch 2013-04-12 22:14:01 +02:00
  • 7f91f51539 The idle counters were not called, causing sessions to time out even when active. Fixed now. Griatch 2013-04-12 22:10:16 +02:00
  • 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. Griatch 2013-04-12 22:06:41 +02:00
  • 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). Griatch 2013-04-12 14:27:36 +02:00
  • b58a464409 Cleaned up all commands of the player type to correctly relay their msg-data only to their assigned session. Griatch 2013-04-12 13:59:15 +02:00
  • 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) Griatch 2013-04-12 13:01:20 +02:00
  • c152202082 Forgot to add the default/player.py module holding Player-specific commands. Griatch 2013-04-11 01:02:40 +02:00
  • 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. Griatch 2013-04-11 01:02:05 +02:00
  • 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. Griatch 2013-04-10 22:33:32 +02:00
  • 4669b8ed89 Fixed the migrations from a pre-populated database to the many-char-per-player branch. Griatch 2013-04-10 21:45:56 +02:00
  • 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). Griatch 2013-04-09 22:44:05 +02:00
  • be2d0086a3 Updated the game/gamesrc/ examples with the new hook names. Griatch 2013-04-09 22:22:17 +02:00
  • 9a187b48ff Made admin interface not crash with the removal of the direct db_obj field on players. Griatch 2013-04-09 19:43:27 +02:00
  • a22ce6d563 Added missing object.db_sessid migration. Griatch 2013-04-09 19:34:15 +02:00
  • 8e1bcdde02 Removing old m2m field for holding puppetable characters. Griatch 2013-04-09 19:22:11 +02:00
  • c967cc7914 MULTISESSION_MODE 0-2 works as they should. Remains some fixes to migrations. Griatch 2013-04-09 19:19:53 +02:00
  • efc078b78c Cleaned up the logging of connect/disconnect. Griatch 2013-04-09 17:51:30 +02:00
  • 1e07b8ca34 After the rework of the many-char mode, mode 0 now works stably and auto-logins correctly it seems. Griatch 2013-04-09 17:11:34 +02:00
  • 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. Griatch 2013-04-09 15:59:21 +02:00
  • 5100a0561f Some further bug fixes. Griatch 2013-04-09 11:14:08 +02:00
  • 20a57d4167 Further fixes to the system, still some issues remaining. Griatch 2013-04-06 21:36:52 +02:00
  • 9eb1903f02 Lots of cleanup and bug fixes. Still some issues with reconnecting to the right location in multisession_mode 0. Griatch 2013-04-03 18:31:53 +02:00
  • e86c127903 Further fix to migration. Griatch 2013-04-03 12:44:34 +02:00
  • cdd9416cb3 Cleanups of migrations. Griatch 2013-04-03 12:10:58 +02:00
  • 1223b46edd Added data migration for character-control list attribute. Griatch 2013-04-03 11:56:51 +02:00
  • 85d4250f1d Added all functionality for all 3 MULTISESSION_MODEs. Griatch 2013-04-03 10:07:01 +02:00
  • 3afee00064 Added ALLOWED_HOSTS default setting required by Django 1.5. Griatch 2013-03-25 19:44:37 +01:00
  • b5ccad21c5 Added functionality for MULTISESSION_MODE of types 0 and 1. Griatch 2013-03-25 09:41:27 +01:00
  • cfc575f360 Added check for django 1.4+ to upstart checks. Griatch 2013-03-24 11:04:27 +01:00
  • 9d0b8b5fe7 Added compatibility with Django 1.5. New minimum version is 1.4. Kelketek 2013-03-23 14:20:41 -05:00
  • 11d612a72a Added more permission info to ooclook. Griatch 2013-03-12 10:29:21 +01:00
  • de076d4af4 Added the _superuser_character flag to the superuser character upon creation. Griatch 2013-03-11 22:03:08 +01:00
  • 7581d65cb3 Made superuser able to have a separate "superuser character" in order to be able to have also test-characters without privileges. Griatch 2013-03-11 22:01:52 +01:00
  • bbdf2e0896 Fixed a bug that caused superuser status to be cached only once for characters, even if the player was not yet connected. Griatch 2013-03-11 20:01:03 +01:00
  • 29e313492f Added more session info to ooclook. Working on a bug that causes superuser to not be recognized now and then - this seems to be related to character.player returning None. This revision contains some printout debug messages since that bug is not yet fixed. Griatch 2013-03-11 01:32:17 +01:00