question

gtziazas avatar image
gtziazas asked

UE4 Steam Ticket

Hello. I have been trying to detect where I can get the Steam Ticket from Unreal Engine 4 but I cant seem to be able to locate it. I have set up PlayFab plugin on our project and on the developer site of PlayFab with our Greenlit game's AppId and Api. I am trying to utilise the LoginWithSteam.

sdksAuthentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

You can get the ticket via SteamUser()->GetAuthSessionTicket(). It's down in the section on authentication with backend servers in their auth docs: https://partner.steamgames.com/documentation/auth.

Specifically in Unreal, I don't see anywhere they expose this in their online subsystem integration. From reviewing their docs, it would appear that to access this API call, you will need to link the library in directly, so that you can access the SteamUser functionality. https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gtziazas avatar image gtziazas commented ·
@Brendan

Not Helpful! I had already gone through that process to no avail. I guessed that in order to ask for that in your plugin you surely knew a way to get it, otherwise why ask for that particular parameter? Seems I was mistaken. I can not find a way to mark your answer as not an answer but I guess that is censored through you.

0 Likes 0 ·
brendan avatar image brendan gtziazas commented ·

Unfortunately, we can't control what methods Epic exposes in their Unreal Steam implementation. As I said, your best bet would be to link the Steam SDK library directly, in order to make the call to GetAuthSesionTicket in your own code.

0 Likes 0 ·
joshualyons avatar image
joshualyons answered

I know this is an old ticket but found it while I was searching for the same information. I was able to find this: https://www.youtube.com/watch?v=4CgeAxiS19s It tells you how to get the session ticket from steam by adding a little bit of c++ magic to your game. Hope this helps.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Donald Rogers avatar image
Donald Rogers answered

Using UE4 Online Subsystem For Steam


steam-ticket.png (197.3 KiB)
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cooltom2013 avatar image cooltom2013 commented ·

Very helpful image thanks, does game title ID in this context refer to your playfab game ID, or your steam App ID?

0 Likes 0 ·
Donald Rogers avatar image Donald Rogers cooltom2013 commented ·

PlayFab game ID

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.