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
adaliabooks: Have any of you tried this / had these problems in Chrome (or a Chrome based browser) or is this a Firefox issue?
If it is purely in Firefox that gives me an idea of what to look for (as Firefox has problems with certain things).
Only using Firefox.
high rated
avatar
adaliabooks: 1) Can you scroll to a page that's not showing and then upload the output of the afExportLog() function (I want to check whether the functions are being called more than they should, I can't see any sign of that from my end, but it may not be happening for me for whatever reason)
1) Output:

Settings Initilised
AF-style setting changed
navbar-fundamentals-position setting changed
Features Loaded
/account
Account
Change Download Links called
setDownloadOptions called
setDownloadOptions finished
Before $compile function
In $compile
library-downloader-links setting changed
afGetData Called
Manual sorting selected, retrieving products
library-games-per-page setting changed
Allow Manual Sort
library-manual-sort setting changed
compileLibrary called
Templates Compiled
Legacy Library View
Change template event called
Legacy Library Grid View
library-style setting changed
library-shelf-colour setting changed
addTopPagination called
library-top-pagin setting changed
Process Manual Sort
Legacy template set
Allow Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
Pop up shown
Changelog shown
Library shown
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
afGetData Called
Manual sorting selected, retrieving products
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Process Manual Sort
Manual Sort Products
Retrieve Manual Sort Order
Manual Sort Done
Allow Manual Sort
high rated
avatar
adaliabooks: 2) Can you check the extra AJAX calls on the later pages and tell me if they are all the same?
I'm wondering whether they're accidentally (somehow) calling a different sort order or filtering setting and we're getting duplicates that way.
2) They all look the same to me. Here is the log when loading page 7 (displays):

GET https://www.gog.com/account/getFilteredProducts?h...=0&mediaType=1&page=7&sortBy=title&totalPages=13

200 OK
451ms
c1a69ab...0d68.js (line 7)
afGetData Called
gm_script (line 34)
Manual sorting selected, retrieving products
gm_script (line 34)
8
Process Manual Sort
gm_script (line 34)
GET https://www.gog.com/account/getFilteredProducts?h...=0&mediaType=1&page=8&sortBy=title&totalPages=13

200 OK
449ms
c1a69ab...0d68.js (line 7)
GET https://www.gog.com/account/getFilteredProducts?h...=0&mediaType=1&page=9&sortBy=title&totalPages=13

200 OK
446ms
c1a69ab...0d68.js (line 7)
GET https://www.gog.com/account/getFilteredProducts?h...0&mediaType=1&page=10&sortBy=title&totalPages=13

200 OK
417ms
c1a69ab...0d68.js (line 7)
GET https://www.gog.com/account/getFilteredProducts?h...0&mediaType=1&page=11&sortBy=title&totalPages=13

200 OK
450ms
c1a69ab...0d68.js (line 7)
GET https://www.gog.com/account/getFilteredProducts?h...0&mediaType=1&page=12&sortBy=title&totalPages=13

200 OK
473ms
c1a69ab...0d68.js (line 7)
5
Process Manual Sort
gm_script (line 34)
Manual Sort Products
gm_script (line 34)
Retrieve Manual Sort Order
gm_script (line 34)
Manual Sort Done
gm_script (line 34)
GET https://gog.bigpizzapies.com/af_legacy_urls.php?report&&id=1444731636

200 OK
1.14s
c1a69ab...0d68.js (line 7)
Allow Manual Sort
gm_script (line 34)





and page 11 (does not):

GET https://www.gog.com/account/getFilteredProducts?h...0&mediaType=1&page=11&sortBy=title&totalPages=13

200 OK
514ms
c1a69ab...0d68.js (line 7)
afGetData Called
gm_script (line 34)
Manual sorting selected, retrieving products
gm_script (line 34)
12
Process Manual Sort
gm_script (line 34)
GET https://www.gog.com/account/getFilteredProducts?h...0&mediaType=1&page=12&sortBy=title&totalPages=13

200 OK
449ms
c1a69ab...0d68.js (line 7)
Process Manual Sort
gm_script (line 34)
Manual Sort Products
gm_script (line 34)
Retrieve Manual Sort Order
gm_script (line 34)
Manual Sort Done
gm_script (line 34)
Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: product in productPage.products track by product.id, Duplicate key: 1207663523, Duplicate value: {"isGalaxyCompatible":true,"tags":[],"id":1207663523,"availability":{"isAvailable":false,"isAvailableInAccount ":true},"title":"Tomb Raider Chronicles","image":"//images-4.gog.com/05750641e3178b5a22c93e756c9efbf08a4356b48ef01f576122fad567acec01","url ":"/game/tomb_raider_the_last_revelation_chronicles","worksOn":{"Windows":true,"Mac":false,"Linux":false},"cat egory":"","rating":0,"isComingSoon":false,"isMovie":false,"isGame":true,"slug":"tomb_raider_chronicles","updat es":0,"isNew":false,"dlcCount":0,"releaseDate":{"date":"1999-11-24 00:00:00","timezone_type":3,"timezone":"Europe/Nicosia"},"isBaseProductMissing":false,"isHidingDisabled":false ,"isHidden":false}
http://errors.angularjs.org/1.4.3/ngRepeat/dupes?p0=product%20in%20productPage.products%20track%20by%20product.id&p1=1207663523&p2=%7B%22isGalaxyCompatible%22%3Atrue%2C%22tags%22%3A%5B%5D%2C%22id%22%3A1207663523%2C%22availability%22%3A%7B%22isAvailable%22%3Afalse%2C%22isAvailableInAccount%22%3Atrue%7D%2C%22title%22%3A%22Tomb%20Raider%20Chronicles%22%2C%22image%22%3A%22%2F%2Fimages-4.gog.com%2F05750641e3178b5a22c93e756c9efbf08a4356b48ef01f576122fad567acec01%22%2C%22url%22%3A%22%2Fgame%2Ftomb_raider_the_last_revelation_chronicles%22%2C%22worksOn%22%3A%7B%22Windows%22%3Atrue%2C%22Mac%22%3Afalse%2C%22Linux%22%3Afalse%7D%2C%22category%22%3A%22%22%2C%22rating%22%3A0%2C%22isComingSoon%22%3Afalse%2C%22isMovie%22%3Afalse%2C%22isGame%22%3Atrue%2C%22slug%22%3A%22tomb_raider_chronicles%22%2C%22updates%22%3A0%2C%22isNew%22%3Afalse%2C%22dlcCount%22%3A0%2C%22releaseDate%22%3A%7B%22date%22%3A%221999-11-24%2000%3A00%3A00%22%2C%22timezone_type%22%3A3%2C%22timezone%22%3A%22Europe%2FNicosia%22%7D%2C%22isBaseProductMissing%22%3Afalse%2C%22isHidingDisabled%22%3Afalse%2C%22isHidden%22%3Afalse%7D
d/<@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:6:381]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:6:381[/url]
ig</<.compile/</<@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:10:18683]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:10:18683[/url]
d@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:4145]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:4145[/url]
pc/this.$get</n.prototype.$digest@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:4872]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:4872[/url]
pc/this.$get</n.prototype.$apply@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:6433]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:8:6433[/url]
f@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:13108]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:13108[/url]
r@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:14907]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:14907[/url]
Cb/</v.onload@[url=https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:15447]https://www4-static3.gog.com/js/c1a69ab-eea0d68.js:7:15447[/url]


...){if(null==a)return"";switch(typeof a){case"string":break;case"number":a=""+a;br...

c1a69ab...0d68.js (line 7)
Allow Manual Sort
gm_script (line 34)



[Note: the "h...=0" and "h...0" are "hiddenFlag=0" throughout]





3) Firefox only.
Post edited January 07, 2016 by mrkgnao
high rated
avatar
mrkgnao: snip
Thanks, that seems to be right (unfortunately, that would have explained a lot...), everything is getting called just the right amount of times.

avatar
mrkgnao: snip
And that looks right too...

avatar
HypersomniacLive: attention getting quote
So far everyone with issues is on Firefox, would you mind running a test in Iron to see if it's a Firefox thing or a problem for all browsers?
Thanks.

I wish I could just reproduce the damn problem myself and this would be much easier...
high rated
avatar
adaliabooks: So far everyone with issues is on Firefox, would you mind running a test in Iron to see if it's a Firefox thing or a problem for all browsers?
Installed TamperMonkey on Chrome and tested. All the major issues are seen there too (incorrect page order, empty pages, duplicates error).
Post edited January 07, 2016 by mrkgnao
high rated
avatar
mrkgnao: Installed TamperMonkey on Chrome and tested. All the major issues are seen there too (incorrect page order, empty pages, duplicates error).
Ok, thanks mrkgnao. So it's not anything Firefox specific...

I'll probably put a few more tests up at some point (I'll try some other generic sorts on the list to see if that part of it is the problem, right now everything is still pointing to the sort itself being the issue so I'll break down the various parts of it and see if any specific bit is causing trouble)
high rated
I've pushed another versionless update.

I've changed the actual sort function to just a basic sort to see if that might be the problem.
So the library will appear alphabetically sorted but hopefully all the pages might show..


I'm really getting stumped with this one, absolutely nothing I do replicates the errors for me and I'm struggling to see any possible reason why it's doing what it's doing..

I took the output of mrkgnao's library and used it to imitate a larger library and no problems. It was sorted and paged through with no errors. The only difference between this and the 'real' version is the AJAX calls to the server... but according to earlier tests the problem is the sorting function (unless it's a combination of the sorting function and the AJAX..)
high rated
avatar
adaliabooks: I've pushed another versionless update.

I've changed the actual sort function to just a basic sort to see if that might be the problem.
So the library will appear alphabetically sorted but hopefully all the pages might show..
We're getting there.
Tested it:
- Page order ok
- No empty pages
- No duplicates error

