Run your own Lobby

Moderator: NADEO

User avatar
killer606
Posts: 440
Joined: 19 Jul 2011, 09:15
Contact:

Re: Run your own Lobby

Post by killer606 »

Latest version 2.7

config:

Code: Select all

;------------------
; ManiaLive
;------------------

; the default is %application%/logs
; config.logsPath = /var/logs

; the prefix for each log filename
; config.logsPrefix = ''

; whether to write console output into a file, default is Off
; config.runtimeLog = On

; whether to gather errors from all instances to a single file, default is Off
; config.globalErrorLog = On

; how many errors before killing the ManiaLive process, default is Off (feature disabled)
; config.maxErrorCount = 5

; where is located the dedicated server for manialive command line options (default is ManiaLive root)
; config.dedicatedPath = /path/to/dedicated

; If On, ManiaLive will try to call the updater
; config.lanMode = On

;------------------
; Dedicated Server
;------------------

server.host = 'localhost'
server.port = yes

standard user level is SuperAdmin
server.user = 'SuperAdmin'
server.password = 'yes'

config.enableToggleGUI = Off

; when a connection can't be established after the given amount
; of time, it will timeout and manialive will shutdown.
; server.timeout = 1

;------------------
; Runtime Features
;------------------

; Add admins, that shall be able to control your server from game.
; manialive.admins[] = 'login'
manialive.admins[] = 'killermania'

; Add plugins to load.
; manialive.plugins[] = 'Author\PluginName'
manialive.plugins[] = 'MatchMakingLobby\Match'
ManiaLivePlugins\MatchMakingLobby\Config.lobbyLogin = combo_lobby

; Plugins configuration
; ManiaLivePlugins\Author\PluginName\ConfigClass.name = value
;
; You can also declare aliases to make it easier, the following two lines
; are equivalent to the previous one
; alias myplugin = 'ManiaLivePlugins\Author\PluginName\Config'
; myplugin.name = value

;------------------
; Database
;------------------

; enabled by default
; database.enable = true

; Connection configuration
database.host = '127.0.0.1'
database.port = 3306
database.username = 'yes'
database.password = 'yes'

; Default database name
database.database = 'manialive_combo_match_1'

; Connection type: MySQL (by default) or SQLite
; database.type = 'MySQL'

;------------------
; Threading
;------------------

; threading can improve performance of your application. it
; allows modules to push blocking work onto another processes,
; this can also improve stability, because timeouts or
; unexpected exceptions do not impact the main application.

; if you have stability problems try to deactivate threading first
; threading.enabled = true

; the default path is 'php.exe' on windows and 'php' on linux
; threading.phpPath = /path/php

; how long may a thread be busy until it is killed
; threading.busyTimeout = 20

; if a command can't be done because of crashing a thread or timing out
; it will be discarded after this number of tries
; threading.maxTries = 3

; if threading is disabled, then how much time should be spend on
; each application loop to process work that would have been assigned
; to other threads normally
; default value is 1 second.
; threading.sequentialTimeout = 1

;------------------
; WebServices
;------------------

; configure your ManiaPlanet WebServices API credentials
; every plugin using a web service should take these values for ease sake

; wsapi.username = ''
; wsapi.password = ''

; specific additionnal value for ManiaHome web service
; wsapi.manialink = ''

;------------------
[hostname: testHost]
;------------------

; put here the configuration specific to an host
Now ml crashed on the Lobby server

Code: Select all

[PluginHandler] All registered plugins have been loaded
PHP Fatal error:  Call to undefined method ManiaLive\Utilities\Logger::debug() in /home/shootmania/combo_lobby/ManiaLive/libraries/ManiaLivePlugins/MatchMakingLobby/Lobby/Plugin.php on line 486

Fatal error: Call to undefined method ManiaLive\Utilities\Logger::debug() in /home/shootmania/combo_lobby/ManiaLive/libraries/ManiaLivePlugins/MatchMakingLobby/Lobby/Plugin.php on line 486
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Run your own Lobby

Post by magnetik »

You have to use manialive 2.7.1
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killer606
Posts: 440
Joined: 19 Jul 2011, 09:15
Contact:

Re: Run your own Lobby

Post by killer606 »

Exactly the same error on Match server with ML 2.7.1
Very strange :D

But ML is still running there, so i dont know if it works. But I have for the moment one lobby server and one match server. Why are the slots set to 42? and not 4?
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: Run your own Lobby

Post by farfa »

You have to create the logs folder in you ManiaLive directory
Also known as: satanasdiabolo
User avatar
killer606
Posts: 440
Joined: 19 Jul 2011, 09:15
Contact:

Re: Run your own Lobby

Post by killer606 »

farfa wrote:You have to create the logs folder in you ManiaLive directory
On the Matchserver ML directory is a folder named "logs" thats where I have those errors from.
And the lobby server has no errors, until now.

Ok... Strange, now it works no error in ML anymore. But one is still strange, it still shows on the Lobby 42 slots, but I'm running only 2 matchservers, shouldn't it show only 8?
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Run your own Lobby

Post by magnetik »

The max player count displayed in the browser is the lobby max player count + the sum of match servers player count.

Do you remember doing anything to fix your error ?
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killer606
Posts: 440
Joined: 19 Jul 2011, 09:15
Contact:

Re: Run your own Lobby

Post by killer606 »

Ah okey I think I know why, the matchservers running with 10 spec slots, so better set this to 0 and the Lobby to 12 as there are for test only 3 match servers?

I just copied the working ML from the lobbyserver and changed the config, then it worked.
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Run your own Lobby

Post by magnetik »

Plugin version 1.1 released. It fixes the redirection loop issue

Download : https://github.com/maniaplanet/MatchMakingLobby/tags
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killer606
Posts: 440
Joined: 19 Jul 2011, 09:15
Contact:

Re: Run your own Lobby

Post by killer606 »

What means this message? (came in matchserver)

Code: Select all

MatchBot» Match aborted.
MatchBot» Match aborted.
Because players left? Or a bug?

EDIT: tested myself, is it normal that the match will be canceled if 1 player leaves?
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Run your own Lobby

Post by magnetik »

The match is aborted as soon as a team is empty.

You also have the value minPlayersByTeam in the plugin configuration to change it.

I'll take a look on monday on why match are aborted on your side. Could you detail us your configuration ?
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest