Sign In Register

How can we help you today?

Start a new topic
Answered

Team play (2 vs 2)

Hopefully nobody has asked this before (at least I can't find anything like it)...


On our game, we have different multiplayer modes... We have 1 vs 1 and 2 vs 2 battles and our current implementation works fine with that... Player selects a type, he has a skill level, gets queued and gets paired with a player of similar skill. We then use GamesparksRT to establish a connection and play the math...

Now we're improving on that and we want to have team play...

So a player invites another player to join in a party (I've implemented this by creating a team for quick party, joining both player in it, similar to what's described in https://support.gamesparks.net/support/discussions/topics/1000043284), but now I want to make an actual matchmaking request to get randomly paired with 2 other players (another team)... And I have no idea on how to accomplish this...

We could queue both players (on both teams), but that wouldn't make sure we'd be joined to the same match... I've also thought about creating a "TeamPlay" multiplayer match type, in which the lead players would queue for and then give the other players (the invitees) the RT data (token, ip, port) to connect, but that doesn't work because the RT is expecting only two players, not four...


So is there something I'm missing? How can I achieve this?


Best regards,

Filipe



Best Answer
So what would be needed here is to manually create a match and add the players using the SparkMatch.addPlayersById() function.
This will allow a match to be created with two initial players, which will enter a pool to find another two random players.

Unfortunately, we currently dont have team-matchmaking, but we are looking into this.

 


1 person has this question

Hi Felipe, 


Taking care of this one in the ticket system for you. I'll share the solution here for the benefit of other users.


Thanks,

Liam

So what is the solution?

What is the solution to this? You never shared it here.

Answer
So what would be needed here is to manually create a match and add the players using the SparkMatch.addPlayersById() function.
This will allow a match to be created with two initial players, which will enter a pool to find another two random players.

Unfortunately, we currently dont have team-matchmaking, but we are looking into this.

 

Thanks!

Login to post a comment