galaxy-integration-origin icon indicating copy to clipboard operation
galaxy-integration-origin copied to clipboard

Origin is discontinued, needs an update to support new Ea App

Open KowabungaOfficial opened this issue 3 years ago • 67 comments

https://www.ea.com/ea-app

KowabungaOfficial avatar Dec 21 '22 09:12 KowabungaOfficial

Same problem here. Can't login as Origin is no longer supported.

Judassem avatar Aug 08 '23 19:08 Judassem

same problem

Tjoeser avatar Aug 15 '23 17:08 Tjoeser

Any solution?

josuelmm avatar Aug 21 '23 04:08 josuelmm

I guess no one gives a shit.

Freebeard77 avatar Aug 23 '23 02:08 Freebeard77

I have the same issue, it won't accept my login credentials even though they're correct. Will this ever be fixed? EA/Origin is the only launcher that can't sync, so my library will never be complete..

Karmidzhanov avatar Aug 24 '23 16:08 Karmidzhanov

I have the same issue, it won't accept my login credentials even though they're correct. Will this ever be fixed? EA/Origin is the only launcher that can't sync, so my library will never be complete..

Same problem I am having... There doesn't seem to be support for the extended security code authorization which the EA app uses.

RoninX74 avatar Aug 26 '23 08:08 RoninX74

I'm guessing whoever developed this extension is no longer supporting it. I just noticed the date this thread was started. it's been over 3/4 of a year and nothing. Sad!

RoninX74 avatar Aug 27 '23 21:08 RoninX74

If anyone knows how to use the new login url in plugin.py it might work. I dont have a clue how to do it probably.

https://signin.ea.com/p/juno/login?execution=e2004275468s1&initref=https%3A%2F%2Faccounts.ea.com%3A443%2Fconnect%2Fauth%3Finitref_replay%3Dfalse%26display%3DjunoWeb%252Flogin%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%252Fwww.ea.com%252Flogin_check%26locale%3Dde_DE%26client_id%3DEADOTCOM-WEB-SERVER

fireballhh avatar Sep 16 '23 11:09 fireballhh

I tried it but I can't make it work either

Tjoeser avatar Sep 17 '23 18:09 Tjoeser

I'd suggest either looking at how Playnite deals with the API, or use the method described here to pull the data out of the local database. Unfortunately, the latter method requires a bit of effort to decrypt it.

Nutzzz avatar Sep 17 '23 21:09 Nutzzz

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

BellezaEmporium avatar Sep 18 '23 16:09 BellezaEmporium

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

How do I try this out? What do I need to do?

Judassem avatar Sep 18 '23 17:09 Judassem

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

How do I try this out? What do I need to do?

Simply copy and paste the code to Users\ your username \AppData\Local\GOG.com\Galaxy\plugins\installed\origin_7f53219b-4e2b-4591-9f4f-dfc5f4ba9eb0

BellezaEmporium avatar Sep 18 '23 19:09 BellezaEmporium

Simply copy and paste the code to Users\ your username \AppData\Local\GOG.com\Galaxy\plugins\installed\origin_7f53219b-4e2b-4591-9f4f-dfc5f4ba9eb0

To be clear, you click the green Code button, choose Download ZIP, extract the file, then copy the contents of the "src" folder over an existing install of the Origin plugin, and overwrite the duplicate files.

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

So, it's a start. I'm able to login again now, but after [trying to start a game] the EA app opens I eventually get "You don't have access - This title may have been downloaded to your device by another user who owns the game. Log in to a different account or restart the app to try again" on two games I tried. I'm able to open them just fine from within the app.

If I'm not mistaken, ~all you have to do is switch from using the OfferId (Origin.OFR.50.xxxxxxx) to the SoftwareId (Origin.SFT.50.yyyyyyy) instead. [Note: not the same number.]~ EDIT: I was mistaken.

Nutzzz avatar Sep 18 '23 23:09 Nutzzz

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

So, it's a start. I'm able to login again now, but after the EA app opens I eventually get "You don't have access - This title may have been downloaded to your device by another user who owns the game. Log in to a different account or restart the app to try again" on two games I tried. I'm able to open them just fine from within the app.

If I'm not mistaken, all you have to do is switch from using the OfferId (Origin.OFR.50.xxxxxxx) to the SoftwareId (Origin.SFT.50.yyyyyyy) instead. [Note: not the same number.]

I'll check the issue tomorrow. Will compare with the titles I have.

BellezaEmporium avatar Sep 19 '23 00:09 BellezaEmporium

Simply copy and paste the code to Users\ your username \AppData\Local\GOG.com\Galaxy\plugins\installed\origin_7f53219b-4e2b-4591-9f4f-dfc5f4ba9eb0

To be clear, you click the green Code button, choose Download ZIP, extract the file, then copy the contents of the "src" folder over an existing install of the Origin plugin, and overwrite the duplicate files.

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

So, it's a start. I'm able to login again now, but after the EA app opens I eventually get "You don't have access - This title may have been downloaded to your device by another user who owns the game. Log in to a different account or restart the app to try again" on two games I tried. I'm able to open them just fine from within the app.

If I'm not mistaken, all you have to do is switch from using the OfferId (Origin.OFR.50.xxxxxxx) to the SoftwareId (Origin.SFT.50.yyyyyyy) instead. [Note: not the same number.]

Thank you, Nutzzz! I would not have figured that out on my own. I initially tried to copy the entire contents of the zip file into the directory. That obviously didn't work. :P

Freebeard77 avatar Sep 19 '23 01:09 Freebeard77

Simply copy and paste the code to Users\ your username \AppData\Local\GOG.com\Galaxy\plugins\installed\origin_7f53219b-4e2b-4591-9f4f-dfc5f4ba9eb0

To be clear, you click the green Code button, choose Download ZIP, extract the file, then copy the contents of the "src" folder over an existing install of the Origin plugin, and overwrite the duplicate files.

Here's my attempt at it : https://github.com/BellezaEmporium/galaxy-integration-ead

So, it's a start. I'm able to login again now, but after [trying to start a game] the EA app opens I eventually get "You don't have access - This title may have been downloaded to your device by another user who owns the game. Log in to a different account or restart the app to try again" on two games I tried. I'm able to open them just fine from within the app.

If I'm not mistaken, all you have to do is switch from using the OfferId (Origin.OFR.50.xxxxxxx) to the SoftwareId (Origin.SFT.50.yyyyyyy) instead. [Note: not the same number.]

On first checkings, it is still Origin.OFR.50.xxxxxxx being used. However, all the links that were used on the Origin variant are different on EA Desktop.

ex : PID, Entitlements etc etc... are now on https://service-aggregation-layer.juno.ea.com/graphql

image

What's useful with GraphQL is that you can ask for any data you want, as long as your JSON query is correct and can be manipulated by the server to retrieve results.

Some others however are different :

image

The main issue seems to be on the "origin2://" hyperlinks. While it uses the same kind of ID, I don't think it works. Let me do further checks.

EDIT : https://github.com/lutris/lutris/issues/4996 seems to point out the issue you're mentioning @Nutzzz. I'll have to ask directly through EA's new GraphQL in order to get the correct gameID for launching.

BellezaEmporium avatar Sep 19 '23 08:09 BellezaEmporium

Ah, sorry, my assumption was incorrect.

(The launcher I was working on uses the .exe files instead of the protocol to launch a game, but when moving from the Origin platform to EA, I had to rely on the Software ID rather than the Offer ID to get the file location; I guessed incorrectly that a similar change in the protocol launch method was necessary.)

Nutzzz avatar Sep 19 '23 15:09 Nutzzz

Ah, sorry, my assumption was incorrect.

(The launcher I was working on uses the .exe files instead of the protocol to launch a game, but when moving from the Origin platform to EA, I had to rely on the Software ID rather than the Offer ID to get the file location; I guessed incorrectly that a similar change in the protocol launch method was necessary.)

