Achievements only unlocking in sample, can't unlock in my own implementation. #245
-
Hello, Apologies for the bother, I'm busy implementing EOS for my first Epic Game Store game release and I have Logging in worked out as well as Cloud Save working, however, I'm having a bit of trouble unlocking my Achievements. They Unlock just fine in the provided sample but when I try to run Here is the code I'm running to unlock the Achievement:
This is happening in both the editor and build, I'm targeting Windows and working on Windows 10 Pro 64bit using Unity 2021.3.6. If you need any other information from me, just let me know. Please, any help on the matter would be greatly appreciated, I need to get the game ready for an early April release so I need to get it submitted asap to get it tested and approved in time and this is literally the last obstacle standing in my way. Apologies again for the bother, I don't know where else to turn or to ask and I desperately need to figure out where I'm going wrong. Thank you in advance for any and all help and advice, I would truly appreciate it :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hello @Skermunkel, That being said, if you can share some logs or more of your code (particularly the login code), I might be able to assist you in pointing out the specific issue that's stopping you from getting achievements unlocked. |
Beta Was this translation helpful? Give feedback.
-
Ok, one thing that I have noticed is that no matter what I try or do, using even the Sample scene, if I load a new scene (having the Achievement manager Don't Destroy On Load so that it moves along to the new scene) then it never unlocks any achievements no matter what I do or how I go about unlocking them and it doesn't give me any errors or warnings or reaches the log indicating a successful unlock. If I then try to use a separate new Prefab in the new scene that contains its own Achievement manager just like the Sample scene (therefore loading in a new one instead of re-using the one created in the original scene when logging in) then I get the following error in EOSAchievementManager.cs:
So it seems the only instance where even the Sample Scene works is if you stay in the same scene, as soon as you change scenes even the Sample Scene's coding doesn't work. Is there something that is perhaps interfereing with the login or user data when changing scenes? Please, any help on the matter would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
I managed to solve this issue. I made a simple mistake in not letting my Singletons game object (EOSManager) be set to Don't Destroy On Load, so it never carried over to the next scene, which messed up the whole EOS setup. Sorry for the bother. |
Beta Was this translation helpful? Give feedback.
I managed to solve this issue. I made a simple mistake in not letting my Singletons game object (EOSManager) be set to Don't Destroy On Load, so it never carried over to the next scene, which messed up the whole EOS setup. Sorry for the bother.