Is it possible to do a product key check first before that actually game can be played? Well, I guess something like with mysql and stuff? If someone knows it, sharing the knowledge with me? Would be great.
Well, there is really no way to stop people from distributing your game illegally (if they can play offline). Any product key that can be redeemed offline means that it can also be used my anyone that knows it, which allows it to be shared on the internet. You could of course only allow them to play once they have verified it online, but this causes problems which is the reason most software does not require this. If you publish your game to steam, they have their own system for this that can help you out.
If it is really really desirable to prevent illeagl usage, this misght be something for you: https://www.ilok.com/#!ilok-intro
Thanks for posting KVogler, but that is $50… If it was $5, then you could ship each customer one of those and not lose a ton of profit. :\
I’ve been pondering this myself, and the only reasonable way I can see that this would work is by renting a SQL server, and storing a first time keycheck there.