No worries.

It's a few more steps in order to make it work properly I suppose. One suggested using the EA API, though I only seem to find the correct IDs on the "_Installer" folders of already installed games. While it should normally be seen from the API, I can't seem to put my hand on it. The different GraphQL queries i've catched make no such mention.

BellezaEmporium avatar Sep 19 '23 15:09 BellezaEmporium

The link you provided seems to indicate that you should get a ContentID in the .json response.

Nutzzz avatar Sep 19 '23 16:09 Nutzzz

Maybe if I manually ask for it. Let me give it a try.

BellezaEmporium avatar Sep 19 '23 16:09 BellezaEmporium

I only get Origin.OFR results. However, DLCs and other results seem to work. Had the "Battlefront upgrade DLC" pop up when I tried launching stuff.

BellezaEmporium avatar Sep 19 '23 17:09 BellezaEmporium

Hm, I don't really have any experience with the API, but FWIW it looks like you can take the OFR and make a request to https://api1.origin.com/ecommerce2/public/Origin.OFR.50.xxxxxxx/en_US and from there you can pull out "publishing" > "publishingAttributes" > "contentId"

Nutzzz avatar Sep 19 '23 18:09 Nutzzz

Hm, I don't really have any experience with the API, but FWIW it looks like you can take the OFR and make a request to https://api1.origin.com/ecommerce2/public/Origin.OFR.50.xxxxxxx/en_US and from there you can pull out "publishing" > "publishingAttributes" > "contentId"

Either financeId or projectNumber seems to be quite accurate.

or, indeed,

contentId | "194908"

BellezaEmporium avatar Sep 19 '23 19:09 BellezaEmporium

In the case of https://api1.origin.com/ecommerce2/consolidatedentitlements/ <- projectId seems to be quite close.

BellezaEmporium avatar Sep 19 '23 19:09 BellezaEmporium

OK, i've found it. I think i've corrected the main issue. ~~Now the main goal is to install the game when wanted, and launch it when it's available. Some are quite weird in the way it works (Battlefield games got like tons of IDs).~~

EDIT : OK, problem is solved :)

BellezaEmporium avatar Sep 19 '23 20:09 BellezaEmporium

@Nutzzz please try latest commit and tell me if it works.

I've ditched the OfferID to ContentID. Tests were successful on my side. If it works for you then I suppose the plugin is fully fixed :)

BellezaEmporium avatar Sep 19 '23 21:09 BellezaEmporium

I had the same as Nutzzz with the error saying that its not installed on my account. Now that I tried your latest commit it seems to work but all the games from ea have the "Install" button.

So the installed ones and the noninstalled ones.

But the ones that I have installed just start when I press the button. The ones that aren't installed give me an error in the ea app saying "Game not installed".

Do you know what's going on?

Tjoeser avatar Sep 19 '23 21:09 Tjoeser

I must say I stumbled upon this issue too... though I do not know how that's triggered out in Galaxy. I'll need to do further checking, as it might be manifest-related or Windows stuff.

BellezaEmporium avatar Sep 19 '23 21:09 BellezaEmporium

For the 2 EA games I had installed originally, Galaxy sees them as installed and now I can use Play to start them with no issues.

However, I'm given a login prompt every time Galaxy opens, and I get "Connection lost." I can try Connect again and it goes to Offline. If I Disconnect and re-Connect, I can login and it will stay connected until I close Galaxy, and then the behavior repeats on the next launch. Occasionally Galaxy and all the plugins go offline entirely; I hadn't seen this behavior until now, and it's not my Internet connection. I think it came back on it's own eventually one time, but if I close and re-open Galaxy during one of these I have to re-login to GOG.

I was able to install a few games using the arrow or the top button, however they didn't show as installed even after a Disconnect/Connect.

Still, good work so far!

Nutzzz avatar Sep 19 '23 23:09 Nutzzz