Leakoo
ShineSl from patreon
ShineSl patreon

LOKP - The New Adventure - Act-3 - The Wild Planet (v0.1) News 7

🕑 Added 2025-09-25 02:41:33 +0000 UTC
LOKP - The New Adventure - Act-3 - The Wild Planet (v0.1) News 7

Comments

ShineSL

Yes, I know that Ren-Py allows to split code, but for some reason it breaks everything if do this in my project, and the funniest thing is that if I glue everything back into one file, as it was before splitting, the program will give a bunch of errors when I try to run the game, and the only thing to fix it - use a backup copy of the files that were saved before the split. And believe me, this isn't the only mystical thing I've encountered with my game code. Sometimes, completely unrelated scripts would, under certain circumstances, break parts of the game. For example, I remember adding a door password code to the random code, and the random code itself broke, forcing me to change its database. Or I wanted to hide the bottom menu in the game itself, which seems pretty easy to do, but after I did it, navigation stopped working properly, and the clickable map stopped working altogether, even though I hadn't touched the code responsible for their functions. So my code is a dangerous place, and I'm still lucky that I didn't break anything yet, even after changing battle system so much ;s.

ArmoredOpossum

I'm not generally the type to jump in on this kind of thing, but, as you said, 75k lines in a script file is legitimately terrifying. Just in case you're unaware, you can have multiple script files in a Renpy project. When you have a jump statement in a .rpy file, Renpy will automatically find the corresponding label in any other .rpy file within the game's directory. So, for example, right now in LOKPGAME/game you have a file called "script.rpy". You can create a new file in /game called "combat.rpy". If you have a statement like "jump combat_start" in script.rpy, and you have a corresponding statement "label combat_start" in combat.rpy, the script will seamlessly pass between those files. So you can have a separate script file for everything about combat, and then you can do the same for anything else you want, too. Like if you want to isolate all of the waitress path content, you can have something like "waitress.rpy" where all that code sits. You can also create folders and subfolders within /game to organize your scripts too - as long as the .rpy files are somewhere within /game, Renpy will find them. If you already knew about that and don't want to use it, no problem, just thought I'd mention it since it would probably make things way easier to edit if you didn't know.


More Creators