- May 20, 2021
- 745
- 2,715
Usually better to just check:if not _in_replay:
. This way, you can use the same script without worrying about making mistakes with copy-pasta crap.
It can become unwieldly having everything in one giant script. Having properly named .rpy files that breaks down events/scenes can be advantageous and the more organized approach can make it easier to find/fix issues.
The size of the file, itself, doesn't matter in terms of Ren'Py's performance, since Ren'Py loads all .rpy files once you open the game, however.
Absolutely, there could be some improvements to the code, and believe me, I understand duplicating "code" is undesirable and bad practice in a professional production setting. My copy-paste rebuttal isn't a defense of the practice, but a suggestion that's it's not such an insurmountable problem to cause the dev to drop the game.There is no need to do this. You just have to check if you are _in_replay and modify the script accordingly.
Handling such a large file can become very difficult to maintain with identical names.
Time will tell us, if I have raison.
In a sandbox game or other non-linear VN, it definitely makes sense to separate events into scripts by character or location. But this game is linear with little branching. I've been all over it, and had no trouble finding or making sense of anything here. The most complicated part of the code is the damn sex mini-game with Laura in the hotel, which is similar to minigames in Babysitter.
The Babysitter script was twice the size, all in one file, with multiple path branches, and was still completed. Unlike that script, Babysitters' script is far from being unwieldy. Certainly, nothing suggests Babysitters' script is too difficult to manage as joelurmel cited as the foundation for his belief that T4bbo was likely to abandon the project.
Again, I'm not saying keeping everything in one file is the right way to go or suggesting it's not disadvantageous. I'm saying that indie VN devs can make it work without much effort on their part. There are plenty of projects that carry on for years, some even to completion, with horrendous script organization or lack thereof. Unprofessional coding practices in these games aren't evidence that the project is facing abandonment.
I asked the question to see if there'd been any indication from T4bbo about difficulties with the game. It doesn't sound like there is any, just wild speculation.