Advanced Sessions Plugin

[quote=“Nostrildumbass, post:2648, topic:30020”]

In case it helps anyone else, I found this, launching my game by right clicking my project file and using “Launch Game” seems to work:

https://forums.unrealengine.com/deve…25-steam-issue

And placing the errors here to help the Google/forum search Gods :smiley:

[593]LogOnline: OSS: Creating online subsystem instance for: Steam
[593]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
[593]LogOnline: OSS: Creating online subsystem instance for: NULL
AdvancedSteamFriendsLog: Warning: CreateSteamIDFromString Had a bad UniqueNetId!
AdvancedSessionsLog: Warning: UniqueNetIdToString received a bad UniqueNetId!

Now the next issue I’m getting is an error saying the SteamShared plugin can’t be found. I do have it enabled in my project (I can disable it and re-enable it fine).

Oh, were you not trying to test in standalone launch? PIE won’t work for steam.

Thought at some point you had said you were using stand alone.

[quote=“, post:2649, topic:30020”]

Oh, were you not trying to test in standalone launch? PIE won’t work for steam.

Thought at some point you had said you were using stand alone.

I’ve been trying every way I can think of :smiley: I posted about my SteamShared plugin error now in the general UE forum since I know that’s not a problem with your plugin. It’s weird. If I right click my project file and launch from there, it all seems to work, but if I use the Launch button from the editor (not Play, where we know this won’t work) or try to package, I get the SteamShared plugin error.

[quote=“, post:2649, topic:30020”]

Oh, were you not trying to test in standalone launch? PIE won’t work for steam.

Thought at some point you had said you were using stand alone.

Hey ,

I’ve gotten through the issues I was having with packaging and testing my game. Now I’m having a strange issue where my client connects fine, gets a character spawned (server sees it), possesses it fine (I used Get Controlled Pawn and print the object name, and it is there) but for some reason the client is stuck staring at the sky and isn’t given “control” of the character. I assume we should use “AdvancedGameSession” as the game session class in the game mode’s class defaults, but I tried that and the base Game Session (neither works). Does this ring any bells? I ran into this long ago when I first set up my multiplayer using the default game sessions, I can’t remember what was wrong.

[quote=“Nostrildumbass, post:2651, topic:30020”]

Hey ,

I’ve gotten through the issues I was having with packaging and testing my game. Now I’m having a strange issue where my client connects fine, gets a character spawned (server sees it), possesses it fine (I used Get Controlled Pawn and print the object name, and it is there) but for some reason the client is stuck staring at the sky and isn’t given “control” of the character. I assume we should use “AdvancedGameSession” as the game session class in the game mode’s class defaults, but I tried that and the base Game Session (neither works). Does this ring any bells? I ran into this long ago when I first set up my multiplayer using the default game sessions, I can’t remember what was wrong.

Advanced sessions has nothing to do with character control, its an interface to the “session finding subsystem” in engine, once you are actually connected all of the networking is handled by the engines base networking (same as Open IP to connect). You don’t need any AS specific things for the actual game to function post connect.

If you are actually possessing the character then no, it should function fine at that point, so I wouldn’t know off the top of my head what is going wrong.

