Creating this kind of lock is by definition impossible.
The ones that get closest to achieving this kind of thing are very intrusive rootkits and using them imposes serious problems.
For instance, think about the Ubisoft disaster, for which you needed to have a stable internet connection to play an OFFLINE game.
- Checking whether you are running from a virtual drive, while possible, does not solve anything, because there are simple ways to emulate a true drive.
What does this version do?
It is supposed to check if you are not running it from a virtual drive like Virtual CD or Daemon Tools. Then it will test if you are running it from CD/DVD/BLEURAY or not.
How will the end version be released in open source?
This thing will not run under DAEMON tools and other virtual drives. It will only run on original CD. It will not be fooled by *** tools like ALCOHOL and HACKERS NOTPAD 4++ (FIXED AND PATCHED VERSION). It will detect gm decompilers, resource editors and bruteforce decompilers, so will release a fake source for theme.
- Here, again, the intrusive thing. I removed my DVD drive from my laptop in order to be able to attach another hard disk. This means I can not play your game, because you don't allow me even to make an ISO out of it and run it from there. (Not that I can play any Game Maker games... I stopped using Windows quite a while ago...)
- I don't think anyone who can't even spell BluRay is capable of doing something that specialized companies who actually make money out of it and don't try using some incomplete interpreted language completely targeted toward games to do it do.
- You can not detect decompilers, because they run offline. You can encrypt your data, but as the decompilers so effectively show, this can (in this case) always be undone. Think about it: the program itself must be able to do so, because otherwise it would not be able to load its own resources.
I hope that I informed you about the future this project is headed towards.
I'm not trying to discourage you to use GM or program utilities or anything. By all means, continue. You'll learn a lot from it.
Whew. My first post in about 3 years. Going for another 3 year break I think