Start Info Community Spielen

Morgengrauner Dokumentation

Dateipfad: /home/mud/mudlib/doc//driver/invocation


    Description of the invocation of the gamedriver, especially of the command
    arguments. This document describes the commandline version of the driver
    only; non-commandline versions are platform specific and described in
    the related documentation.

    The driver is invoked from the commandline as other normal programs.
    Neither the current directory nor the directory the executable is in need
    to be in any special relation the directory of the mudlib. Once the driver
    is running, it emits two streams of outputs:

      - driver-related messages on stderr; this unfortunately includes
        LPC compiler diagnostics
      - LPC runtime-related messages in the logfile /.parse.log
        (the name can be changed).

    It is possible to start the driver without any commandline arguments as
    suitable defaults are specified at compile time. The invocation syntax

        driver [options] []...

     the number of the port the driver shall use to accept
    connections. The maximum number of ports is determined by MAXNUMPORTS
    in the source file config.h.

    The options modify the behaviour of the gamedriver. Some of them are only
    available if a certain compile-time option was enabled (typically in
    the source file config.h). The following options are recognized:

        Inherit filedescriptor  from the parent process
        as socket to listen for connections.
        Only available if compiled with MAXNUMPORTS.

        Specify the  for the UDP port, overriding the compiled-in
        Only available if compiled with CATCH_UDP_PORT.

      -D|--define [=]
        Add  (optionally to be expanded to ) to the list of
        predefined macros known by the LPC compiler.

        Set the number of  available for one evaluation thread.
        If 0, execution is unlimited.

        Use  for the master object.

        Use  as the top directory of the mudlib.

        Log all debug output in  instead of
        /.debug.log .

        Use  as hostname instead of what the system says.

        Use  as address of this machine, instead of what the
        system says.  In particular this address will be used to open
        the driver ports.

        Select the mode (plain or compat) of the driver.
        This choice does not affect the default name of the master object.

        Generate debug output; repeat the argument for even more output:
          >= 1: log resets, clean ups, swaps, reception of urgend data,
                   telnet negotiation states.
                check_a_lot_of_refcounts() on startup when swapping of
                   variables is disabled.
          >= 2: log all add_message()s, name lookup failures, new players.
          >= 3: progress of garbage collection
          >= 4: even more junk from garbage collection

        List the name of every compiled file on stderr.

        Pass a non-zero argument (the number of occurences of this option)
        to master->preload(), which usually inhibits all preloads of castles
        and other objects.

      --erq " "
        Use  instead of 'erq' as the basename of the ERQ executable.
        If the name starts with a '/', it is take to be an absolute pathname,
        otherwise it is interpreted relative to . If not specified,
        'erq' is used as the executable name.

        By enclosing the argument value in quotes, it is possible to pass
        arguments (e.g. --execdir) to the erq. These arguments however must
        not contain embedded spaces.

        Don't start the erq demon (if it would be started at all).

        Set the granularity of call_out() and heartbeat timing. Minimum
        value is 1.

        Set the interval between two heartbeats. Minimum value is 1.

        All heartbeats occur at the same time (modulo granularity).
        Heartbeats occur when they are due (modulo granularity).

        Disable heartbeats and call_outs.

        The lfun master->flag() is called with  as argument before the
        gamedriver accepts netword connections.

      --regexp pcre | traditional
        Select the default regexp package.

        The maximum number of elements an array can hold.
        Set to 0, arrays of any size are allowed.

        The maximum number of elements a mapping can hold.
        Set to 0, mappings of any size are allowed.

        The maximum number of entries a mapping can hold.
        Set to 0, mappings of any size are allowed.

        The maximum number of callouts at one time.
        Set to 0, any number is allowed.

        The maximum number of bytes one read_bytes()/write_bytes() call
        can handle.
        Set to 0, reads and writes of any size are allowed.

        The maximum number of bytes one read_file()/write_file() call
        can handle.
        Set to 0, reads and writes of any size are allowed.

      --max-thread-pending \n"
        The maximum number of bytes to be kept pending by the socket write
        Set to 0, an unlimited amount of data can be kept pending.

        This option is ignored if pthreads are not used.

FEEDBACK | IMPRESSUM | DATENSCHUTZ 1992–2019 © MorgenGrauen. Alle Rechte vorbehalten.