What is the correct way to login to Epic Games Store? #270
Replies: 12 comments 4 replies
-
That looks more or less correct: For launching from the Epic Game's Launcher, you'll need to use |
Beta Was this translation helpful? Give feedback.
-
Hi Andrew, thanks for your quick response. What you have seen in the code is all I am doing, if any additional steps are needed, I am missing them. Maybe the cause of me not being able of replicate the problem is that I have some kind of authentication token cached on my PC from previous versions, and for that reason the persistent login is not failing me, but other people. At this point I am thinking on adding this step:
And sequence it as:
What do you think? |
Beta Was this translation helpful? Give feedback.
-
Yup! that sound like the correct course of action! |
Beta Was this translation helpful? Give feedback.
-
Ok, I will try to upload a compilation using this approach. On another PC I noticed a difference in behaviour. With the old version, the game simply continues to run regardless of login status with no overlay. In the new version, it opens a browser tab asking to link the game to an Epic account. When that step fails, it is no longer able to login (never open that tab again, like something wrong gets cached) and behaves just like the old version. I don't know if it will be enough yet, but it seems like progress. I'll know tomorrow. |
Beta Was this translation helpful? Give feedback.
-
As reference, this is what I got so far. |
Beta Was this translation helpful? Give feedback.
-
Still locked, can't pass the Stage review. Also, I have seen their error logs, and I've been able to replicate their same error on one of my machines. It only happens on a Windows user session that never logged into Epic Store. Looks like that Persistent and Account Portal logins fail, and the callback to Create User returns a callbackInfo.LocalUserId Null.
I have discovered something very important. I must not log in immediately at Start(), I must wait a few seconds to do so and then the login dialog may appear. Otherwise it won't. Just by adding that wait the error above does not happen because the login dialog returns a successful authentication.
|
Beta Was this translation helpful? Give feedback.
-
After working all day on solving the problem, here's an update:
This is so frustrating I am starting to seriously considering on giving up. This is extremely basic stuff, just logging in at the program's startup. I can not be that complicated. This is my current script for now. I will ask them if they even cleaned and revoked their permissions before testing the program, it is the only thing I can think of that can explain this behaviour. |
Beta Was this translation helpful? Give feedback.
-
This is the solution: If you want to publish to the Epic Store on PC you don't have to worry about Persistent login, Account Portal login or anything like that. Just a call to ExchangeCode a few moments after starting the game.
|
Beta Was this translation helpful? Give feedback.
-
I'm glad you were able to resolve this, and I'm sorry that was such a frustrating task. We've been working on creating an FAQ section for our documentation, and I've created a task with a link to this git issue to so that we can hopefully help more users in the future when they run into this kind of issue. |
Beta Was this translation helpful? Give feedback.
-
I would just like to comment that this discussion was very helpful in setting up the plugin so I can get these damn achievements to work, as a first timer to launching a game on the Epic Store. This should be rewritten and placed in documentation so that it can be more visible for new people. I am lucky that I only got around to this now or I'd have to figure this all out from scratch. Unfortunately to get here I had to look at Closed issues which buries the visibility. The entire process for setting up on the Epic Store has been much more difficult than for the Steam Store, thankfully this plugin was here to help. You would think with all the revenue they make from Fortnite they'd be able to streamline a better process than Valve for Steamworks. For anybody reading this in the future, the way I went about it, is to use the EOSLogin.Txt script and attach it to the EOSManager game object. Honestly, this should already be included! Also, don't forget to include a For the contributors here, I don't necessarily have a complaint about the plugin since you guys are doing a big favor for Unity Developers, but in terms of implementing achievements for steamworks, it was essentially just adding the manager game object like the documentation says, and the code to unlock achievements and nothing else. If at all possible, this should be what is required for the plugin. |
Beta Was this translation helpful? Give feedback.
-
Hello @raptorclawgames I'd like to see specifically what
and
besides that, this post was really helpful! |
Beta Was this translation helpful? Give feedback.
-
Hi! I placed the EOSLogin script with the modifications above in my project like @Velite12 said, but I get theses errors in the consoles: LogEOSAuth(Error): Invalid parameter EOS_Auth_Credentials.Token reason: must not be null or empty When I build the game and test it I don't get asked to login, the overlay and achievements don't work. Is there something else I need to do that I am missing? Thank you |
Beta Was this translation helpful? Give feedback.
-
Hello,
I don't know how much about Epic's API and documentation can be exposed here, so If you excuse me I will be vague on the description for the moment.
We are trying to publish on Epic Games Store on PC for the first time. I have been trying to pass the verification for days. They claim that the overlay is not showing and for that reason they can't access achievements data. I have asked for support and the only thing I know so far is that when trying to execute CreateConnectUserWithContinuanceToken the ContinuanceToken is null.
On our own machines the build is acting just fine. The game is connecting to the store and the overlay is displayed. We can check the achievements there, and unlock achievements from the game. Those unlocked achievements are appearing in the Epic dashboard analytics, even in their Live deployment.
So the question is simple, "What is the correct script to login to Epic Games Store?". There must be a really simple way to do it due to that their store is the go-to way to access their services, but I've missed an answer to that question. For now I am guessing that we must assume the persistent login will succeed, and if not try another ways. But I have no clue why is failing in stage and not in dev.
This is the code we are using at the start of the application. We may be missing something obvious, but we are stuck with this issue.
At this point we are having to delay the launch of the game due to this issue, so the situation is a bit tense right now.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions