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
tfishell: Makes me wonder if a script could fulfill the request of "email me when a game(s) on my wishlist go on sale", ie a script for weekend sales in general, rather than just having an Insomnia sale script.
That script already exists. You can use isthereanydeal.com for that.

I wrote some instructions on it before over here: http://www.gog.com/forum/general/games_on_wishlist_email_notification/post14
avatar
tfishell: Makes me wonder if a script could fulfill the request of "email me when a game(s) on my wishlist go on sale", ie a script for weekend sales in general, rather than just having an Insomnia sale script.
avatar
Pardinuz: That script already exists. You can use isthereanydeal.com for that.

I wrote some instructions on it before over here: http://www.gog.com/forum/general/games_on_wishlist_email_notification/post14
Ah nice, thanks.
avatar
tfishell: Makes me wonder if a script could fulfill the request of "email me when a game(s) on my wishlist go on sale", ie a script for weekend sales in general, rather than just having an Insomnia sale script.
I have something close to that on my "to do list". But it is nice to see there is some interest for it.

avatar
Pardinuz: That script already exists. You can use isthereanydeal.com for that.
It was nice of you to point that out. Thanks. I knew that service existed but I never took a close look at it.
Personally I do not wish to open an account there and I just shop at GOG, but I'm sure it will be quite helpful for many users.
Post edited May 05, 2015 by Gede
I have done a hasty job of updating my script to the new format. It seems to be working for me. Please report bugs.

I'm sorry if I don't have as much free time this year, but I'll try to fix any bugs you may find.

Happy napping!
avatar
Gede: I have done a hasty job of updating my script to the new format. It seems to be working for me. Please report bugs.
I'm sorry if I don't have as much free time this year, but I'll try to fix any bugs you may find.
Happy napping!
I'll give it a try, thanks! ;D

EDIT: It seems to work, but it doesn't like if you change sleep_time to 30 (quite needed) :P
Post edited March 21, 2016 by phaolo
avatar
phaolo: EDIT: It seems to work, but it doesn't like if you change sleep_time to 30 (quite needed) :P
This Insomnia does seem to run significantly faster than last year's. You may want to change that variable to your taste.

I just tried it, and the script appears to work as expected. However, an unexpected bundle showed up a while ago. It was unexpected, and the script reacted in a "not nice" manner. I think I fixed that problem, and you may want to update it.

If you still think the 30 seconds maximum sleep time is not working as expected, let me know of the details and I'll look it up.

Thank you for trying the_napping_gamer.
It sometimes crashes on start:

Traceback (most recent call last):
File "Desktop/the_napping_gamer.py", line 518, in <module>
wait_time = max(min(sleep_time, check_games()), minimum_sleep_value)
File "Desktop/the_napping_gamer.py", line 452, in check_games
for game_info in extract_game_data(read_from_url(url)):
File "Desktop/the_napping_gamer.py", line 398, in extract_game_data
local_discount_price, local_full_price = get_price_value(data["product"]["prices"])
File "Desktop/the_napping_gamer.py", line 372, in get_price_value
values = currency_values[currency_code][str(index)].split(";")
KeyError: '7'

But works fine once it decides to roll with it.

The default (60) doesn't seem to have this problem.
avatar
hyperagathon: It sometimes crashes on start[..]
The default (60) doesn't seem to have this problem.
Even the new version?
I've set it to 30 again and it doesn't seem to crash anymore.
Post edited March 21, 2016 by phaolo
avatar
phaolo: Even the new version?
I've set it to 30 again and it doesn't seem to crash anymore.
I never tried any other version. Tried restarting it after it worked for the first time: took three more restarts before it got back on track.
Post edited March 21, 2016 by hyperagathon
avatar
phaolo: Even the new version?
I've set it to 30 again and it doesn't seem to crash anymore.
avatar
hyperagathon: I never tried any other version. Tried restarting it after it worked for the first time: took three more restarts before it got back on track.
No wait, you're right, there's still some problem..

