It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
mrkgnao: snip
avatar
solar_dome: I have a very small collection of gamecard pages saved locally, but I have no idea of the legality of a GOG Archive Project.
As long as have a disclaimer that is easily visible that states that your project is an an unofficial project not affiliated with us then I think you should be OK :)
high rated
avatar
mrkgnao: Something has changed in the way GOG handles cookies. I don't know what, but it now ignores all the cookies sent to it by MaGog. Since quite a bit is dependent on cookies, I have disabled MaGog's updates until I figure out how to work around it (the few things I quickly tried did not work). So for now, no updates.
Oh, so that's you causing so much errors ~4h ago! :P I saw you. Uppercase your currency name. :) Example: US_USD_en

Did I guess right?
Post edited March 15, 2016 by Johny.
avatar
mrkgnao: 3-4 hours ago sounds about right, but my cookies are properly cased (I just checked the code to be sure), e.g. US_USD_en. Unless someone along the route modifies the cookie, but who could do that?

What does the faulty cookie look like? US_usd_en? us_usd_en?

P.S. My cookie code hasn't changed in months. Did you make any change today?
Both are faulty.
Maybe your vendors did update, or smth? We do changes concerning http->https redirects and they have separate cookies - maybe that's that.
high rated
avatar
mrkgnao: I don't really have a vendor. I maintain my own virtual server, which hasn't changed in months either.
I meant vendors like third party stuff. (PHP version, NPM packages etc.)
avatar
mrkgnao: I too assumed it had something to do with HTTP/HTTPS. Now that you mention that they maintain separate cookies, I'm pretty sure that's it. I'll try to debug it tonight.
Good luck!
avatar
mrkgnao: BTW, why do HTTP and HTTPS have separate cookies?
I don't know why - but that is how it works in general. :P localStorage is also not shared between http and https (on browser side).
Although I'm not 50% competent on that topic I guess it's because of security reasons. Someone could take your session cookie with man-in-the-middle attack getting you to http site and he would read the cookie. Evil thing to do.
Post edited March 15, 2016 by Johny.
1. Probably your whole cookie is lowercase (country part is tolerated as lowercase). I don't know why. For me changing cookie works. (editThisCookie Chrome addon)
2. Check this endpoint https://www.gog.com/user/changeCurrency/USD - it will change the currency part of the cookie for you. Probably you would need a little refactor to wait for a callback then.
Post edited March 16, 2016 by Johny.
Try to set $secure to true. Plus - get the cookie after setting it to debug what you have there.

And make sure it's not made for http://www.gog.com but for https://www.gog.com

As last resort - you could use the endpoint I gave in previous post.
Post edited March 16, 2016 by Johny.
avatar
Ghorin: Shouldn't the port be 443 rather than 80 for https?
Ghorin na prezydenta. :)
Post edited March 17, 2016 by Johny.
The limit was not done to block MaGog.

We're showing bundles and promos on frontpage, and on each gamecard you have "BUY SERIES". You could base on what you have.
avatar
mrkgnao: Needless to say, MaGog will not be able to identify today's 20% bundle discount on Samorost 3 (which, by the way, is not reflected in the "BUY SERIES" on the game page).
I see "buy series" on game page of Samorost 2 & 3.
Easiest way would be to get gogData.series_ids from game page (array of series IDs), and use link to add it to cart:
https://www.gog.com/cart/add/series/1613 (remember it won't add products you own)

There are also game IDs: gogData.gameProductSeriesData

I suppose that - technically - it is possible to create discount bundle that you won't catch with those series or on promo spots, but you will get a great part of them.

You could also look for bundles on frontpage:
gog-bundle="[ 123, 123 ]"
Or add all gogData.products from frontpage to cart.


P.S. Samorost 3 is a nice game!
avatar
Johny.: I see "buy series" on game page of Samorost 2 & 3.
avatar
mrkgnao: What I meant is that the buy series does not display the 20% bundle discount. If I actually buy Samorost 2+3, I will get the 20% discount for Samorost, but the game page does not reflect this (unlike other similar bundles in the past).
When I've added Samorost 2 & 3 to the cart - I got 20% discount on Samorost 3 in the cart.
avatar
mrkgnao: GOG. GOG never changes.

Some of you old timers (if there are any left...), who have been around when GOG reached 1,000 catalogue items, may remember that GOG had a serious bug back then that lasted for weeks, whereby despite having more than 1,000 games, the catalogue was unable to display more than 20 pages (i.e. was limited to displaying only 1,000 games). That bug was called the "Y1K" bug.

Well, guess what? GOG now has a "Y2K" bug. Now that GOG has 2,001 games, one would expect page 41 of the catalogue to have one game in it. But, no, the page is empty. It seems GOG is now limited to 40 catalogue pages.

Luckily, I kept the temporary workaround I used for the Y1K bug in MaGog's code. I reactivated it just now and updated the code to adjust for changes that GOG had made over the years. It seems to work, but it's temporary (should be ok for a few weeks) and it has some minor side-effects.

Someone might want to tell GOG...
Just a quick update - this should be fixed.
avatar
mrkgnao: GOG's "by date added" sort order is quite meaningless (except for recently released games) and has always been that way.

[snip]

For reference, Heritage of Kings: The Settlers was the 150th game added to GOG, not the 24th.

Needless to say, MaGog has the ability to sort by the correct addition date (excluding post-legacy games, naturally).
avatar
HunchBluntley: Yeah, I was jesting. I know it's a useless sort order, except perhaps when used for a VERY vague, general overview, but I couldn't resist poking one of the blues about it. It mostly just annoys me when a new game doesn't appear in the "New" tab on the front page.
Could you please name an example of a game (or a few) that didn't appear in "new" tab on the front page when it should be there?