From e3c58aeb6d548bc87c698deac1592e00e278d203 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Sun, 14 Dec 2008 00:02:11 +0000 Subject: [PATCH] Fixed startup.bat to work again since the creation of the 'src' folder. Forgot to update the path. Also updated Windows 'Getting Started' guide on evennia.com to be more verbose. Also did a few really minor formatting fixes and commenting elsewhere. --- src/flags.py | 3 ++- src/scheduler.py | 6 +++++- startup.bat | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/flags.py b/src/flags.py index b186c34c8b..27f95d2802 100644 --- a/src/flags.py +++ b/src/flags.py @@ -5,7 +5,8 @@ import defines_global # This is a list of flags that the server actually uses. Anything not in this # list is a custom flag. -SERVER_FLAGS = ["CONNECTED", "DARK", "FLOATING", "GAGGED", "HAVEN", "OPAQUE", "SAFE", "SLAVE", "SUSPECT", "TRANSPARENT"] +SERVER_FLAGS = ["CONNECTED", "DARK", "FLOATING", "GAGGED", "HAVEN", "OPAQUE", + "SAFE", "SLAVE", "SUSPECT", "TRANSPARENT"] # These flags are not saved. NOSAVE_FLAGS = ["CONNECTED"] diff --git a/src/scheduler.py b/src/scheduler.py index 41bf152ca4..a65da383f7 100644 --- a/src/scheduler.py +++ b/src/scheduler.py @@ -13,7 +13,11 @@ ADDING AN EVENT: # Dictionary of events with a list in the form of: # [, , , , ] schedule = { - 'evt_check_sessions': [events.evt_check_sessions, 60, time.time(), None, "Session consistency checks."] + 'evt_check_sessions': [events.evt_check_sessions, # Function + 60, # Interval (seconds) + time.time(), # Last time executed (now) + None, # Task object + "Session consistency checks."] # Description } def start_events(): diff --git a/startup.bat b/startup.bat index 7bacd740aa..8a40e69707 100644 --- a/startup.bat +++ b/startup.bat @@ -4,4 +4,4 @@ set PYTHONPATH=. echo Starting Evennia... rem We're only going to run in interactive mode until we've had more time to make sure things work as expected on Windows. -twistd -oy --logfile=- --python=server.py \ No newline at end of file +twistd -oy --logfile=- --python=src/server.py \ No newline at end of file