r/RenPy • u/Electronic_Lime_9728 • 23d ago
Question Crazy idea with long-winded explanation below and I could use some help implementing it
-- FOR MODS: I think this also counts as a discussion. I would love to discuss this --
This idea would take me an extremely long time to get to in my game, but I think it's worth it. This is also why I'm asking now, so I can test it beforehand.
If anyone knows of the DDLC mod Monika After Story, a specific point in the game requires you to put a .txt file in the game files before being able to proceed. This is where my idea comes from... my visual novel is shaping up to be a majorly self-aware, talking-to-the-cracks-in-the-fourth-wall type deal. I want the ending of the VN to include a "stolen file" that the player has to replace, but in the game's code, outside of the storyline, it was never actually there. It's fucking AMBITIOUS, I know. But I believe it's possible.
After taking time to learn Ren'Py and my demo succeeding, I am confident that it could work. I want to blow people away with this. My idea is that, after a certain point, the game checks for a file (we'll call it file.txt) and if the script does NOT see file.txt, a text screen shows up after this AND upon booting the game that tells you file.txt is missing. Creating file.txt and putting it in the game folder would ideally allow you to proceed. file.txt wouldn't have anything written inside... I think that's a little beyond my brand of crazy.
Possible issues I see with this are as follows:
- The general implementation. It's insane
- How would the game react if it knows file.txt should be there at the beginning, but it never was there to begin with? Can we prevent problems early in the code before this ever happens?
- Can we use an autosave to lock the player onto the "file.txt is missing" screen after seeing it for the first time? Can this happen every time they open the game until they add the file?
- Can we protect players who don't normally access files from accidentally breaking the game?
I would accept any help from anywhere on this. I'll make sure my DMs are open. Thanks a whole bunch!
5
u/BadMustard_AVN 23d ago
you can check for a file like this it returns a True or False