コード例 #1
0
ファイル: main.py プロジェクト: MoMReborn/MoMServer
        stats = User.byName("Stats")
        stats.destroySelf()
    except:
        pass

    stats = User(name="Stats",password=STATSERVERPASSWORD)
    stats.addRole(Role.byName("Stats"))

    NewPlayerAvatar.ownerPublicName = PUBLICNAME

    #--- Application
    from mud.server.app import Server


    THESERVER = Server(WORLDPORT)
    THESERVER.allowConnections = False
    THESERVER.throttleUsage = True
    if MAXPLAYERS == -1:
        MAXPLAYERS = 1024

    THESERVER.roleLimits["Player"]=MAXPLAYERS
    THESERVER.startServices()


    GAMEPROCESS = None

    ZONESSPAWNED = False


    #XXX starting zones simultaneously crashes
コード例 #2
0
        stats = User.byName("Stats")
        stats.destroySelf()
    except:
        pass

    stats = User(name="Stats",password=STATSERVERPASSWORD)
    stats.addRole(Role.byName("Stats"))

    NewPlayerAvatar.ownerPublicName = PUBLICNAME

    #--- Application
    from mud.server.app import Server


    THESERVER = Server(WORLDPORT)
    THESERVER.allowConnections = False
    THESERVER.throttleUsage = True
    if MAXPLAYERS == -1:
        MAXPLAYERS = 1024

    THESERVER.roleLimits["Player"]=MAXPLAYERS
    THESERVER.startServices()


    GAMEPROCESS = None

    ZONESSPAWNED = False


    #XXX starting zones simultaneously crashes