Ask a Question

Ask a Question
Back to All

Match.matchType is null

Hi. I'm trying to get matchType(SimGameType) from Match object, but it has null value.

I tried to get match from MatchmakingHandle and MatchmakingService.GetMatch() both, but both have same contents. (null matchType)

I can only find matchType from matchmaking tickets, but i think it's better if i can get it from Match object.

Is this situation a bug? Or do I need to get matchType from matchmaking tickets?

{
    "Tickets": [
        {
            "ticketId": "891c40b8-872a-46a5-8635-1951e4e62ab0",
            "status": "Searching",
            "created": "2023-08-09T07:39:03.502699600Z",
            "expires": "2023-08-09T07:39:33.502699600Z",
            "players": [
                "1567406182463489"
            ],
            "matchType": "game_types.test_solo",
            "matchId": "",
            "Status": 0,
            "SecondsRemaining": 20
        }
    ],
    "Status": {
        "GameId": "da476885-248b-4761-b1c0-7a9beb99bf1b",
        "SecondsRemaining": 20,
        "Players": [
            "1567406182463489"
        ],
        "MinPlayersReached": true,
        "GameStarted": false
    },
    "State": 1,
    "Match": {
        "matchId": "da476885-248b-4761-b1c0-7a9beb99bf1b",
        "status": "Created",
        "created": "2023-08-09T07:39:12.579885900Z",
        "matchType": null,
        "teams": [
            {
                "name": "player_1",
                "players": [
                    "1567406182463489"
                ]
            }
        ],
        "IsRunning": false
    },
    "MatchmakingIsComplete": true
}
{
    "matchId": "da476885-248b-4761-b1c0-7a9beb99bf1b",
    "status": "Created",
    "created": "2023-08-09T07:39:12.579885900Z",
    "matchType": null,
    "teams": [
        {
            "name": "player_1",
            "players": [
                "1567406182463489"
            ]
        }
    ],
    "IsRunning": false
}