How do I...give players a file once they complete a game?

I want to make it to where, when the player 100%'s the game, the player will receive a new file in their game folder that contains a background photo (.png), and a thank you message (.txt).


How do I go about making that happen?
Surely it involve scripting? I'm open to plugins as well.
Perhaps the Yanfly Dynamic Title Screen is what you're looking for?
Perhaps the Yanfly Dynamic Title Screen is what you're looking for?

Ahh, I'm afraid not. I don't mean a title/ending screen or anything like that.

I mean more like...if player meets X and Y conditions at the end of the game, then 2 files appear in the player's game folder. (An image they can use for computer backgrounds, and a .txt file). Like an actual award for 100%'ing the game.
Ok, you have two ways.

The easy one, is giving a password on game completion, so the user can unzip an encrypted zip (with the txt and image).

The hard one involves using Node's fs. You will need to know how to handle files, here is a tutorial:
Creating the txt file is simple, you just put the text you want and make a txt file. For the image, you will want to convert the image to base64 (you will get a long line of text), and the in the code write that into a buffer to an image file using fs.
Here is how you do that:
Ok, you have two ways.

The easy one, is giving a password on game completion, so the user can unzip an encrypted zip (with the txt and image).

The hard one involves using Node's fs. You will need to know how to handle files, here is a tutorial:
Creating the txt file is simple, you just put the text you want and make a txt file. For the image, you will want to convert the image to base64 (you will get a long line of text), and the in the code write that into a buffer to an image file using fs.
Here is how you do that:


The password option (easy) sounds a lot more doable, and promising hahaha.
How would I go about setting that up? Would it need to be like, a randomly generated password? Or a set secret code? How do I create the encrypted files? Etc.

Just an FYI, I'm not very good with file output/input ahaha, so I may be a bit lost.
The password option (easy) sounds a lot more doable, and promising hahaha.
How would I go about setting that up? Would it need to be like, a randomly generated password? Or a set secret code? How do I create the encrypted files? Etc.

Just an FYI, I'm not very good with file output/input ahaha, so I may be a bit lost.
Sorry if I'm late! You can do it just from the file properties in Windows 10 alone when checking your zip file, as far as I remember, but you can also do it through WinRAR or 7ZIP when creating a zipped /RAR/7zip file. However, this method would require a set password, one you probably give to the player through the game in some way (sprites, text, etc.). That particular part of the setup is up to you, besides the fact it needs to be a set password.
Sorry if I'm late! You can do it just from the file properties in Windows 10 alone when checking your zip file, as far as I remember, but you can also do it through WinRAR or 7ZIP when creating a zipped /RAR/7zip file. However, this method would require a set password, one you probably give to the player through the game in some way (sprites, text, etc.). That particular part of the setup is up to you, besides the fact it needs to be a set password.

No don't worry, you're not late or anything!
Ahh, but only on Windows 10 yes? I have a Macbook Air :/

What I'm thinking so far is to give the player the password at the very end of the game through a dialogue box.

But I'm just not sure how to make the whole file encryption thing or anything like that.
No don't worry, you're not late or anything!
Ahh, but only on Windows 10 yes? I have a Macbook Air :/

What I'm thinking so far is to give the player the password at the very end of the game through a dialogue box.

But I'm just not sure how to make the whole file encryption thing or anything like that.
Thankfully, it seems like Mac does have some options for password protecting zip files, though it may require use of the command prompt or Archive Utility (I don't know much about Macs and their programs unfortunately).

This thread here mentions methods if you scroll down. It even offers a way to make sure Windows users can still open the zip. Archive Utilities seems to have functions to password protect a zip but I don't know the specifics. There's also this video that might help?

Overall, might just be a good moment to exercise search engine fu to see if you can scrounge anything up, if the above methods don't work.
Thankfully, it seems like Mac does have some options for password protecting zip files, though it may require use of the command prompt or Archive Utility (I don't know much about Macs and their programs unfortunately).

This thread here mentions methods if you scroll down. It even offers a way to make sure Windows users can still open the zip. Archive Utilities seems to have functions to password protect a zip but I don't know the specifics. There's also this video that might help?

Overall, might just be a good moment to exercise search engine fu to see if you can scrounge anything up, if the above methods don't work.


Heyyy! I ended up watching that video about the guy teaching how to encrypt a folder with files in it. Tested the encryption thing out with a friend, and it seems to work just fine! : )

Thank you!


With this in mind, my idea now is to put the encrypted.zip file in the game, and give the player the password through conditional branches that check if they've 100%'d everything.

I guess my only real question now is...is there a way to make sure the encrypted folder comes WITH the game when it's sent to other people?
Heyyy! I ended up watching that video about the guy teaching how to encrypt a folder with files in it. Tested the encryption thing out with a friend, and it seems to work just fine! : )

Thank you!


With this in mind, my idea now is to put the encrypted.zip file in the game, and give the player the password through conditional branches that check if they've 100%'d everything.

I guess my only real question now is...is there a way to make sure the encrypted folder comes WITH the game when it's sent to other people?
Sorry for the delayed response!

When you deploy a game, there'll be folders for the program. You can just slip the zip in with your deployment folders. If you put it in before deployment and exclude files, you will likely lose them after deployment is complete. If someone knows better about this process, please correct me if I'm wrong.

Having it in the folders really shouldn't affect the game, since it wouldn't be reading from this zip file anyway. I remember my favourite RM game has a secret zip with a soundtrack DLC, and the soundtrack DLC is just included with the whole game folder, and doesn't affect how the game runs. Again, if someone knows better, please correct me.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-give-players-a-file-once-they-complete-a-game.138371/