Made the evennia launcher's help entries a little more succinct.
This commit is contained in:
parent
ab1663c856
commit
2d81a90b4b
1 changed files with 38 additions and 41 deletions
|
|
@ -30,40 +30,45 @@ if not os.path.exists('settings.py'):
|
||||||
# signal processing
|
# signal processing
|
||||||
SIG = signal.SIGINT
|
SIG = signal.SIGINT
|
||||||
|
|
||||||
|
|
||||||
|
CMDLINEHELP = \
|
||||||
|
"""
|
||||||
|
Main Evennia launcher. When starting in interactive (-i) mode, only
|
||||||
|
the Server will do so since this is the most commonly useful setup. To
|
||||||
|
activate interactive mode also for the Portal, use the menu or launch
|
||||||
|
the two services one after the other as two separate calls to this
|
||||||
|
program.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
HELPENTRY = \
|
HELPENTRY = \
|
||||||
"""
|
"""
|
||||||
(version %s)
|
(version %s)
|
||||||
|
|
||||||
This program launches Evennia with various options. You can access all
|
All functionality of the launcher can also be accessed directly from
|
||||||
this functionality directly from the command line; for example option
|
the command line. Use "python evennia.py -h" for command line
|
||||||
five (restart server) would be "evennia.py restart server". Use
|
options.
|
||||||
"evennia.py -h" for command line options.
|
|
||||||
|
|
||||||
Evennia consists of two separate programs that both must be running
|
Evennia consists of two separate parts that both must be running
|
||||||
for the game to work as it should:
|
for the server to work as it should:
|
||||||
|
|
||||||
Portal - the connection to the outside world (via telnet, web, ssh
|
Portal - the connection to the outside world (via telnet, web, ssh
|
||||||
etc). This is normally running as a daemon and don't need to
|
etc). This is normally running as a daemon and don't need to
|
||||||
be reloaded unless you are debugging a new connection
|
be reloaded unless you are debugging a new connection
|
||||||
protocol. As long as this is running, players won't loose
|
protocol.
|
||||||
their connection to your game. Only one instance of Portal
|
|
||||||
will be started, more will be ignored.
|
|
||||||
Server - the game server itself. This will often need to be reloaded
|
Server - the game server itself. This will often need to be reloaded
|
||||||
as you develop your game. The Portal will auto-connect to the
|
as you develop your game. The Portal will auto-connect to the
|
||||||
Server whenever the Server activates. We will also make sure
|
Server whenever the Server activates.
|
||||||
to automatically restart this whenever it is shut down (from
|
|
||||||
here or from inside the game or via task manager etc). Only
|
|
||||||
one instance of Server will be started, more will be ignored.
|
|
||||||
|
|
||||||
In a production environment you will want to run with the default
|
In a production environment you will want to run with the default
|
||||||
option (1), which runs as much as possible as a background
|
option (1), which runs as much as possible as a background process.
|
||||||
process. When developing your game it is however convenient to
|
When developing your game it is however convenient to directly see
|
||||||
directly see tracebacks on standard output, so starting with options
|
tracebacks on standard output, so starting with options 2-4 may be a
|
||||||
2-4 may be a good bet. As you make changes to your code, reload the
|
good bet. As you make changes to your code, reload the server (option
|
||||||
server (option 5) to make it available to users.
|
5) to make changes appear in the game.
|
||||||
|
|
||||||
Reload and stop is not well supported in Windows. If you have issues, log
|
Reload and stop is not well supported in Windows. If you have issues,
|
||||||
into the game to stop or restart the server instead.
|
log into the game to stop or restart the server instead.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
MENU = \
|
MENU = \
|
||||||
|
|
@ -72,34 +77,27 @@ MENU = \
|
||||||
| |
|
| |
|
||||||
| Welcome to the Evennia launcher! |
|
| Welcome to the Evennia launcher! |
|
||||||
| |
|
| |
|
||||||
| Pick an option below. Use 'h' to get help. |
|
+--- Starting --------------------------------------------------------------+
|
||||||
| |
|
| |
|
||||||
+--- Starting (will not restart already running processes) -----------------+
|
| 1) (default): All output to logfiles. |
|
||||||
|
| 2) (game debug): Server outputs to terminal instead of to logfile. |
|
||||||
|
| 3) (portal debug): Portal outputs to terminal instead of to logfile. |
|
||||||
|
| 4) (full debug): Both Server and Portal output to terminal |
|
||||||
| |
|
| |
|
||||||
| 1) (default): Start Server and Portal. Portal starts in daemon mode.|
|
+--- Restarting ------------------------------------------------------------+
|
||||||
| All output is to logfiles. |
|
|
||||||
| 2) (game debug): Start Server and Portal. Portal starts in daemon mode.|
|
|
||||||
| Server outputs to stdout instead of logfile. |
|
|
||||||
| 3) (portal debug): Start Server and Portal. Portal starts in non-daemon |
|
|
||||||
| mode (can be reloaded) and logs to stdout. |
|
|
||||||
| 4) (full debug): Start Server and Portal. Portal starts in non-daemon |
|
|
||||||
| mode (can be reloaded). Both log to stdout. |
|
|
||||||
| |
|
|
||||||
+--- Restarting (must first be started) ------------------------------------+
|
|
||||||
| |
|
| |
|
||||||
| 5) Reload the Server |
|
| 5) Reload the Server |
|
||||||
| 6) Reload the Portal (only works in non-daemon mode. If running |
|
| 6) Reload the Portal (only works when portal outputs to terminal). |
|
||||||
| in daemon mode, Portal needs to be stopped/started manually. |
|
|
||||||
| |
|
| |
|
||||||
+--- Stopping (must first be started) --------------------------------------+
|
+--- Stopping --------------------------------------------------------------+
|
||||||
| |
|
| |
|
||||||
| 7) Stopping both Portal and Server. Server will not restart. |
|
| 7) Stopping both Portal and Server. |
|
||||||
| 8) Stopping only Server. Server will not restart. |
|
| 8) Stopping only Server. |
|
||||||
| 9) Stopping only Portal. |
|
| 9) Stopping only Portal. |
|
||||||
| |
|
| |
|
||||||
+---------------------------------------------------------------------------+
|
+---------------------------------------------------------------------------+
|
||||||
| h) Help |
|
| h) Help |
|
||||||
| q) Quit |
|
| q) Abort |
|
||||||
+---------------------------------------------------------------------------+
|
+---------------------------------------------------------------------------+
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -438,9 +436,8 @@ def main():
|
||||||
This handles command line input.
|
This handles command line input.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
parser = OptionParser(usage="%prog [-i] [menu|start|reload|stop [server|portal|all]]",
|
parser = OptionParser(usage="%prog [-i] start|stop|reload|menu [server|portal]",
|
||||||
description="""This is the main Evennia launcher. It handles the Portal and Server, the two services making up Evennia. Default is to operate on both services. Interactive mode sets the service to log to stdout, in the foreground. Note that when launching 'all' services with the \"--interactive\" flag, both services will be started, but only Server will actually be started in interactive mode, simply because this is the most commonly useful setup. To activate interactive mode also for Portal, use the menu or launch the two services explicitly as two separate calls to this program.""")
|
description=CMDLINEHELP)
|
||||||
|
|
||||||
parser.add_option('-i', '--interactive', action='store_true',
|
parser.add_option('-i', '--interactive', action='store_true',
|
||||||
dest='interactive', default=False,
|
dest='interactive', default=False,
|
||||||
help="Start given processes in interactive mode.")
|
help="Start given processes in interactive mode.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue