FAForever / FAForever/server

RFC: Take matchmaking requests from RabbitMQ

Aperta
#675 10 commenti 0 reazioni 1 assegnatario Rivendicata da @1-alex98 Vedi su GitHub
enhancement proposal
Lingua principale
Python
Stelle
72
Fork
84
Merge medio
5h 11m
PR unite (30g)
1

Descrizione

This should be the missing piece in my envisioned galactic war architecture.

Similar to ladder or tmm I need a way to force players into an automatch (no lobby).
As this is not always successfull, I also need a feedback loop.

So we should implement a rabbitmq protocol such as:

**routing key request.match.create:**

```json
{
"requestId": "",
"matchmakerQueueId": 1,
"featuredMod": 13,
"gameName": "Battle on Yavin IV #12",
"mapName": "NeroxisMapGenerator_1.11.2_magic_seed",
"participants": [
{
"playerId": 13443,
"team": 2,
"slot": 1,
"faction": "aeon"
},
{
"playerId": 13443,
"team": 3,
"slot": 2,
"faction": "uef"
},
]
}
```

**routing key success.match.create:**
```json
{
"requestId": "",
"gameId": 98765
}
```

**routing key error.match.create:**
```json
{
"requestId": "",
"errorCode": 123,
"args": [
{
"playerId": 13443
}
]
}
```

The error codes need to be defined precisely as it might cause punishments if it fails because a player was already in a game or similar.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.