vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.2k stars 139 forks source link

[EPIC STORE] age confirmation with age dropdown #275

Open Blazzycrafter opened 6 months ago

Blazzycrafter commented 6 months ago

if the store wants an birthday then this does NOT enable the "confirmation"....

i must use the Show env to set the birthday

image

but after the set per dropdown the confim butten got detected as enabled and continued as normal

vogler commented 6 months ago

I don't remember seeing this. Is this a one time prompt or does it appear every time? I've also already claimed Fallout 3, so can't really inspect it. Can you add some screenshots of the DOM (right click > Inspect)?

vogler commented 6 months ago

Ok, no, I get it too if I open the page in incognito mode:

image

Sadly no input element but some custom element. Maybe we can set some cookie to not show it. If I'm logged in in Chrome, I don't get it.

voruti commented 6 months ago

I got it yesterday within the Epic Games Launcher (where I'm logged in).

And just now as well...

yoshimo commented 6 months ago

HasAcceptedAgeGates seems a likely cookie


HasAcceptedAgeGates
EPIC SUGGESTED RATING:18,USK:9007199254740991```
vogler commented 6 months ago

Should be fixed. Luckily the USK value doesn't seem to matter.

damiantrx commented 6 months ago

Unlucky, looks like it still exists after previously running with a date of birth setting.

Free games: [
  'https://store.epicgames.com/en-US/p/the-outer-worlds-spacers-choice-edition'
]
  This game contains mature content recommended only for ages 18+
  Got "To continue, please provide your date of birth" - This shouldn't happen due to cookie set above. Please report to https://github.com/vogler/free-games-claimer/issues/275
--- Exception:
page.click: Timeout 60000ms exceeded.
Call log:
  - waiting for locator('button:has-text("Continue")')
  -   locator resolved to <button disabled class="css-1c0mm3y" aria-disabled="true…>…</button>
  - attempting click action
  -   waiting for element to be visible, enabled and stable
  -     element is not enabled - waiting...

    at /fgc/epic-games.js:155:18
yobson1 commented 6 months ago

Also still having this issue

Free games: [
  'https://store.epicgames.com/en-US/p/the-outer-worlds-spacers-choice-edition'
]
  This game contains mature content recommended only for ages 18+
  Got "To continue, please provide your date of birth" - This shouldn't happen due to cookie set above. Please report to https://github.com/vogler/free-games-claimer/issues/275
Current free game: The Outer Worlds: Spacer's Choice Edition
  Not in library yet! Click GET.
  Claimed successfully!

Continued successfully after I manually input a DoB

vogler commented 6 months ago

Ok, strange, setting the cookie worked fine for 'Fallout 3' for me and 'The Outer Worlds' is USK 16 for me, so no problem. For Fallout, it did show the age confirmation box, but then immediately closed it again. However, logic-wise it shouldn't be a timing issue. Can you please post the value of your HasAcceptedAgeGates cookie? Mine is still the one from Fallout:

image

For 'The Outer Worlds' I'm not even getting the mature content message, so the age rating probably depends on the region of your account (mine is DE).

$ node epic-games.js
2023-12-26 16:20:54.555 started checking epic-games
startup: 3.360s
Signed in as ...
login: 3.635s
Free games: [
  'https://store.epicgames.com/en-US/p/the-outer-worlds-spacers-choice-edition'
]
Current free game: The Outer Worlds: Spacer's Choice Edition
  Not in library yet! Click GET.
  Claimed successfully!
claim game: 13.278s
claim all games: 13.842s
yobson1 commented 6 months ago

What it's set as while claiming today's game, Human Resource Machine: image

What it's set as in my own browser after confirming a DoB on The Outer Worlds store page: image

yobson1 commented 6 months ago

Having the same issue again today with the Saints Row game being claimed

yoshimo commented 6 months ago

egs_age_gate_dob contains the date of birth EGS_VAULT_UNLOCK is also a cookie that might play into it.

vogler commented 6 months ago

Strange, for me, for Saints Row, the cookie that's already set is enough and only when I comment it out, I get the age confirmation.

vogler commented 6 months ago

It will now enter a date of birth if the age confirmation pops up. Maybe we can still figure out which cookies prevent this afterwards.

yobson1 commented 6 months ago

I think it's region specific like you suggested before. I believe USK is the ratings board in Germany, right? PEGI is the ratings board in most of Europe. I'm in the UK and when I entered a DoB HasAcceptedAgeGates had PEGI: 18 instead of a USK value.