#Basicly when session owner leaves and

1 messages ยท Page 1 of 1 (latest)

lethal crane
#

This should not be possible. When a client leaves, its owned objects will either be despawned or Distributed among the remaining clients

weak saffron
#

i thought so as well...

#

but yet its happening on all versions i have right now...

#

the only way to ifx it i found is to remove the lobby scripts complety and have only the DA

#

but then tehre is no way to list open sessions currently...

lethal crane
#

You should not have a separate Lobby. DA Sessions include a lobby

weak saffron
#

so funnly it needs to be something related to lobby taht has changed lately, as before it was working and now it is not even with old code

weak saffron
lethal crane
#

Check out the widgets package for a Session List prefab you can use quickly

#

You manage everything through a session. You should not be acting directly on a lobby.

weak saffron
#

but... can i get a list of sessions avalible to join for a new client?

#

is it like a full lobby? ๐Ÿ˜…๐Ÿ˜…

#

i think i dont have a session manager

lethal crane
#

Yup that exactly what it is

weak saffron
#

im creatking the session by using

lethal crane
#

IMultiplayService calls SessionManager under the hood

#

If you dig into the source code

weak saffron
#

alright ๐Ÿ˜Š

#

how can i get the widgets than? ๐Ÿ˜…๐Ÿ˜…

lethal crane
#

Might just be in a the package manager by now

weak saffron
#

ok thank you very much ๐Ÿ˜Š

weak saffron
#

Can you tell me also how to use custom session properties like i had in the lobby? ๐Ÿ˜…๐Ÿ˜…

#

im creating a session now and i see it in the list but ealier i was able to just use some lobby data to have it all in one place and be able to show for example the game mode in lobby for everyone

#

but now with widgets i have no idea how to add a custom property so the session

#

as it looks like i can not edit the EnterSessionData in any way...

#

id like to acces the AdditionalOptions that for exmale the match maker property uses... and add some custom properties like game mode to it, that will be visible to all players in the lobby list view ๐Ÿ˜…

#

but there seems to be no donumentation on this property.... or at least i can not find it anywhere

weak saffron
#

and it shuld be an option as it uses the lobby service in the backround either way....

weak saffron
#

and even if i modifiy it im not sure it it gives me anythig as sessions are listed using ISessionInfo that does not containg session properties...

lethal crane
#

No, with sessions you can only use QuerySessionAsync() to filter the custom data. So you can search for a specific game mode, but you can't list all game modes and scroll through them.

#

I guess you could run the query for each game mode and add each results to the same session list

#

Just be careful of the rate limit

weak saffron
#

but the QuerySessions is using the ISessionInfo data type, so i can not get the actual properties afaik..

#

i was able to edit the EnterSessionData

#

and added it into the session properties

#

but... i have no way of lisitng it by using the ISessionInfo in the session list

#

but i can not force it to give me the session instead of sessionInfo

#

i mean.. i can but it will break many things as its internal part of the multiplater service ๐Ÿ˜…๐Ÿ˜…

#

and i dont know yet how to add another command that will querry the sessions instead of the session info

#

or weather is it even correct approach to get session properties to show on session list

#

as i want to just show my custom session properties to show here along side of the sesion info like the amount of players in the session

lethal crane
weak saffron
#

ok i have managed to do it regardles ๐Ÿ˜…๐Ÿ˜… i had to write my own variables for it.. but it works ๐Ÿ˜…๐Ÿ˜… but good to know there isnt just a simpler way ๐Ÿ˜‰