Advanced Sessions Plugin

Is there a way to update the server for all of the players. like if one of the players spawns something then the other players gets that change

[quote=ā€œ0_ROBO, post:2751, topic:30020ā€]

Is there a way to update the server for all of the players. like if one of the players spawns something then the other players gets that change

Nothing at all to do with the sessions system, normal in engine replication handles that. And generally unless you want client side only objects, you would spawn on the server end.

Hey everyone,
I canā€™t seem to get the voice interface working - I keep getting the below error - how can I fix this?


AdvancedVoiceLog: Warning: Register Remote Talker couldn't get the voice interface!
AdvancedVoiceLog: Warning: Register Local Talker couldn't get the voice interface!
AdvancedVoiceLog: Warning: Start Networked Voice couldn't get the voice interface!

1 Like

Hey ! Thanks for your awesome job dude.
I have a question, but tbh I donā€™t really know if it has something to deal with the plugin or not. I tried a lot of option on the ā€œFind Advanced Sessionā€ node, and I canā€™t make it find the full sessions (when CurrentPlayers is equal or greater than MaxPlayers). Playing with the ā€œMin Slots Availableā€ integer did nothing. I think that the issue is about the Unreal Engine built-in subsystem, but Iā€™m really not sure at all.
Hope thereā€™s a solution !

Have a good day :slight_smile:

[quote=ā€œMik-Amaral, post:2662, topic:30020ā€]

Hey i have a problem,

after having installed the two plugins, and add the line "[/Script/Engine.GameEngine]

  • NetDriverDefinitions = (DefName = ā€œGameNetDriverā€, DriverClassName = ā€œOnlineSubsystemSteam.SteamNetDriverā€, DriverClassNameFallback = ā€œOnlineSubsystemUtils.IpNetDriverā€)

[OnlineSubsystem]
DefaultPlatformService = Steam

[OnlineSubsystemSteam]
bEnabled = true
SteamDevAppId = 480

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName = ā€œOnlineSubsystemSteam.SteamNetConnectionā€

In my projectā€™s DefaultEngine file, nothing works, the game does not want to connect to Steam (4.25.3) :frowning:

Thanks for the tip. I had an issue with The Create Sessions Advanced and Find Sessions Advanced instantly failing (triggering the ā€œOnFailureā€ execution pin). This must be because I set my default platform service to Oculus OSS. Iā€™m checking right now if changing back to Steam fixes it. In any case, it would be nice to have Oculus OSS as a host platform, as they wonā€™t allow apps using steam OSS (developing an VR app, here).

*Just checked and that solved my issue. This line:


[OnlineSubsystem]
DefaultPlatformService = Oculus

Was changed to:


[OnlineSubsystem]
DefaultPlatformService = Steam

[quote=ā€œJonathanArmstrong, post:2755, topic:30020ā€]

Thanks for the tip. I had an issue with The Create Sessions Advanced and Find Sessions Advanced instantly failing (triggering the ā€œOnFailureā€ execution pin). This must be because I set my default platform service to Oculus OSS. Iā€™m checking right now if changing back to Steam fixes it. In any case, it would be nice to have Oculus OSS as a host platform, as they wonā€™t allow apps using steam OSS (developing an VR app, here).

*Just checked and that solved my issue. This line:


[OnlineSubsystem]
DefaultPlatformService = Oculus

Was changed to:


[OnlineSubsystem]
DefaultPlatformService = Steam

Yeah as you found out, nothing to do with the AS functions, they donā€™t alter back end subsystems, just a misconfiguration.

Hey i build a Dedicated Server for Windows and Linux Windows works well but on Linux i have a Problem that he dont get the AppID

[2021.01.21-19.52.12:804] 0]LogOnline: STEAM: [AppId: 0] Game Server API initialized 0
[2021.01.21-19.52.12:804] 0]LogOnline: Warning: STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine. Try running with -NOSTEAM on the cmdline to disable

i had the Same Problem on my Windows Server but fixxed it with installing Steam but how i can do it on Linux?

EDIT:
Okay i found it out i have to go to SteamCMD Path and take the steamclient.so file and put that into my Binary Folder of my Server

Hello,

I am trying to setup a Quick Match feature that looks for games that have some specific settings and that have at least 1 empty slot. I have been able to setup extra settings and filters to know if the session is the right conditions BUT the moment I change the MinSlotsAvailable to 1, I donā€™t get any sessions visible.

Capture3.PNG

I am testing with 2 PCs with 2 separate steam accounts, just for information. And the sessions are all with 10 Public connections and 0 Private.

Thanks!

Iā€™m tracking down an issue where the first ā€œFind Session Advancedā€ search for ā€œAll Serversā€ is extremely slowā€¦

Iā€™ve narrowed the issue down to the RequestLobbyData() call; basically the finding of the listen lobbies is quick but this call effectively times outā€¦ However run the exactly same code again (through a ā€œRefreshā€ button) and the results return in a few secondsā€¦

Iā€™ve tested on various places, including remote machines and itā€™s the same outcomeā€¦

Any ideaā€™s of what is causing this to timeout?

Hi, Iā€™ve been trying to include this plugin in my game that Iā€™m creating for me and group of my friends to play and most of the things that I wanted to add seem to work, but when I tried to find session it just doesnā€™t show any unless itā€™s set to LAN only. So I wanted to ask for help with setting it up.

