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

×
high rated
Has the Insomnia promo affected you? Did you just miss that game you really wanted because you were just too tired or even working? Maybe that bathroom break was ill-timed?

How do you get some rest during the Insomnia promo? Allow me to present to you the_napping_gamer!

You can check it out at:
https://github.com/gatl/the_napping_gamer

What it does: This script monitors the promotions on GOG, and lets you know when a new game show up. If you add a file called "wishlist.txt" with (part of) the name of the games you fancy, it will only disturb you when the games that interest you appear. Also, this script also tries to calculate how long it may take for a game to rotate. That way you can determine if you have enough time to go for a bite.

Please report any problem you may find. Your feedback helps this program to improve, and everybody wins!

The script requires Python 3 installed. I may backport it to Python 2.7 if there are enough requests.

I hope this helps you snag that game you wanted. Enjoy the Insomnia promo!
Thanks to Magnitus for his Javascript-fu! He made this task so much easier!
Post edited March 10, 2015 by Gede
how is this different from https://github.com/Magnitus-/GOG-Flash-Promo-Script ??

Is there a reason to pick one over the other?
avatar
Torin68: how is this different from https://github.com/Magnitus-/GOG-Flash-Promo-Script ??

Is there a reason to pick one over the other?
I haven't tested the other script, but I'd say probably not. Pick whichever one floats your boat. Hopefully, we won't end up with 10 scripts to have to pick from, but 2 can give some variety and backup.

What I'll say about the original script is that it's portable (Windows, Linux, Mac) and runs both Python 2.7 and 3.x and will be well documented. Beyond that, I'll make sure it's restructured before the promo is over so that it can be ported quickly to the next promo.

By the looks of it, Gede's script has some extra features (more info about the games in-prompt, forecast about how long current games are expected to stay on promo, native alarm for Windows users).
Post edited March 04, 2015 by Magnitus
avatar
Torin68: Is there a reason to pick one over the other?
Exactly. If you're happy with what the original script offers, stick with it. It also has more users and is tested better.
Also, tech support appears to be working well. ;-)

I wanted to know whenever the games changed, as I don't have a formal wishlist. The original script did not help me in this regard.
Also, the notification method was not useful for me, as I have low bandwith. A simple "beep" would be better in my case.
avatar
Magnitus: Hopefully, we won't end up with 10 scripts to have to pick from, but 2 can give some variety and backup.
I don't see anything wrong with having 10 scripts. As long as we have at least one that is good.

Currently I'm adding some less useful features. Support for eSpeak, a free text-to-speech program, to announce the games, and setting a maximum price, in case the discount is not that appealing.

Minor stuff, actually. None of them buys the game for you, unfortunately. But thanks for taking an interest!
Post edited March 04, 2015 by Gede
Thanks for sharing, Gede! Trying your script now. ;)

PS: I didn't forget about your PM.
avatar
Gede: I don't see anything wrong with having 10 scripts.
I do. Too much choice is as bad as not enough.
I've largely ignored the sale, I'm busy and even when I have free time I tend to forget it's even going on. Every now and then, I go to the tab with GOG homepage and check what's there, and I got a couple cheap games for the heck of it and Dead State, the one title from the sale on my wishlist (according to the tracker). I got lucky, I suppose.

On previous insomnia sales, I have kept tracked of the whole first round to make sure I got what I wanted. This hasn't happened this time, I didn't feel compelled to do so at all for whatever reason.
avatar
Pardinuz: Thanks for sharing, Gede! Trying your script now. ;)

PS: I didn't forget about your PM.
That is nice of you. Thanks.
Who has time to PM now? :-)

Script updated with speech support (not that I see anyone using it...) and a few little things.
avatar
P1na: On previous insomnia sales, I have kept tracked of the whole first round to make sure I got what I wanted. This hasn't happened this time, I didn't feel compelled to do so at all for whatever reason.
This is my first Insomnia sale. When I saw people saying there was already a script to track it, that made me spring into action.
I'm spending more time coding than watching the action. But I'm ready for the next one, now! :-)
avatar
Gede: Please report any problem you may find. Your feedback helps this program to improve, and everybody wins!
Bugs:
* T̶h̶e̶ ̶l̶i̶n̶k̶ ̶l̶a̶b̶e̶l̶l̶e̶d̶ ̶P̶y̶t̶h̶o̶n̶3̶ ̶i̶n̶ ̶t̶h̶e̶ ̶O̶P̶ ̶j̶u̶s̶t̶ ̶l̶i̶n̶k̶s̶ ̶t̶o̶ ̶t̶h̶i̶s̶ ̶t̶h̶r̶e̶a̶d̶ ̶N̶O̶T̶ ̶t̶o̶ ̶t̶h̶e̶ ̶P̶y̶t̶h̶o̶n̶ ̶s̶i̶t̶e̶
* c̶r̶a̶s̶h̶ ̶a̶f̶t̶e̶r̶ ̶s̶t̶a̶r̶t̶u̶p̶ ̶w̶i̶t̶h̶ ̶l̶o̶w̶ ̶u̶n̶i̶t̶s̶ ̶r̶e̶m̶a̶i̶n̶i̶n̶g̶ ̶(̶d̶e̶t̶a̶i̶l̶s̶ ̶o̶n̶ ̶g̶i̶t̶h̶u̶b̶)̶

Feature requests:
* e̶x̶t̶e̶n̶d̶ ̶t̶h̶e̶ ̶"̶n̶o̶t̶i̶f̶i̶c̶a̶t̶i̶o̶n̶ ̶B̶E̶E̶P̶"̶ ̶t̶o̶ ̶a̶ ̶u̶s̶e̶r̶ ̶s̶p̶e̶c̶i̶f̶i̶e̶d̶ ̶n̶u̶m̶b̶e̶r̶ ̶o̶f̶ ̶r̶e̶p̶e̶a̶t̶e̶d̶ ̶B̶E̶E̶P̶s̶
* eSpeak for Windows users (I've done this for myself, but an official version would be nice)

Nice! Now we just need another sale to use it on ;)
Post edited March 10, 2015 by Torin68
Very nice idea! +1 for the effort!
avatar
Torin68: Bugs:
* The link labeled Python3 in the OP just links to this thread NOT to the Python site
* crash after startup with low units remaining (details on github)

Feature requests:
* extend the "notification BEEP" to a user specified number of repeated BEEPs
* eSpeak for Windows users
Thank you very much for your interest and for having taken the time to report the problems you found.
I have fixed the bugs you have pointed out. I'm sorry for any trouble it may have caused you.

Furthermore, I have addressed the features you have suggested. However, we may need to wait for the next Insomnia promo to try them, as I currently lack the time to set-up an adequate testing system.
Thanks for patching that bug!

I'm not a programmer, but I enjoyed poking around your code trying to come up with my own implementation of the features I requested. Mine turned out nothing like yours but it was a nice diversion.

Now we have one more reason to look forward to the next Insomnia sale.

Cheers!
I experienced some problems with your script. It was working perfectly for 20 minutes but then it kept crashing soon after launching it. Maybe that's a problem on my side. :S
avatar
Pardinuz: I experienced some problems with your script. It was working perfectly for 20 minutes but then it kept crashing soon after launching it. Maybe that's a problem on my side. :S
I'm sorry for having neglected this thread for a while. I wish there was a "my threads" section in the forum.

I would require more details on your part. A few bugs were sorted out -- let us hope yours was one of them.
Maybe during the next Insomnia promo we will be able to ensure that all works well.
Thank you for chipping in.
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.
Post edited April 25, 2015 by tfishell