Griatch
d4bf67e94e
Removed <strong> conversion of multiple ansii highlights in the web client. It doesn't matter either way for me, and since it seems it does for others, I can just as well disable it so it all looks the same in webclient and telnet. This relates to one of the points in Issue 309.
2012-10-23 23:47:49 +02:00
Griatch
b26d93f86b
Fixed some issues with the text2html converted that failed with colours in the web client.
2012-10-23 19:32:30 +02:00
Griatch
c0a4f62e95
Some minor fixes.
2012-10-23 01:35:47 +02:00
Griatch
53c6e5ae52
Implemented a new way to handle colour-escaping as discussed in Issue 305. Thanks to MercuryZero for ideas on how to implement this! Resolves Issue 305.
2012-10-23 01:20:10 +02:00
Griatch
e03c303d5e
Changed The way to escape %c-style colour codes from \\%c to %%c. No other changes or escaping done yet at this point.
2012-10-14 23:43:38 +02:00
Griatch
7de8e3fa82
Ansi fix - changed so one needs \\ to escape mux-style colour codes instead of just \. The extended { syntax is now escaped by adding an extra { in front - combining the two should enable getting around most needs of colouring backslashes. Resolves Issue 286.
2012-10-14 20:49:26 +02:00
Griatch
4dff822764
Fixed bug in @batchcommand (Resolves Issue 287). Also updated @dig to again handle deleting ranges of dbrefs (with or without # in front).
2012-10-14 16:24:21 +02:00
Griatch
97973dd5f9
Fixed erroneous global_search keyword in a few places in the code due to the API having changed. Resolves issue 276.
2012-10-14 12:06:42 +02:00
Griatch
8b582c9d3f
Added a delay() function to src.utils.utils, useful for simple delays without needing a script.
2012-10-14 11:54:26 +02:00
Griatch
592bc26b99
Added remote function call abilities to AMP protocol, courtesy of patch by user Shell.
...
This allows for Server to call functions on Portal and vice-versa. Some rewrites and
cleanup done before applying /Griatch.
2012-10-14 11:53:34 +02:00
Griatch
0b102bb07b
Fixed @batchcommand access, automatically disabling procpool under SQLite3.
2012-09-27 20:51:06 +02:00
Griatch
7d4bf6c8d2
Fixes a bug in scriptmanager. Resolves Issue 259.
2012-09-25 07:42:52 +02:00
Griatch
93d95377ce
Shifting ProcPool out of src and into a contrib, using the service plugin system.
2012-09-22 20:40:30 +02:00
Griatch
c0b03c2ee3
Some further removal of recursive loops in the typeclass system.
2012-09-20 23:18:52 +02:00
Griatch
5b88972523
Turning back more reasonable dummyrunner settings.
2012-09-20 02:56:41 +02:00
Griatch
7a130cb442
Removing some of the last self-reference loops in object.models, based on profiling.
2012-09-20 02:52:21 +02:00
Griatch
4bd3be334d
Added a warning to @delete command if trying to delete CHARACTER_DEFAULT_HOME (Limbo by default).
2012-09-20 01:42:51 +02:00
Griatch
4c83d3e7a1
Various speed optimizations in various places, following further profiling.
2012-09-20 00:47:28 +02:00
Griatch
0dae03156c
Some optimizations, cleanup and a few bugfixes. Just changing a spurious property retrieval in the typeclass removed an extra, pointless database query.
2012-09-18 01:03:35 +02:00
Griatch
c53a9b5770
Changed how Objects are searched, using proper Django Q objects instead of hack-y evals to build queries. This has lead to a number of changes to the ObjectDB manager search. Notably there is now no way to supply a "location" to either of the manager search methods anymore. Instead you can now supply the keyword "candidates", a list of objects which should be used to limit the search. This is much more generic than giving location. The higher-level search (like caller.search, reached from commands) have not changed its API, so commands should work the same unless you are using the manager backbone directly. This search function is now using location to create the "candidates" list. Some other things, like matching for "me" and "here" have also been moved up to a level were it can be easily overloaded. "me" and "here" etc were also moved under i18n.
...
As part of this overhaul I implemented the partial_matching algorithm originally asked for by user "Adam_ASE" over IRC. This will allow for (local-only) partial matching of objects. So "big black sword" will now be matched by "bi", "sword", "bi bla" and so on. The partial matcher sits in src.utils.utils.py if one wants to use it for something else.
2012-09-17 15:31:50 +02:00
Griatch
cc6fa079b6
Added some more functionality to the copy method of objects, as well as some minor fixes.
2012-09-11 23:47:29 +02:00
Griatch
5348563bfb
Some fixes to dummyrunner.
2012-09-03 22:29:01 +02:00
Griatch
047de533f3
Moved dummyrunner into a separate directory under src/utils
2012-09-03 21:54:13 +02:00
Griatch
d5c1d35406
Cleaning up some ampoule outputs.
2012-09-03 21:47:22 +02:00
Griatch
81dfeb6788
Added per-process timeout capability to run_async. Also changed contrib/evlang to use run_async
2012-09-03 21:16:54 +02:00
Griatch
ffcf4b3c2f
Added cache-resyncing to ProcPool. This makes sure to update all affected object caches
...
whenever the subprocess returns (this is potentially not good enough for long-running scripts,
will have to ponder that one). Made ProcPool work with MySQL (where it works much better). Tested and fixed many
small bugs.
2012-09-03 01:11:14 +02:00
Griatch
275d00d4db
Some more usability additions to the ProcPool system. Also made it default
...
to turned off when SQLite3 is used - SQLite3 doesn't support multiple
processes.
2012-09-02 18:57:25 +02:00
Griatch
575d7a86fa
Made run_async also handle function calls through the ProcPool.
2012-09-02 16:54:07 +02:00
Griatch
e25ac1e46b
Changed run_async to properly relay remote error messages to the user-supplied errback.
2012-09-02 16:14:08 +02:00
Griatch
056fee5c70
Changing all text files to explicitly have .txt endings. This helps online code browsers to properly identify the files.
2012-09-02 13:05:47 +02:00
Griatch
af99a80b4b
Added procpool functionality for sending arbitrary data over the wire (including
...
nested databaseobjects). Rules are similar to Attribute saving.
Adding a missing component to the procpool setup.
2012-09-02 12:53:11 +02:00
Griatch
f5a889e40c
Added new process-pool runner based on AMPoule (integrated into Evennia).
...
This allows e.g. utils.utils.run_async to offload long-running functions
to a completely different subprocess entirely, offering real parallelism.
Implementation is still experimental, notably not all objects can be
transferred safely across the wire; also there is no concept of
updating caches yet - so adding an object from the subprocess side
will not be known in the main thread yet (since caches cannot yet tell
the underlying database has changed).
2012-09-02 10:10:22 +02:00
Griatch
dcc7f29a91
OBS: run migrations! This changes the Msg model to work with ManyToManyFields rather than with custom string representations for storing multiple receivers or channels. It also expands the Msg object with a "title" field and various filter options. This should make it easier to implement mail-like operations using the comms system.
2012-08-30 00:05:00 +02:00
Griatch
f68523cc22
Minor optimizations and some fixes to the dummyrunner.
2012-08-22 22:34:43 +02:00
Griatch
f5caab093e
Fixed a spurious error messages from the location setter when logging out (need to check None location)
2012-08-19 21:36:01 +02:00
Griatch
9e2ad59663
Added a fix for running with postgresql-psycopg2. This does not actually resolve the problem as much as circumvent it, so I'm not marking Issue 115 as closed just yet.
2012-06-16 14:51:22 +02:00
Griatch
4c849ec351
Cleaned and updated the i18n strings for various server-core system. Removed i18n for all strings that are only visible on stdout or in logs. Still missing i18n on certain specific things such as model field help and attribute warnings. Updated Swedish translation to match.
2012-06-14 02:43:35 +02:00
Griatch
5f043d28d7
Minor cleanups of code.
2012-06-10 11:16:00 +02:00
Griatch
96e95ca525
Raised Python requirement to 2.6+. Some spurious work on the mdsp support.
2012-05-05 23:52:13 +02:00
Griatch
14ed95ebfe
Removed with statement, it's not well supported (without future import) in python 2.5.
2012-05-04 09:20:30 +00:00
Griatch
c49fbd7d99
Removed 'with' statement; it's available in Python2.5, but one needs to use the future import to do that, so easiest to remove it. Resolves issue 230.
2012-05-04 10:03:41 +02:00
Griatch
4acfe48d9c
Removed repetitive imports in the utils.create functions. I experimented with making these methods yield more, but it's hard to integrate this behaviour with actual production code.
2012-05-01 22:51:18 +02:00
Griatch
94477b8340
Updated the reload and shutdown mecanism to avoid a loop when shutting down from inside the game. Made sure to have server sync correctly with portal at @reload (some session info were lost before). Some other cleanups.
2012-05-01 14:19:54 +02:00
Griatch
e82515f8cb
Updated to a supported idmapper version. Added a method for calculating the cache usage of the idmapper, and tied it to the @system command.
2012-04-30 00:51:36 +02:00
Griatch
1feb3a80a5
Some minor cleanups here and there.
2012-04-29 12:35:21 +02:00
Griatch
ed6def0c88
Made XTERM256 properly range between 0-5 (it was erroneously capped at 1-5 which mean the darkest values
...
of the colour cube were unreachable).
Fixed some issues with the lock caching.
2012-04-29 01:26:10 +02:00
Griatch
2dba8ad547
Changed attribute-caching to use a string as key rather than the attribute-object itself. The latter caused the database to be invoked in order to create the hash over and over.
2012-04-28 14:47:11 +02:00
Griatch
3091587e33
Added a timeout to the attribute caching; the system will now clean cache at regular intervals once it pass a certain size defined in settings.
2012-04-28 00:37:36 +02:00
Griatch
a8373c685f
Some optimizations in one of the most expensive bits of the server, namely the command handler.
2012-04-25 18:47:03 +02:00
Griatch
3fba0bdbe3
Changed suggestion system to give more suggestions also if the help entry catches the exact match.
2012-04-22 21:54:28 +02:00