This is my session finding GAMENAME value is temporary Iā€™ll get it from variable when I make it work

This is how i set creating session. The only extra setting I have right now is GAMENAME which is set to Sareth same as in the filters in session finding.

I donā€™t get session finding failure, it just doesnā€™t find any sessions for some reason. Steam invites work perfectly fine btw. but I would like to make server browser work as well.

@Sarethh It possibly could be related to the same issue I am having above, it could be the ā€œMinSlotsAvailableā€ set to1. Try with 0 and see if it works.
I am still waiting to possibly hear some insight or advice from hopefully I can fix this. As I really want to get only sessions where the player can join.

[quote=ā€œSarethh, post:2761, topic:30020ā€]

Hi, Iā€™ve been trying to include this plugin in my game that Iā€™m creating for me and group of my friends to play and most of the things that I wanted to add seem to work, but when I tried to find session it just doesnā€™t show any unless itā€™s set to LAN only. So I wanted to ask for help with setting it up.

I donā€™t get session finding failure, it just doesnā€™t find any sessions for some reason. Steam invites work perfectly fine btw. but I would like to make server browser work as well.

Check in your log and see if the steam subsystem is even correctly binding, also is that filters array you are passing in to find sessions empty?

Also your friends donā€™t happen to be fairly distant do they? The steam default testing app id is region locked to each clients download region they have set in steam.

[quote=ā€œLatFoued, post:2762, topic:30020ā€]

@Sarethh It possibly could be related to the same issue I am having above, it could be the ā€œMinSlotsAvailableā€ set to1. Try with 0 and see if it works.
I am still waiting to possibly hear some insight or advice from hopefully I can fix this. As I really want to get only sessions where the player can join.

Yeah, it worked after I changed that to 0 and also set results to 2000. I guess Iā€™ll just get (players - current player) and if there is a free slot show it in the list for now as a replacement for min slots.
Thanks!

[quote=ā€œ, post:2763, topic:30020ā€]

Check in your log and see if the steam subsystem is even correctly binding, also is that filters array you are passing in to find sessions empty?

Also your friends donā€™t happen to be fairly distant do they? The steam default testing app id is region locked to each clients download region they have set in steam.

Seems like I had the same issue as @LatFoued but, I also checked things you mentioned just in case.
In the logs everything seems fine, though I only checked lines that had steam in them and looked for errors or something similar.
In the filters array there is a GAMENAME key which is set to Sareth for now, but I will get the value from search bar later.
Friends that I tested it with donā€™t live far from me, but I planned to test it with friends from another country so this prevents future issues.
Thanks!

Heeyyyyā€¦ pretty new here ^^ iā€™ve just started a project, but iā€™m stuck with displaying the steam avatar (like, i can get mine, but when i need to display it in a list of players on a multiplayer game for example) iā€™m struggling to find how i could make it work, any hint ?

(edit: iā€™ve found a solution ^^)

Iā€™m trying to implement multiplayer for iOS devices in LAN mode using this plugin and am running into an issue. Launching in standalone mode from the Editor with 2 players works - I can host a listen server on one of the instances and connect to it on the other. The connecting client loads the proper map and everything seems to work. However, when I run the packaged game on two different iPhones on the same LAN and start a session on one phone, the second phone can see the session (I added a session property to name the server) and can connect (the ā€˜Join Sessionā€™ node ā€˜On Successā€™ pin executes), but the second phone does not load the map. It stays on the start menu map (or perhaps is reloading it).

Iā€™m not sure how to diagnose what is happening (tried ā€˜Launchingā€™ on one of the phones instead of package/install and that fails to connect to the server entirely). There doesnā€™t seem to be a function I can override or an event I can listen for that gets called when the joining client receives the map from the server. So Iā€™m not sure if the server is sending the map and the joining client isnā€™t loading it or if the server never sends it.

If the client just couldnā€™t see the server or wasnā€™t joining then I would suspect network issues, but that doesnā€™t seem to be the case. Also, I know the game has the map installed, because the server phone loads it correctly and I also have a standalone mode in the game that loads the map correctly.

Thanks in advance for any ideas as to how I might diagnose this.

Hi,
Just FYI, in 4.26 we have to add the following to AdvancedSessions.h and AdvancedSteamSessions.h in order for cook for LinuxServer to complete successfully. Not sure if this is environment-dependent, but it threw me for a loop as there were no errors in the build logs.


#include "SteamSharedModule.h"

And ā€œSteamSharedā€ also needs to be defined in projectā€™s Build.cs file.

Thank you for this awesome plugin!
Does 4.26.0 can be used with 4.26.1 as well?

I tried to add AdvancedSessions plugin 4.26 to Unreal Engine 4.26.1. And I got this error.
Anyone knows how to fix this error?

AdvancedSessions.png

[quote=ā€œmvitech, post:2767, topic:30020ā€]

Hi,
Just FYI, in 4.26 we have to add the following to AdvancedSessions.h and AdvancedSteamSessions.h in order for cook for LinuxServer to complete successfully. Not sure if this is environment-dependent, but it threw me for a loop as there were no errors in the build logs.


#include "SteamSharedModule.h"

And ā€œSteamSharedā€ also needs to be defined in projectā€™s Build.cs file.

Yeah that doesnā€™t happen on other platforms, and I really donā€™t want to add it to AdvancedSessions itself as that makes it have a direct tie in to steam and compiling against it.

There are any know limits for the Extra Settings with a steam Session?