#example of implementing/using backfill

1 messages ยท Page 1 of 1 (latest)

summer sky
summer sky
#

whoever is hosting

pulsar moat
#

Unity Multiplay

summer sky
#

yea. then that would be from the server

pulsar moat
#

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

summer sky
#

the matchmaker would give the new client the server details just like a fresh match

pulsar moat
#

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?

summer sky
#

just like normal. it will search for matches using the ticket options

pulsar moat
#

so instted of calling CreateTicketAsync i call CreateBackFillTicket ?

summer sky
#

for a client they would call CreateTicketAsync

#

on the server, if the queue doesn't do it for you, you can call createBackfillTicket

pulsar moat
#

so just add the coroutine that appeals the ticket every 20s and everyting is the same as normal

#

Thx so much

summer sky
#

Right

pulsar moat
#

How long have you been playing around with unity GS

summer sky
#

Since it went live I guess back 6 months or so

pulsar moat
#

This should be fine??

summer sky
#

That should be fine. You'll also need to update the ticket whenever new players join or leave

pulsar moat
#

doing that now

#

And since im using fusoin i have onPlayerLeft onPlayerJoined im calling the Remove Add in them as server

summer sky
#

๐Ÿ‘

pulsar moat
# summer sky ๐Ÿ‘

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

summer sky
#

Did you update the server when the player 2 left the game? I'm not sure what the max capacity is referring to

pulsar moat
#

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?

pulsar moat