Commit graph

185 commits

Author SHA1 Message Date
Griatch
70ea21dab8 Added settings for webserver threadpool limits. 2013-05-23 23:57:21 +02:00
Griatch
20e093aa26 Settings and server configs updated. The caches between server and website threads are still not properly addressed - a change in the admin interface does not immediately translate to a change in-game. 2013-05-23 23:42:55 +02:00
Griatch
c083fe6266 Webserver->Server is working, some more cleanup needed. 2013-05-23 22:58:50 +02:00
Griatch
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. 2013-05-23 00:02:25 +02:00
Griatch
812bdb0f73 Refactored src/server, splitting out into a portal subdirectory to make it clearer what goes on which "side". 2013-05-22 18:40:16 +02:00
Griatch
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. 2013-05-21 15:05:10 +02:00
Kelketek
bda5d88c24 Fixed issue with webclient sessions hanging on disconnect. 2013-05-18 21:20:54 -05:00
Kelketek
1a26552600 Possible fix to bad disconnection issue. 2013-05-18 18:18:32 -05:00
Griatch
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). 2013-05-14 19:15:58 +02:00
Griatch
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). 2013-05-14 14:53:08 +02:00
Griatch
82b82318d5 Cleaning up some more in the attrcache cleaner. 2013-05-14 08:22:18 +02:00
Griatch
ffbc1ad0e7 Made the caches.flush_attr_cache more comprehensive also for attribute values. 2013-05-14 08:04:08 +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
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
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
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
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
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
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
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
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
b5ccad21c5 Added functionality for MULTISESSION_MODE of types 0 and 1. 2013-03-25 09:41:27 +01:00
Griatch
de076d4af4 Added the _superuser_character flag to the superuser character upon creation. 2013-03-11 22:03:08 +01:00
Griatch
25505d69a6 Moved login and disconnect from session-level to sessionhandler level to make the process cleaner with hooks rather than direct calls. 2013-02-17 18:48:48 +01:00
Griatch
707a21c7d7 Fixed so reloading the server reconnects the proper sessions to the characters again. 2013-02-17 13:59:36 +01:00
Griatch
eb1044d7a1 Refactored AMP and server/portalsessionhandler, moving allmost all logic to the sessionhandlers instead. The old
reason for having so much logic was due to circular import problems, but with the use of delayed imports this is
not a problem for the sessionhandler anymore. Makes for cleaner and much easier to navigate code.
2013-02-17 12:31:58 +01:00
Griatch
1f676eda60 Some more fixes to the commands. 2013-02-16 21:26:59 +01:00
Griatch
e345d659fd Merge. 2013-02-09 11:21:38 +01:00
Kelketek
d5129b5065 Updated X-Forwarded-For to better conform to spec (multiple proxies). 2013-02-06 07:41:22 -06:00
Kelketek
90163734aa Added support for X-Forwarded-For. 2013-02-06 01:07:25 -06:00
Griatch
b82a75d816 Fixed initial_setup and set up the _playable_characters attribute on all players, for handling multi-accounts. Still some issues with how the character's permissions is accessed. 2013-02-03 20:04:40 +01:00
Griatch
b26c3ab872 Fixed bugs and allowed for logging in using one character. Added a simple command for creating a new character. 2013-02-03 17:00:46 +01:00
Griatch
f1767251c6 Can now log in to a character selection screen. Lots more testing required before one-char-per-session works. 2013-02-03 00:25:06 +01:00
Griatch
00584365ae Added sessids to command objects and changed how the "login"-hooks are called. Those will probably have to be changed to better names, at least for characters. 2013-02-02 22:41:56 +01:00
Griatch
231af4a351 Continued work on multi-char-per-account. Added a new default login point. Still need to add sessid to commands. 2013-02-02 15:55:42 +01:00
Griatch
261454ff0a First steps towards a full account system (multiple Character with one Player); added the Player-level methods. 2013-01-26 21:20:31 +01:00
Griatch
ea545d7ff3 Added the ability to deactivate local caching, by use of the settings.GAME_CACHE_TYPE variable. A temporary solution for working with multiple processes. Will also be useful for debugging and profiling. 2013-01-09 19:43:46 +01:00
Griatch
5ef92b6bf8 Some cleanups, properly marking the OOB stuff as WIP still. OOB is progressing but not yet functional or in its final form. 2013-01-07 15:47:41 +01:00
Griatch
58c010ef46 Some further work on the OOBhandler mechanism. 2013-01-04 10:35:29 +01:00
Griatch
b0b0fa7983 First, untested version of the OOBhandler mechanism. 2013-01-03 09:18:49 +01:00
Griatch
a1a2c99d1e Fixed a traceback if logging out from the unloggedin screen. 2012-12-11 23:30:30 +01:00
Griatch
28c625c12c Re-activated connect-channel again, called from hooks. Fixed some bugs and minor things to give more control over how messages sent to channels are handled. 2012-11-13 21:24:05 +01:00
Griatch
8654d8cc48 Further migrated script caches to the central cache location, removing old cruft. 2012-11-08 19:29:57 +01:00
Griatch
e4382e3e8a Fixed a regression in has_attribute caused by changing the location of caches. Resolves Issue 328. 2012-11-07 20:22:46 +01:00
Griatch
d2d9953f94 Cache changes: Moved all caches (except idmapper) to central caching module. This makes it easier to overview cache memory usage (and clean it) as well as plug-in external cache mechanisms. 2012-11-01 11:20:07 +01:00
Griatch
92f6b06626 Added new start/stop hooks to server. These are read differently depending on if the server is reloaded or reset/shutdown. OBS: If you have already implemented your own version of AT_STARTSTOP_MODULE, you need to add stubs for new hooks. You can find the required hooks in gamesrc/conf/examples/at_startstop.py.
gamesrc/conf/examples
2012-10-28 22:02:22 +01:00