#example of implementing/using backfill
1 messages ยท Page 1 of 1 (latest)
You have to keep calling Approval at least every 20 seconds or the ticket dies
https://docs.unity.com/matchmaker/approve-a-backfill-ticket.html
on the server?
whoever is hosting
Unity Multiplay
yea. then that would be from the server
im using fusion. So have in update check if IsServer and just call a coroutine taht waits calls approval then wait 20sec
something like that?
And how would i go about joining the server that has that ticket
the matchmaker would give the new client the server details just like a fresh match
But how would i go about starting to search for that ticket? In noraml way from what i got from examples is that i create a ticket with queue name and then start search with that ticket for that queue.
OH, so (as server) i would get BackfillTicketid from the GetPayloadAsync... function then by calling ApproveBackFillTicket() it tell that the server has open spaces.. NOW (as client) how do i find that ticket?
so instted of calling CreateTicketAsync i call CreateBackFillTicket ?
for a client they would call CreateTicketAsync
on the server, if the queue doesn't do it for you, you can call createBackfillTicket
so just add the coroutine that appeals the ticket every 20s and everyting is the same as normal
Thx so much
Right
How long have you been playing around with unity GS
Since it went live I guess back 6 months or so
This should be fine??
That should be fine. You'll also need to update the ticket whenever new players join or leave
doing that now
And since im using fusoin i have onPlayerLeft onPlayerJoined im calling the Remove Add in them as server
๐
So 1. client start the search. Finds the server and he is in the game, then 2. starts search finds it prefectly, But after i quit with the 2. client and launch and sign back in and try to find a game gives me this error
Did you update the server when the player 2 left the game? I'm not sure what the max capacity is referring to
Max capacity i just the limit in config where onnly 1 server can run
i think the remove add player functions might be the problem
but why can i join the first time then when i leave restart and try again nothing?
Would that need to be RPC for server. Becouse how can i get playerID to add and remove. or is there a way to get players id that has joined. Currently using Authentification system to get playerID