Refactored amp.py to more cleanly splitting long AMP messages also during server sync (this could cause errors with a large number of connected players). Also fixed an issue with the lockstring get:all() being set by @create despite it not needing to (overloading changes in the typeclass).

This commit is contained in:
Griatch 2013-11-27 16:57:41 +01:00
parent 1ae17bcbe4
commit e9e2c78eef
9 changed files with 301 additions and 201 deletions

View file

@ -108,11 +108,11 @@ DEFAULT_NCLIENTS = 1
# line. All launched clients will be called upon to possibly do an
# action with this frequency.
DEFAULT_TIMESTEP = 2
# chance of a client performing an action, per timestep. This helps to
# spread out usage randomly, like it would be in reality.
CHANCE_OF_ACTION = 0.05
# Port to use, if not specified on command line
DEFAULT_PORT = settings.TELNET_PORTS[0]
# chance of an action happening, per timestep. This helps to
# spread out usage randomly, like it would be in reality.
CHANCE_OF_ACTION = 0.1
#------------------------------------------------------------

View file

@ -191,19 +191,19 @@ def c_moves(client):
# #(0.1, c_creates_button),
# #(0.4, c_moves))
## "normal player" definition
ACTIONS = ( c_login,
c_logout,
(0.01, c_digs),
(0.1, c_socialize),
(0.39, c_looks),
(0.1, c_help),
(0.4, c_moves))
#ACTIONS = ( c_login,
# c_logout,
# (0.01, c_digs),
# (0.1, c_socialize),
# (0.39, c_looks),
# (0.1, c_help),
# (0.4, c_moves))
## "socializing heavy builder" definition
#ACTIONS = (c_login,
# c_logout,
# (0.1, c_socialize),
# (0.1, c_looks),
# (0.1, c_help),
# (0.2, c_creates_obj),
# (0.2, c_digs),
# (0.3, c_moves))
ACTIONS = (c_login,
c_logout,
(0.1, c_socialize),
(0.1, c_looks),
(0.1, c_help),
(0.2, c_creates_obj),
(0.2, c_digs),
(0.3, c_moves))

View file

@ -651,6 +651,9 @@ def check_evennia_dependencies():
sversion = south.__version__
if sversion < south_min:
errstring += "\n WARNING: South version %s found. Evennia recommends version %s or higher." % (sversion, south_min)
if sversion == "0.8.3":
errstring += "\n ERROR: South version %s found. This has a known bug and will not work. Please upgrade." % sversion
no_error = False
except ImportError:
pass
# IRC support