It.. crashes when it matches titles? O_o
Post edited March 21, 2016 by phaolo
avatar
phaolo: It.. crashes when it matches titles? O_o
You mean, from the wishlist? I didn't use one.
avatar
phaolo: It.. crashes when it matches titles? O_o
avatar
hyperagathon: You mean, from the wishlist? I didn't use one.
No.. I have no idea.. it seems random now..
How do I capture a log?
Crashed for me as well, error follows
Traceback (most recent call last):
File "the_napping_gamer.py", line 518, in <module>
wait_time = max(min(sleep_time, check_games()), minimum_sleep_value)
File "the_napping_gamer.py", line 452, in check_games
for game_info in extract_game_data(read_from_url(url)):
File "the_napping_gamer.py", line 392, in extract_game_data
local_discount_price, local_full_price = get_price_value(data["bundle"]["prices"])
File "the_napping_gamer.py", line 369, in get_price_value
index = get_country_groups(price_data["countriesGroups"])
KeyError: 'countriesGroups'
The data from "current_deal" for olli 2 (which was the one that crashed it) are below
{"dealType":"product","product":{"id":1438603531,"title":"OlliOlli2: Welcome to Olliwood","image":"\/\/images-2.gog.com\/ee528e999fc4944e6e6774c33152358daa2ef7d88f68f2897eccad3c0e7d1ffc","ca tegory":"sports","isComingSoon":false,"isGame":true,"isMovie":false,"isInDevelopment":false,"rating":44,"url": "\/game\/olliolli2_welcome_to_olliwood","worksOn":{"Windows":true,"Linux":true,"Mac":true},"prices":{"countrie sGroups":{"1":"AF,AL,DZ,AS,AO,AI,AG,AW,BS,BH,UM,BD,BB,BZ,BJ,BM,BT,BA,BW,IO,VG,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD ,CN,CX,CP,CC,KM,CD,CK,CI,HR,DJ,DM,EG,GQ,ER,EE,ET,FK,FO,FJ,GF,PF,GA,GM,GE,GH,GI,GL,GD,GP,GU,GG,GN,GW,GY,HK,IN,I D,IR,IQ,IM,IL,JM,JP,JE,JO,KE,KI,KP,KR,XK,KW,LA,LV,LB,LS,LR,LY,LT,MO,MK,MG,MW,MY,MV,ML,MH,MQ,MR,MU,YT,FM,MN,ME, MS,MA,MZ,MM,NA,NR,NP,AN,NC,NE,NG,NU,NF,MP,OM,REST,PK,PW,PS,PG,PH,PN,QA,RE,RO,RW,BL,SH,KN,LC,MF,PM,VC,WS,ST,SA, SN,RS,SC,SL,SG,SI,SB,SO,ZA,LK,SD,SR,SZ,SY,TW,TZ,TH,TL,TG,TK,TO,TT,TN,TR,TC,TV,UG,AE,US,VI,VU,VA,VN,WF,EH,YE,ZM ,ZW","2":"AD,AT,BE,CY,CZ,DK,FI,FR,DE,GR,HU,IS,IE,IT,LI,LU,MT,MC,NL,NO,PL,PT,SM,SK,ES,SE,CH","3":"AR,BO,BR,CL,C O,CR,CU,DO,EC,SV,GT,HT,HN,MX,NI,PA,PY,PE,PR,UY,VE","4":"AM,AZ,BY,KZ,KG,MD,RU,TJ,TM,UA,UZ","5":"AU,NZ","6":"GB" ,"7":"BG,HR,EE,LV,LT,ME,RO,RS,SI,VA","8":"AM,AZ,BY,KZ,KG,MD,RU,TJ,TM,UZ","9":"JE"},"groupsPrices":{"USD":{"1": "14.99;3.79","2":"16.69;4.19","3":"7.99;1.99","4":"4.89;1.19","5":"12.79;3.19","6":"15.79;3.99"},"EUR":{"2":"1 4.99;3.79","7":"13.49;3.39"},"RUB":{"8":"349;89"},"AUD":{"5":"16.99;4.29"},"GBP":{"9":"10.49;2.69","6":"10.99; 2.79"}}}},"discount":75,"amountLeft":9,"amountTotal":40,"nextCategory":"strategy","badge":"","nextCallIn":5500 }
avatar
phaolo: No.. I have no idea.. it seems random now..
How do I capture a log?
Windows? Run it from the command line thingie, if Win still ships with that. Otherwise, no idea.

Got a country error:

Traceback (most recent call last):
File "Desktop/the_napping_gamer.py", line 518, in <module>
wait_time = max(min(sleep_time, check_games()), minimum_sleep_value)
File "Desktop/the_napping_gamer.py", line 452, in check_games
for game_info in extract_game_data(read_from_url(url)):
File "Desktop/the_napping_gamer.py", line 392, in extract_game_data
local_discount_price, local_full_price = get_price_value(data["bundle"]["prices"])
File "Desktop/the_napping_gamer.py", line 369, in get_price_value
index = get_country_groups(price_data["countriesGroups"])
KeyError: 'countriesGroups'

This is for "HR".
Question, since I've already filtered what I want and what I don't want, is it possible to modify the script to only check the game's name versus the wishlist.txt, without checking prices etc?