Re: modifying registry with bgt

2020-03-08 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


Re: modifying registry with bgt

Allright, thanks for the feedback!

URL: https://forum.audiogames.net/post/507162/#p507162




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: modifying registry with bgt

12 is right. You should never use ephemeral keys on data that isn't ephemeral. Cryptography isn't designed to be that way. If the key is lost, the data is irrecoverable. That is, of course, unless the algorithm is broken. But since this is AES-256 in CBC mode, I significantly doubt its breakable if the key is lost. End of story. It may be possible to extract keys from BGT code, but that in no way means that, if the key changes, we will be able to decrypt your data for you. Once data is encrypted it is bound to the key that encrypted it. Its not like a password for a website where you can just change it via a simple validation email by clicking the forgot password link and get access to the data again. To alter the key that data is secured with, you first need to decrypt all the data you'd like to alter the key for, generate the new key and re-encrypt all the data.

URL: https://forum.audiogames.net/post/506903/#p506903




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: modifying registry with bgt

12 is right. You should never use ephemeral keys on data that isn't ephemeral. Cryptography isn't designed to be that way. If the key is lost, the data is irrecoverable. End of story. It may be possible to extract keys from BGT code, but that in no way means that, if the key changes, we will be able to decrypt your data for you. Once data is encrypted it is bound to the key that encrypted it. Its not like a password for a website where you can just change it via a simple validation email by clicking the forgot password link and get access to the data again. To alter the key that data is secured with, you first need to decrypt all the data you'd like to alter the key for, generate the new key and re-encrypt all the data. And that's how it should be.

URL: https://forum.audiogames.net/post/506903/#p506903




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: modifying registry with bgt

12 is right. You should never use ephemeral keys on data that isn't ephemeral. Cryptography isn't designed to be that way. If the key is lost, the data is irrecoverable. End of story. It may be possible to extract keys from BGT code, but that in no way means that, if the key changes, we will be able to decrypt your data for you. Once data is encrypted it is bound to the key that encrypted it. Its not like a password where you can just change it and get access to the data again. To alter the key that data is secured with, you first need to decrypt all the data you'd like to alter the key for, generate the new key and re-encrypt all the data.

URL: https://forum.audiogames.net/post/506903/#p506903




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: modifying registry with bgt

@11You can do this at the cost of not being able to back up your save files.You can do this at the cost of never being able to change any of the hardware in the machine in case the hardware changes the ID.You can do this at the cost of not being able to reinstall Windows, which can also change the machine ID, depending which one it's using.Lots and lots of things can make things that do what you're describing decide that this is a new computer.  Since you chose to use the machine ID as the encryption key, there is no way to recover the data once that happens.Please don't do this.  This is a terrible idea that will make many people very sad.  In general, unless you have an online component, there's no reason to care about cheating anyway, but this particular idea will break your saves if anything happens to your computer that requires sending it out for repair, even if you copied them somewhere else first, or if you decide to upgrade hardware.

URL: https://forum.audiogames.net/post/506895/#p506895




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : simter via Audiogames-reflector


  


Re: modifying registry with bgt

Also quick suggestion here if you are saving game status in a file and you want to prevent cheating, i have a kinda way to acomplish that task pritty easy. You can just use the compid as decryption key, then every computer would open the file differently and cheating would be impossible.

URL: https://forum.audiogames.net/post/506890/#p506890




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: modifying registry with bgt

I usually tend to save things in appdata

URL: https://forum.audiogames.net/post/506824/#p506824




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-07 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: modifying registry with bgt

Keeping the file in the same directory is actually good, because then your game is portable at max. You could just place the folder wherever and you'd still keep the data.It might be an issue when for instance you are in a dropbox shared folder and the save files would probably conflict.

URL: https://forum.audiogames.net/post/506791/#p506791




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: modifying registry with bgt

The same directory is fine, especially if you aren't packaging with an installer.  You only really run into issues with that if you start putting software in Program Files or whatever because of permissions, but if the procedure is unzip the game and run then putting the file in the same directory is perfectly fine at worst and "I can play this from my thumbdrive anywhere" at best.  This is actually one of the cases where something is really simple and you're probably overthinking it.  Decide you want an installer or to be sold via the Windows Store or something and we can revisit this discussion and talk about the directories Windows can set up for your program to give it an official place to write data, otherwise you're fine.  Even the official Windows directories for software that's installed with an installer are just normal folders, you just have to compute the paths to them.Let me put it this way: Firefox and Chrome just write to files.  They don't write to files in the same directory, but they just write to files.  So does NVDA.  So does every IM client I've ever used.  So does every twitter client for the blind that I know of.  My media player: same. I could go on.

URL: https://forum.audiogames.net/post/506755/#p506755




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


Re: modifying registry with bgt

I think my main problem is where to store the file: With RP I've had it in the same directory.

URL: https://forum.audiogames.net/post/506754/#p506754




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: modifying registry with bgt

I mean I know nothing about how you're doing it now. But if your question is whether writing to a file on disk somewhere to store stuff is bad: no, no it's not.I seriously can't think of anything where using the registry made it somehow better.  There is a reason that registry cleaners exist.

URL: https://forum.audiogames.net/post/506733/#p506733




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


Re: modifying registry with bgt

Oh, okay. So the way I'm doing it now with RagePillow makes sense?

URL: https://forum.audiogames.net/post/506729/#p506729




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: modifying registry with bgt

I wouldn't use the registry. I'd use a file.  If you use a file people can migrate their settings and saves and whatnot between machines, stick them in dropbox, whatever.  If it breaks they can grab the file and e-mail it to you, "hey, here's an example".  If they want they can run it from a thumbdrive on a work machine or whatever.  You, as the dev, can reset things just by deleting the file, and edit things just by editing the file.The registry sort of makes sense if you want to put licensing information somewhere but I say sort of because I've been programming for over 10 years at this point and the registry is still a confusing black hole where values go to die.  Writing to it is easy enough, and others can give you the BGT snippets, but literally anything else you might want to do with it is decidedly not so simple, including easy viewing/modification of values that you wrote by hand.

URL: https://forum.audiogames.net/post/506722/#p506722




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : simter via Audiogames-reflector


  


Re: modifying registry with bgt

You need also to declare regsettingssettings regsettings;Also, you can just use the sd class o use a file not the registry.

URL: https://forum.audiogames.net/post/506716/#p506716




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: modifying registry with bgt

Have this.void loadregdata() {bool open=regsettings.setup("IMS-Productions","BalloonMaster",false);if(open==false) {alert("Warning","Could not read your current registration information because the registry could not be opened");return;}if(regsettings.exists("regname")==true) {regname=string_decrypt(regsettings.read_string("regname"),"bmreg32");}if(regsettings.exists("regkey")==true) {regkey=string_decrypt(regsettings.read_string("regkey"),"bmreg32");}}void writeregdata() {bool open=regsettings.setup("IMS-Productions","BalloonMaster",false);if(open==false) {alert("Warning","Could not save your current registration information because the registry could not be opened");return;}regsettings.write_string("regname",string_encrypt(regkey,"bmreg32"));regsettings.write_string("regkey",string_encrypt(regkey,"bmreg32"));}

URL: https://forum.audiogames.net/post/506702/#p506702




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


modifying registry with bgt

2020-03-06 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


modifying registry with bgt

Hello all, So I'd like to store info or settings on a user's comp, how do I go about doing this  efficiently? For example, maybe having check for updates disabled at startup, storing a certain amount of points, that sort of thing. Thanks in advance!

URL: https://forum.audiogames.net/post/506681/#p506681




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector