"An error occured" in the MatchMaking API

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
killerboye
Posts: 73
Joined: 10 Apr 2013, 15:09
Location: Belgium
Contact:

"An error occured" in the MatchMaking API

Post by killerboye »

Hi,

I'm stuck with the following error that gets spammed in the chat during matchmaking:
"An error occured in the matchmaking API. If the problem persist please try to contact this server administrator."

I'm trying to make the titlepack work with matchmaking (so a lobby server that matches people to send to match servers).
Currently I'm testing it locally, started the script with a lobby match settings file. Also have it set on a dedicated lobby server that has matchservers to it connected, but it gives the same error.

What I've tried doing already:
- Checked if it uses the right matchmaking library: Modes/ModeMatchmaking2.Script.txt
- Looked at Nadeo TP's like Elite and Chase, so I'm using the MM_SetupMatchmaking event (setting the right (progressive)formats
- Desperately went in to comment code that calls functions from the library.
- Making sure matchsettings files are correct (Used the maniaplanet documentation).

What I'm wondering, is there no way to debug this? This message doesn't give me any information where an error occurs. So I don't really have any more ideas where to look atm. Anyone else maybe?

Image
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: "An error occured" in the MatchMaking API

Post by magnetik »

Hi,

I've seen quite a few requests with an empty "format". Have you called "MM_SetFormat" as explained here ?
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killerboye
Posts: 73
Joined: 10 Apr 2013, 15:09
Location: Belgium
Contact:

Re: "An error occured" in the MatchMaking API

Post by killerboye »

Thanks for the quick response!

First, the link doesn't work: You are not authorised to read this forum.
Secondly, I think I use the SetFormat function right, just by checking the "Modes/ModeMatchmaking2.Script.txt" file

Code: Select all

MM_SetFormat([S_NbPlayersPerTeamMax, S_NbPlayersPerTeamMax]);
It requires an array of Integers as parameter. both settings are Integers.
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: "An error occured" in the MatchMaking API

Post by magnetik »

OKay so if you call it with two integers it should be okay.

What's the lobby login you are using for your test?
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killerboye
Posts: 73
Joined: 10 Apr 2013, 15:09
Location: Belgium
Contact:

Re: "An error occured" in the MatchMaking API

Post by killerboye »

I don't know what you mean with lobby login. Where can I find that? Do you mean the MasterLogin maybe?
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: "An error occured" in the MatchMaking API

Post by magnetik »

The matchmaking API only responds to the matchmaking requests from server logins (dedicated server account, eg what you register on https://www.maniaplanet.com/account/dedicated-servers) that are currently running from a joinable IP.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
killerboye
Posts: 73
Joined: 10 Apr 2013, 15:09
Location: Belgium
Contact:

Re: "An error occured" in the MatchMaking API

Post by killerboye »

Okay, I asked and he told me, it should be: "speedball-lobby" The same error happens when connected to that dedicated lobby server.
User avatar
killerboye
Posts: 73
Joined: 10 Apr 2013, 15:09
Location: Belgium
Contact:

Re: "An error occured" in the MatchMaking API

Post by killerboye »

Update:

I would say the API doesn't complain anymore :)
Will notify here if this issue happens again.
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: "An error occured" in the MatchMaking API

Post by magnetik »

Perfect :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest