ArgumentOutOfRangeException
when calling achievementManager.UnlockAchievementManually()
#699
Replies: 2 comments 1 reply
-
Hello @Schu-Box ! My first guess on this is that the achievements aren't being cached. Are you able to confirm the following:
If connect login is working, but it is being created after connect login, you might need to call the |
Beta Was this translation helpful? Give feedback.
-
@Schu-Box Ahoy! Apologies for the delay, let's try n' tackle this! It's understandable how the relationship between Auth and Connect can be confusing, and their names and descriptions alone don't carry things through end-to-end with total clarity. This post will first explain the intended login flow, then how to relate that to your code and situation. Auth Login, then Connect Login
Over at the documentation for Authenticating Players, there is a link over to an explanation by Epic of how Auth Login supports Connect Login. In the Epic Online Services Plugin for Unity, we expose Auth Interface login methods; Persistent Auth, Account Portal, Dev Auth, Exchange Code, and External Auth. First, perform one of these Auth logins successfully. If one doesn't work, your code is free to try another method. These are all either managed through That makes Auth Login our first step. You need to finish an Auth Login correctly and successfully first. To make use of the plugin's features, the next step after a successful Auth Login is a Connect Login. A Connect Login will use the information from a successful Auth Login to get an associated Product User ID, so that you can utilize Epic Online Game Services features. Looking at the And with that, we have a Connect Login. With this done, we're truly logged in, and can make the most of Epic Online Game Services functionality. Relating To Schu-Box's Game's CodeLet's look at the code you included! In Start, it calls out to Inside that When it succeeds, you're running Hope this helps! Let me know if you have any questions. We'll reflect on the teachings here and contemplate how to improve this plugin's documentation. |
Beta Was this translation helpful? Give feedback.
-
I've integrated the plugin for an upcoming game and am able to successfully login to EOS. For some reason, I get an ArgumentOutOfRangeException anytime I attempt to interface with achievements (unlocking or checking for their existence). The below is the code I'm using to unlock the achievement and the error that it spits out.
I've confirmed that the achievements are properly setup in the Epic Dev Portal and that the string argument matches the id of the achievement. I can't figure out why I keep getting this error and haven't been able to find an answer yet so I would greatly appreciate if anyone happens to have ideas for how to resolve.
Beta Was this translation helpful? Give feedback.
All reactions