Commit graph

2866 commits

Author SHA1 Message Date
Griatch
018a98b92c Optimized typeclass conversion in typeclass manager. 2012-02-26 16:04:19 +01:00
Griatch
91f2a5930c Minor additions to typeclass loading. 2012-02-26 15:10:22 +01:00
Griatch
c513486b5a Made a fix in runner concerning profiling of the Portal. 2012-02-26 13:45:07 +01:00
Griatch
9660dd6656 Added caching to some more object properties. 2012-02-26 12:43:16 +01:00
Griatch
bdf86b203d Reverting caching-changes to cmdset_storage, causes spurious errors. 2012-02-26 12:07:25 +01:00
Griatch
71c7d5f8e0 aching cmdset_paths. 2012-02-26 01:26:38 +01:00
Griatch
24c4791e9e Fixed a bug with the updating of the caching. 2012-02-26 01:10:20 +01:00
Griatch
fb0d77c794 Added caching for aliases. 2012-02-25 23:56:31 +01:00
Griatch
1fa5791e19 Added aggressive caching for common typeclassed variables. 2012-02-25 23:37:50 +01:00
Griatch
b99db98191 Fixed a silly typo. 2012-02-25 21:15:58 +01:00
Griatch
a0a205c945 Did some additions to the MSDP implementation. Added a first test for implementing MSDP commands, but it is not working yet. 2012-02-25 21:14:48 +01:00
Griatch
9935bff36e Changed internal bit identifiers in AMP protocol, for compactness. 2012-02-25 19:26:54 +01:00
Griatch
631020d8a2 Some small fixes to the help command. 2012-02-25 18:24:30 +01:00
Griatch
9733a43a16 Fixed the issues with assigning to nested attribute-lists/dicts "in-situ", e.g. obj.db.mylist[1][2] = val. This now works as it should. I'm still not sure this behaviour is worth the fact that returning mylist from the attribute will actually return a nested structure of PackedLists/Dicts, and these will continue to save to the database whenever they are updated, also if not used in conjuction with db. Since this behaviour is what is already in the database, I'm committing this fix for the nested assignment error until I decide what to do about the other issue = val. This now works as it should. I'm still not sure this behaviour is worth the fact that returning mylist from the attribute will actually return a nested structure of PackedLists/Dicts, and these will continue to save to the database whenever they are updated, also if not used in conjuction with db. Since this behaviour is what is already in the database, I'm committing this fix for the nested assignment error until I decide what to do about the other issue.. 2012-02-24 23:22:38 +01:00
Griatch
9e2380decd Added ' as an alias for the "say" command, common in many muds. 2012-02-22 21:39:27 +01:00
Griatch
562a32107e Added more yields to cmdhandler, removed unnecessary callback to return. 2012-02-22 16:00:41 +01:00
Griatch
ab2ba19782 Fixed critical typo in instructions for dummyrunner. 2012-02-22 15:15:32 +01:00
Griatch
c47ff33aae Some cleanup in the lockhandler. 2012-02-22 14:46:07 +01:00
Griatch
fd857f5c86 Expanded the dummy runner, making it more realistically mimicking real Players by spreading out its access usage. 2012-02-22 12:44:51 +01:00
Griatch
440d403327 Added some more error catching to the attr migrations. 2012-02-22 11:40:52 +01:00
Griatch
a923a9a061 Merging fixes from clone jeremywosborne-evennia-patch. Closes merge request issue 211. Thanks! 2012-02-21 08:27:30 +01:00
Griatch
001a39c3b9 Minor fixes in tutorial_world build. 2012-02-21 08:11:16 +01:00
Jeremy Osborne
e164b63d2b Some webclient suggestions and practice committing to evennia.
text2html.py and webclient.css
* Remove inline formatting and place in CSS file. This frees up
  the client to change the basic color scheme without modifying
  the server file.
* Added a target="_blank" to links that are created to force a
  new tab (or window) to be opened in lieu of leaving the web
  client when a link is clicked.

webclient.html
* Added a void action to the form, just in case.

evennia_webclient.js
* Added code to move the caret to the end of the input box when
  the history is changed (up or down arrow listeners).
