Matchmaking for singleplayer match with bots

0

Hi,

I am new to GameLift and still learning the system but I managed to get my game up and running and very happy with the results so far. What I was wondering how to do now is how to set up matchmaking in a way that, if certain time elapses and no players are found, a match is started with bots instead.

My game already has bots implemented, and the game server simulates the bots and I've been using this for a long time for testing, however, my attempts so far at the matchmaking ruleset have not yielded what I expected.

My latest ruleset attempt I tried this: "expansions": [{ "target": "rules[FairTeamSkill].maxDistance", "steps": [{ "waitTimeSeconds": 4, "value": 50 }, { "waitTimeSeconds": 7, "value": 100 }] }, { "target": "teams[team_2].minPlayers", "steps": [{ "waitTimeSeconds": 10, "value": 0 }] }]

In the hopes that after 10 seconds, since team_2 would accept 0 players as minPlayers, a match would be started. Maybe I am being naive here lol but not sure what else to try. For clarity, for now my game is just 1v1, so my intention is if no player is found, just start a "multiplayer match" with a bot. I could implement this on the client side obviously, and that might be the best solution in the end, by waiting X seconds, then cancelling the ticket and starting a single player match as if it was a multiplayer match, but I would rather do it on the server so I can do all reward calculation, requests to rest server and what not, from a safer environment.

Is there a way to achieve this?

Thanks for the attention, Best, Allan

질문됨 4년 전229회 조회
2개 답변
0
수락된 답변

How have you defined FairTeamSkill? Using the example here: https://docs.aws.amazon.com/gamelift/latest/developerguide/match-examples.html?

I am assuming you may be using avg in which case this may not work, see https://forums.awsgametech.com/t/average-attribute-of-empty-team/6107

Theres a suggested work around here: https://forums.awsgametech.com/t/flexmatch-ruleset-for-starting-a-game-session-with-a-single-player/8044/4

답변함 4년 전
0

Hi Pip, yes, I was using the example you mentioned. Checked out your link and that is exactly what I was looking for, thank you very much! It worked!

답변함 4년 전
  • Hi dude. How did you solve this problem? The links above are no longer available

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