The only issue still present:
- Moving from page 12 to 13 does nothing
high rated
avatar
mrkgnao: We're getting there.
Tested it:
- Page order ok
- No empty pages
- No duplicates error

The only issue still present:
- Moving from page 12 to 13 does nothing
Woo!

Thanks mrkgnao :)

So it's the actual sorting function itself. The question now is why.

Still not sure about the last bit.. according to your earlier output 13 pages are being processed for sorting so I don't know why the last page isn't working.
I presume there are games that should be on that page? It's not a phantom extra page?
And when you say, 'does nothing', does that mean that page 12 still shows? Or that you get an empty page?
Because actually thinking about it maybe there is a reason for that... I promise I'll sort that next once I finally fix the manual sort :)
high rated
Put another update, still should sort by name but may break things again. Just trying to see whether it's the sort function itself or the method I have to use to actually use it.

Thanks guys :)
high rated
avatar
adaliabooks: Still not sure about the last bit.. according to your earlier output 13 pages are being processed for sorting so I don't know why the last page isn't working.
I presume there are games that should be on that page? It's not a phantom extra page?
And when you say, 'does nothing', does that mean that page 12 still shows? Or that you get an empty page?
Because actually thinking about it maybe there is a reason for that... I promise I'll sort that next once I finally fix the manual sort :)
As mentioned before, when moving to a new page N, pages N to 12 (not 13) are loaded. Might be relevant.
Page 13 contains the famous 33 games beginning with W-Z.
Does nothing means the little box changes to 13 (of 13), but no AJAX call, and page 12 continues to be displayed.
avatar
adaliabooks: Put another update, still should sort by name but may break things again. Just trying to see whether it's the sort function itself or the method I have to use to actually use it.

Thanks guys :)
The major issue (empty pages, duplicate errors) is back but page order seems ok (for displaying pages).
Post edited January 07, 2016 by mrkgnao
high rated
avatar
adaliabooks: [...]

So far everyone with issues is on Firefox, would you mind running a test in Iron to see if it's a Firefox thing or a problem for all browsers?
Thanks.

I wish I could just reproduce the damn problem myself and this would be much easier...
I guess it's too late for this now. I see mrkgnao run the test, and got the same outcome. Do you still want me to test with SWare Iron? I haven't updated to the latest version of AF yet.
If not, do you want me to try the latest and report? On Firefox, SWare Iron, both?
high rated
avatar
mrkgnao: As mentioned before, when moving to a new page N, pages N to 12 (not 13) are loaded. Might be relevant.
Page 13 contains the famous 33 games beginning with W-Z.
Does nothing means the little box changes to 13 (of 13), but no AJAX call, and page 12 continues to be displayed.

The major issue (empty pages, duplicate errors) is back but page order seems ok (for displaying pages).
Yeah, I thought that, but the output shows the process function is called 13 times each page as it should meaning that last page is being loaded (plus the games that should be on that page were showing at the start of the library earlier, meaning they are retrieved).
I might have an idea what's actually happening now that I think about, it's most likely an index issue and I can probably sort it with the next issue.

Finally, a result I was expecting.

Ok, so the issue seems to be exporting the function (no idea why, but it's definitely the problem) so I just need to rework things so the manual sort function can be natively in the injected script rather than having to be exported...

Might actually have this cracked :)

avatar
HypersomniacLive: I guess it's too late for this now. I see mrkgnao run the test, and got the same outcome. Do you still want me to test with SWare Iron? I haven't updated to the latest version of AF yet.
If not, do you want me to try the latest and report? On Firefox, SWare Iron, both?
Don't worry, mrkgnao's result was all I needed. I just asked you because I knew you had a different browser to hand and didn't want to ask someone to install one specifically. But mrkgnao kindly did anyway.
Thanks, but it's ok for now. Hopefully have another version (that works) ready soon.
high rated
Right, another non versioned update (I'm not putting more numbers on it till I know it's working XD)

I think we should now have all pages showing (bar maybe the last) and sorted by manual sort order.

I haven't quite got mrkgnao's last page error sussed, the indices look right though I'm sure it's probably the cause of the issues.
But if the rest of it is fixed then we can see if it's specific to him or a general issue.

Let me know, thanks! :)
high rated
avatar
adaliabooks: Right, another non versioned update (I'm not putting more numbers on it till I know it's working XD)

I think we should now have all pages showing (bar maybe the last) and sorted by manual sort order.

I haven't quite got mrkgnao's last page error sussed, the indices look right though I'm sure it's probably the cause of the issues.
So...
Yes I can see see games on all pages now except the last one (which shows me a duplicate of the page before)... but manual sorting is gone. Even when I import my saved manual sort it does not work at all.

Problem:
Retrieve Manual Sort Order adaliafundamentals.user.js:34:13
ReferenceError: manualSortOrder is not defined
Post edited January 08, 2016 by moonshineshadow