I am trying to find out how can you properly delete data using a script. I create a script with the sole purpose of deleting the data saved from the previous game (this was after a conversation with Slayer). When I highlighted the part where the data file is ("save_data") it generated a information section that mentioned save_data(data, file name, *password). I searched for information about this topic, and I believe it's still W.I.P., so this is why I am posting this here.

I am trying to find out what is the proper structure and process to use this Event Function in RIAB. I appreciate any help in this matter, thank you in advance!

I was testing whether the save_data(data, filename, *password) would prevent me from deleting the file or uploaded the file without using the password. The test was to save a data_file as a json.file without the password, then read it using VScode, and then saving one with a password to see if it matter when you loaded or try to read it in VScode.

This was the results:

Using No password on the save_data.json file

1) The file could be deleted, and loaded in RPG in a Box, using a script, with no issues.
2) The file could be open in VScode and could be read with no issues.

Using a Password on the save.data.json file

1) The file still could be deleted and loaded without requiring any password input.
2) The file could Not be open properly in VScode, since the password encrypted the file.

Conclusion:

The save_data(data, filename, *password) appears to work to encrypt data file externally, however it did not require any password input internally when trying to load the data file without using a password.

Note: if anyone has any information on this topic, please let me know, thank you in advance!!

    Omegalight27 This sounds like a bug based on the conclusion, as it should require a password to load a data file that was saved with one. Could you fill out a bug report with the necessary details to reproduce the issue? Thanks!

      4 days later