Commit graph

121 commits

Author SHA1 Message Date
Griatch
70da53569d Removed .typeclass and .dbobj references in codebase. 2015-01-02 20:48:34 +01:00
Griatch
1130dc5757 Started to go through the unittest errors, fixing player creation. 2015-01-02 19:01:09 +01:00
Griatch
0b01df1fcc Fixed creation function that caused entities to be wrong-named in certain circumstances. Server now starts and shutsdown without tracebacks. 2015-01-01 21:13:36 +01:00
Griatch
3d557f6bf9 Can log in, still errors all over the place due to missing .typeclass/.dbobj 2014-12-28 20:00:31 +01:00
Griatch
9af9f94fa0 Moved Players over to the new proxy system, made the start-hook called by the save-signal system into at_first_save() 2014-12-25 14:43:43 +01:00
Griatch
db512cbbf5 Moved object methods up from ObjectDB and mainly onto the typeclass. In the process of converting players in the same way. 2014-12-24 01:24:26 +01:00
Griatch
302f5bdd81 Refactored the typeclass base, moved Attributes/Tags into separate modules and the django-proxy patch to its on module too. Lots of other cleanups. 2014-12-23 22:25:39 +01:00
Griatch
24764743ff Made a new version of create_object function, and made Objects creatable using o=Object(). 2014-12-23 21:33:03 +01:00
Griatch
969b947ba0 One needs to turn off all imports of typeclasses in __init__ or django will create migrations for them. This might be interesting for the future but not for development. 2014-12-23 11:53:32 +01:00
Griatch
749715a193 Server can be connected to, not yet get to a command line; may need to work on different app_labels. 2014-12-22 23:03:00 +01:00
Griatch
1be49e7bea Fixed a bug in object manager. 2014-12-22 09:01:40 +01:00
Griatch
2ee9e62336 Fixed correct and separate handling of database model bases as compared to its proxy classes using different managers for each type (e.g. ObjectDB.objects.all() will return all ObjectDB instances(including proxy instances) whereas Object.objects.all() will only return Objects) 2014-12-22 08:54:53 +01:00
Griatch
4e0b5be962 Fixed creation. Time to start cleaning the .dbobj hierarchy. 2014-12-20 19:29:38 +01:00
Griatch
043ebf7213 Fixed metaclass to handle proxy correctly. Some issues with getting path properties set correctly. 2014-12-20 19:04:49 +01:00
Griatch
32e44dceab Made the proxy typeclass system work in principle, using a wrapper of the __new__ method for the class. 2014-12-20 18:30:39 +01:00
Griatch
8314d8ba5e Now solving issues with faulty imports. Still nothing functional. 2014-12-20 17:03:34 +01:00
Griatch
236c0d17d3 First non-tested version of moving typeclasses to proxy models. 2014-12-19 16:29:41 +01:00
Griatch
0077408d02 Some doc cleanup. 2014-11-02 10:42:29 +01:00
Griatch
50b072170f Some cleanup and updates of the object.py file. 2014-09-24 15:45:46 +02:00
Griatch
062a545a97 Changed at_cmdset_get() hook to at_cmdset_get(**kwargs). This allows for the possibility to control dynamic generation of cmdsets, for example to force Exit cmdsets to be rebuilt. The aliasing command now uses this. Resolves #563. 2014-09-20 10:26:59 +02:00
Griatch
3dc35d8b6d Changed create_object to have at_object_receive and at_after_move to correctly target the location and not the new object. Resolves #566. 2014-09-05 07:52:18 +02:00
Griatch
7bba75b9ff Fixed a missing **kwargs relay from last commit 2014-08-24 10:08:22 +02:00
Griatch
a88afabd60 Added **kwargs to cmdhandler and execute_cmd() methods, to set arbitrary flags on commands at run-time. Unused by default Evennia but may be useful to codedly change operation parameters on commands at run-time. 2014-08-24 09:43:55 +02:00
Griatch
bb8c9ce2ab Changed default puppet lock to puppet:pperm(Immortals) by default. Resolves #521. 2014-06-28 18:48:54 +02:00
Griatch
58af67bdf2 Fixed flush protection for instances, memory is successfully made available on an idmapper flush now. 2014-05-17 14:38:43 +02:00
Griatch
4e7bfb95b5 Fixed some documentation on object typeclass. 2014-04-25 16:24:48 +02:00
Griatch
59513e5c00 Fixed player.search() to also move here/me/self wrappers to typeclass. 2014-04-13 10:04:35 +02:00
Griatch
99b73c173c Moved here/me,self replacement out of dbobj.search and into the typeclass. 2014-04-13 09:07:45 +02:00
Griatch
2108506a8a Added new IRC protocol implementation. Not tested yet. 2014-03-08 11:41:23 +01:00
Griatch
638483fa66 Changed the relative priorities of cmdsets to the following: -100(Empty), -20(Session), -10(Player), 0(Character), 101(Exit), 120(Channel) 2014-02-16 01:38:27 +01:00
delizin
e070617751 Fixed multiword drop bug #442 2014-01-31 22:05:15 -05:00
delizin
6e50d7e357 Fixed multiword drop bug #442 2014-01-31 22:00:31 -05:00
delizin
8de289f5ad Update objects.py 2014-01-31 13:33:35 -05:00
delizin
967d283507 Update objects.py
Removed the following line from at_pre_puppet, because it is repeated in at_post_puppet and results in the message "%s has entered the game" appearing twice.

