EOS Sessions SetAllowedPlatformIds erroneous behavior

Hi there,

We’re trying to use EOS_SessionModification_SetAllowedPlatformIds as a way to separate players based on platform, and running into a few issues. Tested on 1.16.4 and the newest 1.17.1.3 version.

  • EOS_OPT_Nintendo (or EOS_OPT_Switch in older sdk version) seem to work correctly to allow switch players and deflect non switch players, but EOS_OPT_PSN does not seem to allow PlayStation players at all (tested only on ps4 so far). Unable to test GDK behavior at the moment.

  • Using EOS_OPT_Epic (which is set to 100) as one of the allowed platform Ids is rejected with the following error:

Error response received from backend. ServiceName=[Sessions], OperationName=[CreateSession], Url=[<Redacted>], HttpStatus=[400], ErrorCode=[errors.com.epicgames.sessiontracker.invalid_session], NumericErrorCode=[UNSET], ErrorMessage=[AllowedPlatforms contains an unknown value, supported values are HashSet(0, 2000, 3000, 4000, 1000)], CorrId=[EOS-llYdMPT3_Em8nzCMx7DrsA-EeWJzZTSWEaFLTFb_q6v_g]

Of note EOS_OPT_Epic is explicitly cited as one of valid allowed platform values:

  • Finally, None of the sessions that have a list of AllowedPlatformIds specified appear in the EOS dev portal matchmaking browser. They are counted in the total sessions/open slots, but won’t appear if sessionId/bucket is specified. Not the worst thing but would be great if they were visible here

Hey, sorry for the delay here!

  • EOS_OPT_PSN → Can you share your logs from your repro? Something worth checking is that the account you are testing isn’t restricted from playing online
  • EOS_OPT_Epic → We fixed this documentation mistake in 1.17.1.3. I’ve copied and pasted the contents of the header file below for convenience. EOS_OPT_Epic is a platform ID used internally by the SDK when looking up the display name. It can’t be used to restrict/allow EGS players in a lobby/session.
  • Are you able to repro the session / dev portal issue with the sessions sample included in the C SDK download (modified to set AllowedPlatformIds)? If you can, and can share repro steps (or a recording), I’ll try to reproduce this on my end.

It might be good for us to work on this privately given that consoles are protected by NDA. Feel free to create a private discussion and tag me there.

Thanks!