Hi , i have a problem right now

  1. I Download Advanced Sessions i install on MyFolder/plugins/AdvancedSessions
  2. I Activate AdvancedSessions & AdvancedSteamSessions
  3. Also i have online subsystem and steam substystem activated
  4. Work Host & Find sessions and i think all features
  5. I Put on defaultEngine.ini the Finished Settings (https://docs.unrealengine.com/en-US/…eam/index.html)
  6. I try open the game as (Standalone Game with Offline/Server listen/Client) on all methods don’t show Steam overlay.
  7. I Try package game, works, but i can’t open the game.

**Thanks for help.

Edit:

Also i have a strange problem:

When move forward with client it’s okey, but if i try move to sideways or backward i have a problem like a collision?

First is server and second is Client.

(Is ThirdPersonCharacter)

Edit2:
I’m using 4.25.3**

[quote=“davicyyo, post:2676, topic:30020”]

Hi , i have a problem right now

  • I try open the game as (Standalone Game with Offline/Server listen/Client) on all methods don’t show Steam overlay.

  • I Try package game, works, but i can’t open the game.

  • **

    Hi, the Steam subsystem doesn’t work if you use the play button from the editor. It only works if you use the Launch button (which from what I understand is just like packaging on the fly and running) or run your packaged game. It sucks and I think it’s a UE bug Epic know about. Why can’t you open the game after you package it? Any errors?

    I thought I’d help here by explaining he can’t (or at least can’t offer more of his time) help with “development issues”, his plugin doesn’t handle replication itself, it just provides us more access to session info essentially. What you’re seeing that looks like a collision is most likely client/server lag or some conflicting logic where the server is telling the client he can’t move, then allows him to (likely alternating quickly between the two). If you have any sort of booleans on your character like CanWalk, make sure it’s not being updated to False or something while replicating the problem.

    There’s a setting in UE that I recommend disabling that might help, search for “Use less CPU when in background”. Disabling that helped with several performance issues I was having when testing (client loading in and seeing everything start sync took up to 10 seconds, and movign around was choppy pretty similar to your video).

Hello, I have not implemented Advanced Steam Sessions yet in my project. Just a question, is “get ping” working for listen server multiplayer also?
I found a reddit chat about problems of UE4 getting not a correct ping of the session:
https://www.reddit.com/r/unrealengin…nce_ping_9999/
Someone said it is fixed in Advanced Steam Sessions plugin, but someone also said its not. Would be nice to know before implementing your great plugin.
Do it provide to get accurate ping in listen mode? Thanks a lot.

Just a side question. When its working fine, do I have to make the “get ping” call on every client and the replicate the result to the server (to let server know all pings)? Or is it also possible for the server to simply ping all connected players (player controllers) and have all ping of all clients on that way?

[quote=“TheFlow3k, post:2655, topic:30020”]

Hello, I have not implemented Advanced Steam Sessions yet in my project. Just a question, is “get ping” working for listen server multiplayer also?
I found a reddit chat about problems of UE4 getting not a correct ping of the session:
https://www.reddit.com/r/unrealengin…nce_ping_9999/
Someone said it is fixed in Advanced Steam Sessions plugin, but someone also said its not. Would be nice to know before implementing your great plugin.
Do it provide to get accurate ping in listen mode? Thanks a lot.

Just a side question. When its working fine, do I have to make the “get ping” call on every client and the replicate the result to the server (to let server know all pings)? Or is it also possible for the server to simply ping all connected players (player controllers) and have all ping of all clients on that way?

The ping not returning was an issue with steam servers, they “fixed” that when they added in the steam authentication setup where it should return the correct ping now if you are using steam auth.

[quote=“Nostrildumbass, post:2654, topic:30020”]

Hi, the Steam subsystem doesn’t work if you use the play button from the editor. It only works if you use the Launch button (which from what I understand is just like packaging on the fly and running) or run your packaged game. It sucks and I think it’s a UE bug Epic know about. Why can’t you open the game after you package it? Any errors?

I thought I’d help here by explaining he can’t (or at least can’t offer more of his time) help with “development issues”, his plugin doesn’t handle replication itself, it just provides us more access to session info essentially. What you’re seeing that looks like a collision is most likely client/server lag or some conflicting logic where the server is telling the client he can’t move, then allows him to (likely alternating quickly between the two). If you have any sort of booleans on your character like CanWalk, make sure it’s not being updated to False or something while replicating the problem.

There’s a setting in UE that I recommend disabling that might help, search for “Use less CPU when in background”. Disabling that helped with several performance issues I was having when testing (client loading in and seeing everything start sync took up to 10 seconds, and movign around was choppy pretty similar to your video).

Thank you very much for answering me, I have reviewed the code of the ThirdPersonCharacter and I have some Booleans, however none affects the movement of the player walking, the curious thing about that error, is that it happens when moving to the sides and back, if it walks straight if it works, how it said above is as which one brings it by default ThirdPersonCharacter.

I see that if I give it to launch in effect a kind of packaging, I have given it but I skip an error of online subsystem


LogPlayLevel: Error: LogPluginManager: Error: Unable to load plugin 'OnlineSubsystemSteam'. Aborting.
LogPlayLevel: Error: ERROR: Client exited with error code: 1
PackagingResults: Error: Launch failed! Unknown Error

Follow everything activated both advanced sessions + advanced steam sessions and online subsystem + online subsystem steam

I don’t get any errors when running the packaged game, it directly doesn’t open me or open the epic games launcher.

I have disabled the CPU option, but I do not see any improvement effect, however it only works poorly in Standlone, in viewport there is no delay.

Thank you

[quote=“, post:2656, topic:30020”]

The ping not returning was an issue with steam servers, they “fixed” that when they added in the steam authentication setup where it should return the correct ping now if you are using steam auth.

Thank you. You mean it works fine now Advanced Steam Sessions or it now also working fine in UE4 built in steam session subsystem?

[quote=“davicyyo, post:2657, topic:30020”]

Thank you very much for answering me, I have reviewed the code of the ThirdPersonCharacter and I have some Booleans, however none affects the movement of the player walking, the curious thing about that error, is that it happens when moving to the sides and back, if it walks straight if it works, how it said above is as which one brings it by default ThirdPersonCharacter.

I see that if I give it to launch in effect a kind of packaging, I have given it but I skip an error of online subsystem


LogPlayLevel: Error: LogPluginManager: Error: Unable to load plugin 'OnlineSubsystemSteam'. Aborting.
LogPlayLevel: Error: ERROR: Client exited with error code: 1
PackagingResults: Error: Launch failed! Unknown Error

Follow everything activated both advanced sessions + advanced steam sessions and online subsystem + online subsystem steam

I don’t get any errors when running the packaged game, it directly doesn’t open me or open the epic games launcher.

I have disabled the CPU option, but I do not see any improvement effect, however it only works poorly in Standlone, in viewport there is no delay.

Thank you

I was having the same issue about the OnlineSubsystem plugin not being found, but I’d get a window at launch showing me the error (if you look back just a page or two my post about it is here somewhere). It took me a lot of trial and error to fix it to where I don’t even know what did fix it. Try disabling all the OnlineSubsystem plugins in your plugins settings in UE, close UE, re-open your project, re-enable all the plugins, and re-package then. That was one of the things I remember doing.

https://forums.unrealengine.com/community/community-content-tools-and-tutorials/41043-advanced-sessions-plugin/page170#post1806894

[quote=“Nostrildumbass, post:2659, topic:30020”]

I was having the same issue about the OnlineSubsystem plugin not being found, but I’d get a window at launch showing me the error (if you look back just a page or two my post about it is here somewhere). It took me a lot of trial and error to fix it to where I don’t even know what did fix it. Try disabling all the OnlineSubsystem plugins in your plugins settings in UE, close UE, re-open your project, re-enable all the plugins, and re-package then. That was one of the things I remember doing.

https://forums.unrealengine.com/comm…70#post1806894

Nothing works, finally i can export game, i open and Steam don’t show, also don’t work Online subsystem (No Logs).

I disabled online subsystem + steam and Advanced sessions + steam, nothing works :frowning:

Warnings:



LogPlayLevel: Warning: LogSteamShared: Warning: SteamAPI failed to initialize, conditions not met.
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUtils() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUser() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamFriends() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamRemoteStorage() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUserStats() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamMatchmakingServers() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamApps() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamNetworking() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamMatchmaking() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steam API failed to initialize!
LogPlayLevel: Warning: LogModuleManager: Warning: ModuleManager: Module 'OnlineSubsystemNULL' not found - its StaticallyLinkedModuleInitializers function is null.
LogPlayLevel: Warning: LogOnline: Warning: OSS: TryLoadSubsystemAndSetDefault: LoadSubsystemModule([NULL]) failed



*Errors to launch, i can’t join but Steam overlay not show

Bad moment for make games on UE4…

Edit:
All works now… idk why :confused: just disabled all and works :frowning:

[quote=“davicyyo, post:2660, topic:30020”]

Nothing works, finally i can export game, i open and Steam don’t show, also don’t work Online subsystem (No Logs).

I disabled online subsystem + steam and Advanced sessions + steam, nothing works :frowning:

Warnings:



LogPlayLevel: Warning: LogSteamShared: Warning: SteamAPI failed to initialize, conditions not met.
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUtils() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUser() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamFriends() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamRemoteStorage() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamUserStats() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamMatchmakingServers() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamApps() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamNetworking() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steamworks: SteamMatchmaking() failed!
LogPlayLevel: Warning: LogOnline: Warning: STEAM: Steam API failed to initialize!
LogPlayLevel: Warning: LogModuleManager: Warning: ModuleManager: Module 'OnlineSubsystemNULL' not found - its StaticallyLinkedModuleInitializers function is null.
LogPlayLevel: Warning: LogOnline: Warning: OSS: TryLoadSubsystemAndSetDefault: LoadSubsystemModule([NULL]) failed



*Errors to launch, i can’t join but Steam overlay not show

Bad moment for make games on UE4…

Edit:
All works now… idk why :confused: just disabled all and works :frowning:

Development in general is a frustrating experience XD Only those that can endure the frustration, never give up, and push through the obstacles make it.

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:

[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:

Are you previewing in editor or launching from a packaged build? The Steam integration doesn’t work in PIE due to a bug

[quote=“Nostrildumbass, post:2663, topic:30020”]

Are you previewing in editor or launching from a packaged build? The Steam integration doesn’t work in PIE due to a bug

Its not a bug, the editor would have to boot up the steam subsystem on launch and manage it with sub windows for it to work with a normal editor window. You can PIE with the standalone mode and it will load the steam overlay and init the subsystem.

[quote=“, post:2664, topic:30020”]

You can PIE with the standalone mode and it will load the steam overlay and init the subsystem.

Interesting, I don’t think it works for me in Standalone mode, I have to use Launch. I’ll look into why that may be.

does not work when added to project plugins or engine plugins with ue4 4.25

I am looking for a steam ladder board (leader board) to see high scores of steam friends and compare your high scores with steam friends high scores.

  • Has “Advanced Sessions Plugin” implemented to read steam ladder board scores and read the scores from steam-friends?
  • And to write own high score to steam ladder board?
    As I read already, there is also UE4 built-in ladder board blue print support. But I only found “get” and “set” integer values. I think only for the own player score. But I do not find to get all high scores in overall. Or all high scores of friends. Are BP nodes inside “Advanced Sessions Plugin” for that?
    I read the front page (first page) of this thread, but no steam leader board functions are listed there. I hoped it’s implemented in this great plugin. :frowning:

Some additional questions:

  • Does Steam Ladderboard only allow integers, or it is possible to have also a column with “text” to store some custom text into the leader board entry?
  • Does Steam Ladderboard allow to filter by properties like country?
    Perhaps any tutorials available for this?

Edit: Now tested a bit with “Advanced Sessions Plugin” and added it to my project, but as I suggested I see no leaderboard support. Somebody who read this perhaps can give me an advice which market place asset could bring leader board support to BP:

Or someone has a good and easy example how making “ReadLeaderboardsAroundRank ,ReadLeaderboardsAroundUser, ReadLeaderboardsForFriends” available from BP for steam online subsystem?
https://docs.unrealengine.com/en-US/…rds/index.html

Hi everyone! I have a problem with my project. Im package my project. All four people are my friends in Steam. But i see server only 1 friends and he sees my server. The other two friends don’t see any servers? What could be the problem? Sorry for my English