self.location.msg_contents("%s has entered the game." % self.name, exclude=[self])
2014-01-31 13:32:33 -05:00
Griatch
f48fd8fa2c Changed how dep-messages were placed for the new access hooks. 2014-01-19 00:09:10 +01:00
Griatch
87f3093dac Deprecation warning: Added combined hook at_access(result, accessing_obj, access_type, **kwargs) to Objects and Players. This hook replaces at_access_failure and at_access_success, which are now both DEPRECATED and will be removed later. 2014-01-18 23:56:07 +01:00
Griatch
1ae17bcbe4 PEP8 cleanup of the entire codebase. Unchanged are many cases of too-long lines, partly because of the rewrite they would require but also because splitting many lines up would make the code harder to read. Also the third-party libraries (idmapper, prettytable etc) were not cleaned. 2013-11-14 19:31:17 +01:00
Griatch
149b06a6a4 Fixed an issue with exit commands not using arg_regex ending correctly (it turns out you need to include this in the ExitCommand creation call or the metaclass will not pick it up and precompile the regex). Resolves Issue 397. 2013-11-12 00:05:06 +01:00
Griatch
bc8e27fea6 Changed object.search() to include nick-matching by default. 2013-10-21 22:56:03 +02:00
Griatch
4659ddbfc3 Changed object.msg() to relay directly to connected session rather than via the player.msg() method. 2013-09-22 11:39:24 +02:00
Griatch
e36c7d5cc1 Cleaned up worst instability. Test suite does validate yet. 2013-09-21 17:33:48 +02:00
Griatch
4a5de04956 Changed msg() to work with **kwargs rather than data dicts. Still not fully updated the portal side (also remember that keywords let through to the portal must not contain dbobjs, since the portal has no connection to the database). 2013-09-14 09:10:31 +02:00
Griatch
9620867031 Fixed simple bug in creating a new character - it got the wrong puppet hook lock type. 2013-08-25 15:09:28 +02:00
Griatch
c0b5c506a4 Removed a lot of old references to Aliases and Nicks. Still failing on @puppet. 2013-07-12 15:34:54 +02:00
Griatch
3cf01ce711 Reverted previous merge, instead solving the issue by the metaclass making sure to add cmd:all() to the exit command only if the object itself does not specify it. 2013-07-02 11:51:04 +02:00
Griatch
5800b960ff Added safety feature to lock handling. 2013-07-02 09:34:35 +02:00
Griatch
0164574c00 Added sessid keyword to at_pre_puppet and at_post_unpuppet hooks, where the sessid is otherwise not yet available, as per Issue 383. 2013-07-01 15:03:12 +02:00
Griatch
92339362ec Changed/fixed some issues with the command priorities that caused a lower-prio dynamically-created command to not properly be accounted for. Also changed the prio order for which of the cmdsets are used for checking the "duplicates" flag - it is now the new set being merged onto the new one (i.e. the priorotized) cmdset that must have this flag set in order for the result to have duplicates. 2013-07-01 14:30:17 +02:00
Griatch
1e6384e40c Fixed some documentation typos/rewrites as suggested in Issue 393. 2013-06-30 14:13:01 +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