Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement enough functions to support the Amazon plugin #20

Closed
AndrewDWhite opened this issue Sep 19, 2022 · 1 comment
Closed

Implement enough functions to support the Amazon plugin #20

AndrewDWhite opened this issue Sep 19, 2022 · 1 comment
Labels
community enhancement New feature or request

Comments

@AndrewDWhite
Copy link
Owner

AndrewDWhite commented Sep 19, 2022

The amazon plugin needs at least the next step function #10 .

@AndrewDWhite AndrewDWhite added enhancement New feature or request community labels Sep 19, 2022
@AndrewDWhite
Copy link
Owner Author

AndrewDWhite commented Nov 13, 2022

Implemented the minimum features for the amazon plugin. To use it do the following.

First start the launcher's main java function.
java -jar target/webGameLauncher-0.0.1-SNAPSHOT-jar-with-dependencies.jar

Start up the plugin.
py -3.7-32 plugin.py token 8488

Wait a few seconds after you see a packet from the plugin requesting a login. It will look something like this (or alternatively wait a few minutes and this should have happened).
2022-11-13 16:34:50.342 INFO 712 --- [pool-2-thread-1] ProcessGalaxyResponse : {"jsonrpc": "2.0", "id": "5", "result": {"next_step": "web_session", "auth_params": {"window_title": "GOG Galaxy 2.0 - Amazon Games Integration", "window_width": 560, "window_height": 710, "start_uri": "file:///C:/Users/andyn/AppData/Local/GOG.com/Galaxy/plugins/installed/amazon_c2cd2e29-8b02-35a9-86fc-3faf90255857/splash/index.html?view=splash", "end_uri_regex": ".*splash_continue.*"}}}

From http://localhost:8080/games click on the 'open notification in new browser' button.

Click on the button that appears on the plugin's configuration page.

Once the new page has closed wait a few seconds and it should have provided the games to the plugin and refresh the http://localhost:8080/games page to have them populate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant