Alright, I feel this one's gonna be a pretty long post.
So... the NTFS file system (and that fs only) has an exclusive little feature called alternative data streams, where you can hide stuff inside a file.
I'm curious... is there a way to check the data of an executable through JavaScript to peek into a list of alternative data streams, and if none (or a specific one doesn't) exist, trigger a lockout?
At first I planned to have this in effect for anti-piracy (or generally any illegal use of my game, since it's free), but then I realized pirated copies of the game could still secretly have the alternate stream in them, so... nevermind.
For now I just decide to use this to make sure the player's running the game on the same file system their operating system runs; NTFS (I highly doubt operating systems normally run on FAT32/exFAT, unless you force them to; or you're running Linux. Apparently Linux doesn't run mainly on NTFS and instead uses ext4, interesting... but it IS possible to run an OS on FAT32). So if they use a FAT32/exFAT USB or something (or just any file system that's NOT NTFS, since only NTFS has the alternative data streams feature), they get locked out and told to use the better system and redownload the game (since copying data streams to a FAT drive will erase the alternative data streams, PERMANENTLY locking you out, assuming my idea works. after the alternative file streams are lost, they don't come back if you copy the game to a drive with NTFS on it; you HAVE to redownload the game).
A simpler way to do all this if my previous idea doesn't work, would just be to check the filesystem the game is running on. This is easier to fix, since all you need to do is move the game if you're not running with NTFS, instead of redownloading the game as a whole, but I feel the first method is more... idk, cruel (and unlike this method, would actually work if I were preventing "piracy").
So... [whew]… are either/both of my methods possible? I know a lot of things are possible with JavaScript but this idea might just be pushing the limits. I'm really aiming to make my game... special.
Edit: this "stream" I had in mind is kinda like a signature, like Cave Story uses © Cave Story at the end of its images, I want to put "PINORI1603" (Pinori, 16, 2004) as a message in my game's executable. This script I wanted to make basically locks you out if the signature is gone.
So... the NTFS file system (and that fs only) has an exclusive little feature called alternative data streams, where you can hide stuff inside a file.
I'm curious... is there a way to check the data of an executable through JavaScript to peek into a list of alternative data streams, and if none (or a specific one doesn't) exist, trigger a lockout?
At first I planned to have this in effect for anti-piracy (or generally any illegal use of my game, since it's free), but then I realized pirated copies of the game could still secretly have the alternate stream in them, so... nevermind.
For now I just decide to use this to make sure the player's running the game on the same file system their operating system runs; NTFS (I highly doubt operating systems normally run on FAT32/exFAT, unless you force them to; or you're running Linux. Apparently Linux doesn't run mainly on NTFS and instead uses ext4, interesting... but it IS possible to run an OS on FAT32). So if they use a FAT32/exFAT USB or something (or just any file system that's NOT NTFS, since only NTFS has the alternative data streams feature), they get locked out and told to use the better system and redownload the game (since copying data streams to a FAT drive will erase the alternative data streams, PERMANENTLY locking you out, assuming my idea works. after the alternative file streams are lost, they don't come back if you copy the game to a drive with NTFS on it; you HAVE to redownload the game).
A simpler way to do all this if my previous idea doesn't work, would just be to check the filesystem the game is running on. This is easier to fix, since all you need to do is move the game if you're not running with NTFS, instead of redownloading the game as a whole, but I feel the first method is more... idk, cruel (and unlike this method, would actually work if I were preventing "piracy").
So... [whew]… are either/both of my methods possible? I know a lot of things are possible with JavaScript but this idea might just be pushing the limits. I'm really aiming to make my game... special.
Edit: this "stream" I had in mind is kinda like a signature, like Cave Story uses © Cave Story at the end of its images, I want to put "PINORI1603" (Pinori, 16, 2004) as a message in my game's executable. This script I wanted to make basically locks you out if the signature is gone.