2012-02-20 20:34:28 -08:00
Griatch
6d73b05d91 Fixed a webclient issue that caused urls to loose their following whitespace. 2012-02-20 23:25:22 +01:00
Griatch
c56ede0fa2 Minor documentation fix in javascript webclient code. 2012-02-20 22:52:59 +01:00
Griatch
3e73529b96 Added some more instructions to the Limbo room desc, telling people they should log out and create a new, non-admin account at the login screen in order to play the tutorial_world properly. 2012-02-20 22:25:58 +01:00
Griatch
13b3d61b42 Removed word-break:break-all; from webclient css as per issue 210. Interestingly enough, this only showed an effect in Chrome on my machine; in Firefox, the lines were cropped per word also with this setting. 2012-02-20 22:05:05 +01:00
Griatch
ed00e42762 Made check for PlayerObject more rigorous in create.create_msg, in response to issue 209. 2012-02-20 21:56:11 +01:00
Griatch
641d829154 Added inlineCallback operator for cmdhandler, allowing the system to yield more often. 2012-02-20 21:40:28 +01:00
Griatch
c4f2c493d9 Updated ReST docs, fixed some things in Swedish translation. 2012-02-19 10:49:59 +01:00
Griatch
11e61255da Went through the Tutorial_world batch file with a spell checker and cleaned up the build code a bit. 2012-02-18 21:55:09 +01:00
Griatch
6fdfbe657b Changed the flag save_next to save_for_next, it makes more sense. 2012-02-17 19:02:57 +01:00
Griatch
6e53e6a1fd Added state persistence to commands. For commands that want to, their state will be saved for the next command to access through the self.caller.ndb.last_cmd variable. The state only persists one command before it is cleared or replaced. 2012-02-17 18:53:47 +01:00
Griatch
a6f3e1f47f create_script(): Added new keywords for customizing a created script at creation time, overloading what is defined in the script's at_script_creation() hook. 2012-02-15 22:12:50 +01:00
Griatch
061c6c46f3 Removed i18n from runner.py as well. These infrastructure programs have little need for it. 2012-02-15 18:56:27 +01:00
Griatch
7675673010 Cleaned up the evennia.py program, removing some i18n strings in order to handle missing settings files. 2012-02-15 18:53:15 +01:00
Griatch
e170505878 Adding full convertion to the migrations, should hopefully cover all cases now. 2012-02-15 18:28:44 +01:00
Griatch
3b88767865 Made fixes to the migrations. 2012-02-15 14:27:26 +01:00
Griatch
d594357335 Another typo. 2012-02-14 23:48:00 +01:00
Griatch
370b7ca86c Fixed typo data-migration for new attribute storate type. 2012-02-14 23:46:19 +01:00
Griatch
a32aebaa0e OBS- need to run migrations! Refactored attributes to use a slightly different internal storage format for faster access. Also set up caching of all attribute data, so subsequent reads of an attribute will not hit the database anymore, and writes will re-cache. 2012-02-14 23:40:16 +01:00
Griatch
8b5f3628ab Added info about creating the tutorial world to the Limbo desc. Also refactored some of the lock functions a bit for efficiency. 2012-02-06 21:48:50 +01:00
Griatch
42d502bfc6 OBS - Database schema has changed! If you use south, you need to run manage.py migrate!
This adds db indexing on a set of important database fields, all in the interest of optimization.
2012-02-06 13:18:25 +01:00
Griatch
b87f787c38 Added some info the idmapper header, detailing the evennia changes better. 2012-02-06 12:38:17 +01:00
Griatch
d36a79b2cc Went over the Command class' basic methods, cleaning up and optimizing while still trying to keep things clean, such as using cleverer loops and try...except instead of if statements. Also cleaned up the way attributes are retrieved. Results in roughly a halving of the time that the code spends in the command.py module. 2012-02-06 00:59:41 +01:00
Griatch
7b2a4e4467 Cleaned up typeclasses, removing a lot of extranenous and ineffective code from the setattr/getattr methods that are called most often. 2012-02-05 21:04:10 +01:00
Griatch
f306c5a6a2 Added a separate program for launching client connections. Meant mainly for server devs at this point. It is primarily useful for stress-testing so as to get profiling data using e.g. cProfiler - running many clients with a short timestep -will- slow the server to a crawl! If using sqlite3 with 50+ clients you will also see the memory consumption gradually - our sqlite3 setup runs in RAM by default and these things create a lot of new stuff every timestep - make sure to shut it down before you run out of memory! Not sure if this says much about the server's actual behaviour with many players at this point, the usage pattern is hardly "realistic". Also, it's usually better to shut down the server before the dummyrunner. 2012-02-05 17:58:00 +01:00
Griatch
44b5ae07ba Fixed an issue that didn't allow the runner to launch profiled Portal in interactive mode. 2012-02-05 17:39:43 +01:00
Griatch
fdceb93dcb Added an option to game/runner.py for launching the components under the cProfile python profiler. 2012-02-03 00:15:25 +01:00
Griatch
cdab5a240b Added RSS feed support to Evennia. This uses the @rss2chan command to tie a feed to an in-game channel. Updates to the feed will henceforth be echoed to the channel. The reader requires the python-feedreader package to be installed. 2012-01-28 20:12:59 +01:00