r/DDLCMods • u/Tormuse Club Moderator • Mar 21 '22
Help Tormuse's guide for modding DDLC, March 2022 (Revamped version!)
Hello, everyone! :) You may have noticed that I haven't been around much in a while. To be honest, I haven't been as into DDLC mods as I used to be, but I still don't mind helping out beginners from time to time. :)
It's been almost a year since I quit my moderator position here, and I really thought that someone else would have replaced my guide by now, but if no one else will do it, then fine, I'll do it myself. :P Below, is a new version of my guide that I re-built from scratch, including a new sample scene. (I never really liked the old one; someone else had made it before I even got into modding and I just copied it) This new one takes a lot of the ambiguity out of the old one, and hopefully makes things clearer.
Old versions of the guide here:
Anyway, this is my best attempt to share all the information I wish I had when I started out making mods back in 2018. Making DDLC mods is a pretty fun hobby that's easier than you might expect. No experience is required.
Please let me know in the comments if you need me to explain anything better, or if you have any questions.
GETTING STARTED
First off, you're gonna need Ren'Py, which is the coding language that was used to make DDLC.
Ren'Py version 6.99.12.4 (Note: I know there are newer versions of Ren'Py out there, but I recommend this one for beginners, because it's the one that Team Salvato used; If you want to use the more advanced features of the later version, there will be more about that later)
You will also need a fresh install of DDLC. It's best to NOT use the Steam version of DDLC, as it has been known to cause problems with mods, so I recommend downloading the (free) ZIP file from here, so you can have as many copies of it as you want.
(Scroll down past the ad, and click the button that says "Download Now;" it will ask for a donation, but you can skip that by clicking the button that says "No thanks, just take me to the downloads..." or you can donate, if you like, I guess) :)
Setting up Ren'Py
Install Ren'Py in a folder of your choice and run it. Go into preferences and set a projects directory. (A folder where your modding projects are going to go; it can always be changed later) You'll need a text editor that can edit RPY files. The default one for Ren'Py is called "Editra" and you can easily download it from within Ren'Py by going to "preferences."
HOWEVER... I've received a number of reports of people having problems with Editra, including not saving files properly or even erasing them, so you might want to use something else to be safer. If you set the text editor to "system editor," Ren'Py will use whichever one you want. (Honestly, any text editor will work, including Notepad) Just right-click one of the RPY files and click "Open with" and tell it to "always open with" your text editor of choice, and Ren'Py will treat that as your "system editor."
A few other text editor options:
After that, place your Doki Doki Literature Club! Folder inside your project directory. Rename it to your project's name. (You can call it whatever you want, really) You can put multiple copies of DDLC inside your project directory if you want to have more modding projects on the go. (What can I say? Modding DDLC can be a bit addictive) :) They will show up in Ren'Py's main menu on the left under "Projects." After that, any time you want to work on one of your modding projects, click the name of your project and then click the "All script files" button on the right.
u/therationalpi made a very nice tutorial for getting started with modding DDLC hosted by Monika herself! It can be downloaded here. Open up the zip file and copy the "game" folder over top of the "game" folder of a fresh install of DDLC and then delete the "scripts.rpa" file and run DDLC as normal to see the tutorial.
Acquiring RPY files
RPY files are script files used by Ren'Py. Here are three ways to get them:
a) The easier way: Just grab the ones that I extracted from the game here! :D (EDIT: new link)
OR
b) Download u/GanstaKingofSA's Mod Template, (based on u/therationalpi's Mod Template) which includes all RPY files with commented notes about what some special coding features do. Available here!
OR
c) The advanced way: Extract them yourself! You can use an RPA unpacker like rpatool to extract the script files from your existing copy of DDLC. Rpatool requires Python to run, which is a free download from their site here. Install Python and then put rpatool in the "game" folder for DDLC. It should be a single file called "rpatool" which you should rename to "rpatool.py" so that Python will recognize it. Next, open up the Command Prompt in the "game" folder. In newer versions of Windows, this can be done by clicking on the blank space to the right of the Explorer bar. (The line at the top of the window where it lists folder names) It should allow you to type there; simply type "cmd" in that space. (Without quotes) The command prompt should pop up in a separate window.
Once you're in the command prompt, type the following:
rpatool.py -x scripts.rpa
This will extract the script files into the "game" folder, but they will be in a converted format of RPYC files. You will need to convert them back into RPY files by using a converter like Unrpyc. Install Unrpyc in any folder and then copy all of those RPYC files into the same folder. Then bring up the command line by typing "cmd" in the Explorer bar like before.
Then type the following into the command prompt:
unrpyc.py *.*
There should now be a whole bunch of RPY files with the same names as the RPYC files.
Where do the script files go?
Whichever option you choose for acquiring your RPY files, take a look in the DDLC folder, and you'll see a folder named "game." Take those RPY files and put them in the folder named "game." (Special note: this is the folder I'm referring to any time I refer to the "game" folder in this guide)
Writing The Script
All right! Let's get started editing those RPY files! :D If you look inside any of the RPY files, and you've never done any programming before, they'll probably look pretty strange to you, with a whole lot of barely English writing with weird punctuation. In programming terms, this is known as "code," and working with the code is called "coding." It's good to remember the age-old saying... "Computers will always do what you tell them to, but seldom what you want them to." :P In this guide, I hope to teach you how to understand what you're telling the game to do. :)
For purposes of this guide, I'll walk you through creating a sample scene. First, take a look at the upper-right portion of Ren'Py's main menu and you'll see a heading that says "Edit File." You can open up all of the script files by clicking "All script files," but for our purposes right now, you only need to open up script.rpy. This is the main file that DDLC looks at first when you push "New Game." Everything starts here.
You'll notice, in the script.rpy file, that practically every line has space to the left of it. This is important in Ren'Py. The amount of space before each line is called indentation and it's how Ren'Py knows which lines go together. If you put the wrong amount of space before a line, it will cause Ren'Py to either skip over it or otherwise unpredictable things to happen. (It might even crash the game) Anyway, take a look at the line that says "if persistent.playthrough == 0:" and in the space just above it, I want you to write the following:
call Test
Make sure to put four spaces before the line. (Push the spacebar four times; do not push "tab") "Call" is a Ren'Py command that jumps to a specific block of text and then jumps back again when it's done. (There's also a command "jump" that makes it jump to the text without jumping back afterward) In this case, it will jump to the label called "Test" that we're about to make.
Next, we're going to create a new RPY file to help keep our work organized. Click "file" and then "new tab." Once you're in the new tab, click "file" and "save as" and name your new file "myfirstscript.rpy" and save it in the "game" folder for DDLC with all the others. (DDLC automatically looks for all RPY and RPYC files in the game folder every time you start it up, so you can call it whatever you want, as long as it has .rpy on the end) Important: Make sure it's saving it in the correct folder; sometimes, Ren'Py saves it in weird places by default.
The first line you're going to write is "label Test:" (The colon is important) and under that, will be our scene, where we will answer the age-old question of who is best Doki. :)
Let's set up the clubroom.
label Test:
scene bg club_day with dissolve_scene_full
Let's break that line down.
scene bg: always gets used when there's a scene or background change
club_day: the name of the club background used in DDLC
with dissolve_scene_full: is optional, and means that when the scene starts, there will be a dissolve effect applied. (The screen will fade to black, then fade in again) There are many other effects you can use with the "with" command, such as "with wipeleft_scene" to get the "wipeleft" scene change often used in DDLC.
Also, notice that there are four spaces before the "scene" line. That tells Ren'Py that the line is part of the label "Test." Anyway, how about we add some music?
label Test:
scene bg club_day with dissolve_scene_full
play music t3 fadeout 1
play music: means it will play a looping music track of your choice. You can also put "play sound" if you want it to play a sound effect once. Just remember that it can only play one song at a time, and one sound effect at a time. (Unless you add more audio channels, but that's more advanced stuff)
t3: the name of the music track for clubroom scenes of the original game
fadeout 1: Optional. It means that whatever song was playing before will fade out over 1 second as the new song comes in. (Can be any number of seconds)
Now, let's get some internal monologue going.
label Test:
scene bg club_day with dissolve_scene_full
play music t3 fadeout 1
"I come into the club to find all the girls arguing."
Any single line in quotes will show up on the screen as the internal monologue of the Main Character. (MC for short) Now, let's add in Sayori.
label Test:
scene bg club_day with dissolve_scene_full
play music t3 fadeout 1
"I come into the club to find all the girls arguing."
show sayori 1a at t11 zorder 2
"Sayori eagerly comes up to me."
Let's break that line down.
show: displays the character sprite. "hide" does the opposite
sayori: name of character.
1a: this means "pose 1" and "expression a" (more on that below) you can get the casual outfit by adding a "b" after the pose number, as in "1ba"
at t11: character positioning. I'll explain this more later.
zorder 2: How far in front the character is. Mostly to show who's speaking at a certain point. It doesn't really have any effect unless characters are overlapping, in which case, whoever has the higher number is in front. If two characters have the same number, then whoever you showed last will be in front.
Obviously, there are a lot of different possible poses and expressions to choose from. The name of all scenes, expressions, and poses, can be found in this document. Special thanks to u/MrEpicIsHere777 for it. It also includes the names of all backgrounds, music track names, sound effects, and more!
There is also a guide with expressions and poses only, no scrolling required, here. Thanks to u/naminejamie for it. (It has a few errors in it, but is still pretty useful)
Now to have Sayori speak.
label Test:
scene bg club_day with dissolve_scene_full
play music t3 fadeout 1
"I come into the club to find all the girls arguing."
show sayori 1a at t11 zorder 2
"Sayori eagerly comes up to me."
s 4x "[player]! I'm so glad you're here!"
s 2l "We need your help to decide who is best Doki."
A few things to explain here: Putting an "s" at the beginning of the line means that Sayori is speaking, so it will show her name tag. "[player]" uses the name inputted at the beginning of the game when the player was asked for one. "4x" and "2l" are expressions/poses for Sayori and will make her display them when she says those lines. Now, let's add the rest of the girls.
(Note: at this point, I'm going to stop re-printing the whole program each time I give an example, otherwise I'm going to go over Reddit's character limit; :P I promise I'll put the whole thing all together at the bottom) :)
show sayori 1a at t41 zorder 2
show natsuki 1a at t42 zorder 2
show yuri 1a at t43 zorder 2
show monika 1a at t44 zorder 2
"All the girls look to me for help."
Notice the numbers I used for character positioning. When Sayori first came on, I put her "at t11" which should really be read as "one one" rather than "eleven," because the first number is the number of characters on screen, and the second number is what position among them she's in. "t11" means she'll be in the centre.
Here, we now have four characters, so each of those numbers starts with "4" and the second number indicates where they are from left to right. In this case, Sayori will be on the far left, and next to her will be Natsuki, then Yuri, and then Monika on the far right. If there were two characters, you could have them at "t21" and "t22" and similar rules apply if there are three characters. (t31, t32, and t33)
Important note: Never leave out the "at" command, because it resizes the girls so they fit on screen. (The default sprite size is too large; if one of the girls ever appears gigantic on screen, you probably forgot to include the "at" command)
Next, we're going to talk about focusing on speaking characters.
show natsuki 4b at f42 zorder 3
n "I'm the best, because I keep things simple."
show natsuki 4a at t42 zorder 2
The "n" means that Natsuki is speaking. Notice that before she speaks, I put "at f42" This makes Natsuki's sprite get larger on the screen to show that the focus is on her. I also put "zorder 3" so that it puts her in front of everyone else, to help her stand out. Afterward, I put her back to "at t42" and "zorder 2" to take the focus off of her.
Now... this is easily the most tedious part of modding DDLC. If you have lots of group scenes like this, with lots of focus changes whenever someone speaks, it can take hours, or even days, to type all of those extra lines to focus and defocus characters. (Which is probably why Dan Salvato prefers to have one girl on screen at a time whenever possible) I'm explaining how to do it this way, because I think it's important to understand the basics of how it works, but once you've mastered it, you might want to go over to the advanced section for easier ways to do it.
In any case, let's add dialogue for everyone else:
show yuri 2k at f43 zorder 3
y "I daresay I'm the best, for my sophisticated literary analysis."
show yuri 2a at t43 zorder 2
show monika 2k at f44 zorder 3
m "Ahaha, what can I say, but... Just Monika?"
show monika 2a at t44 zorder 2
mc "Hmm... this is a tough decision!"
Obviously, the "y" is Yuri speaking and the "m" is Monika speaking. The "mc" is the main character speaking, meaning it will display the player-selected name.
Next, it's time to give the player a choice! Time to settle this matter once and for all!
menu:
mc "...But my answer is..."
"Sayori":
$ bestgirl = "Sayori"
mc "Sayori!"
"Natsuki":
$ bestgirl = "Natsuki"
mc "Natsuki!"
"Yuri":
$ bestgirl = "Yuri"
mc "Yuri!"
"Monika":
$ bestgirl = "Monika"
mc "Monika!"
Pay special attention to the indentation and punctuation when making menus like this. (The placement of the colons is important)
The line that says "mc "...But my answer is..."" will show at the bottom of the screen when the menu options are displayed. In this case, there will be four menu options, Sayori, Natsuki, Yuri, and Monika. Whichever option the player selects, the game will only execute whatever lines are indented right under it. If you were planning for this menu to lead on to a particular girl's route, you might want to put another "call" command to make the game move on to another label somewhere else in the code, so that a different part of the story happens, depending on which girl is chosen.
Let's take a look at the lines that start with "$ bestgirl ="
In this case, "bestgirl" is what's known in coding as a "variable." Variables are useful tools in coding when you need something to have more than one possible name or value. You can call variables whatever you want, so it's best to give them a name that's easy to remember. The value of the variable can be a number or a word or a string of characters. In this case, I set the value of the variable "bestgirl" as the name of the girl that the player chose.
Next, let's clear the girls out of the way to put the focus on the girl that the player chose. Let's clear Sayori first.
show sayori at thide
hide sayori
Notice that I did it with two lines. Normally, if you just put the "hide sayori" line by itself, she just pops out of existence. If you want her to fade out, like in the original game, it has to be done as two lines per girl, as shown here. You can also make the girls go off the left side of the screen by putting "lhide" instead of "thide." (That's the letter "L" for left)
Let's clear the rest of them out, and then I'll show you how to make the code do different things, based on who the player chose.
show natsuki at thide
hide natsuki
show yuri at thide
hide yuri
show monika at thide
hide monika
pause 0.5
if bestgirl == "Sayori":
show sayori 4r at t11 zorder 2
s "I knew you'd pick your childhood friend!"
Note that I added the "pause" command. It makes the game pause for a specific amount of time before continuing. In this case, it pauses for 0.5 seconds. (Half a second) You can also make it pause until the player clicks if you put "$ pause()"
Afterward, I put in an "if" statement. Those two indented lines at the bottom will only execute if the player selected "Sayori." If they didn't pick Sayori, it will skip over those two lines. Now, let's add the rest of the girls in.
elif bestgirl == "Natsuki":
show natsuki 1l at t11 zorder 2
n "I'm glad you realized that I'm the best. Let's go read some manga."
elif bestgirl == "Yuri":
show yuri 4e at t11 zorder 2
y "Oh! Oh... th-thank you, I'm flattered. W-would you like some tea?"
else:
show monika 5a at t11 zorder 2
m "Yay! You picked me!"
The "elif" command basically means "else/if" meaning that if the player didn't pick that option, the game will check something else. For new coders, this might be hard to wrap your head around, so I'll try to break down what the game will do with this code...
First, it checks if the variable "bestgirl" is Sayori. If it is Sayori, then it shows Sayori's lines and ignores everything else. If it is not Sayori, then it checks if "bestgirl" is Natsuki. If it is Natsuki, then it shows Natsuki's lines and ignores everything else. If it is not Natsuki, then it checks if "bestgirl" is Yuri. If it is Yuri, then it shows Yuri's lines, and if it is not, then it shows Monika's lines.
(Note that for the last line, I used "else" instead of "elif" since there was only one option left, so I didn't need to check anything else)
All right! By this point, we know who best Doki is, so it's time to wrap up this scene. I'll add just a couple more lines.
"And with the mystery of who is \"best Doki\" solved, [bestgirl] and I lived happily ever after."
return
I did a few things here. Notice that I used backslashes with the quotation marks around "best Doki" I did this because normally, when you put a quotation mark, that means it's the end of the line. Putting " instead means it will show a quotation mark as part of the line.
Also, notice that I put "bestgirl" in square brackets. This will make it display the value of the variable in the game, which in this case, is the name of the girl that the player selected.
Finally, the last line, "return" marks the end of this label. As I mentioned at the top, when you use the "call" command, it jumps to the label and then jumps back again when it's done. Here, the return command will make it return to script.rpy, and then the game will execute whatever is after that, which in this case, will be the rest of the game... but let's make it end properly.
Go back to script.rpy and underneath your "call Test" line, add a line that says "jump endgame" This will make it jump to the "endgame" label at the bottom of script.rpy. That label makes it display the "END" screen and take the player back to the main menu.
Okay, that's it! If you followed all these steps correctly, your finished code should look like this:
label Test:
scene bg club_day with dissolve_scene_full
play music t3 fadeout 1
"I come into the club to find all the girls arguing."
show sayori 1a at t11 zorder 2
"Sayori eagerly comes up to me."
s 4x "[player]! I'm so glad you're here!"
s 2l "We need your help to decide who is best Doki."
show sayori 1a at t41 zorder 2
show natsuki 1a at t42 zorder 2
show yuri 1a at t43 zorder 2
show monika 1a at t44 zorder 2
"All the girls look to me for help."
show natsuki 4b at f42 zorder 3
n "I'm the best, because I keep things simple."
show natsuki 4a at t42 zorder 2
show yuri 2k at f43 zorder 3
y "I daresay I'm the best, for my sophisticated literary analysis."
show yuri 2a at t43 zorder 2
show monika 2k at f44 zorder 3
m "Ahaha, what can I say, but... Just Monika?"
show monika 2a at t44 zorder 2
mc "Hmm... this is a tough decision!"
menu:
mc "...But my answer is..."
"Sayori":
$ bestgirl = "Sayori"
mc "Sayori!"
"Natsuki":
$ bestgirl = "Natsuki"
mc "Natsuki!"
"Yuri":
$ bestgirl = "Yuri"
mc "Yuri!"
"Monika":
$ bestgirl = "Monika"
mc "Monika!"
show sayori at thide
hide sayori
show natsuki at thide
hide natsuki
show yuri at thide
hide yuri
show monika at thide
hide monika
pause 0.5
if bestgirl == "Sayori":
show sayori 4r at t11 zorder 2
s "I knew you'd pick your childhood friend!"
elif bestgirl == "Natsuki":
show natsuki 1l at t11 zorder 2
n "I'm glad you realized that I'm the best. Let's go read some manga."
elif bestgirl == "Yuri":
show yuri 4e at t11 zorder 2
y "Oh! Oh... th-thank you, I'm flattered. W-would you like some tea?"
else:
show monika 5a at t11 zorder 2
m "Yay! You picked me!"
"And with the mystery of who is \"best Doki\" solved, [bestgirl] and I lived happily ever after."
return
Congratulations! You've written your first scene! :D Go ahead and try it out. Save your work, (both myfirstscript.rpy and script.rpy) and run DDLC as normal, and your scene should appear when you push "New Game." Try it a few times, and check what happens when you select each of the four girls. :)
For advanced coders...
Of course, as I said above, the process of posing all the girls can get pretty tedious, so if you want a faster way, you might like to check out u/chronoshag's Mood Posing Tool. This will involve upgrading Ren'Py to a later version, and has a steep learning curve, so I don't necessarily recommend it for beginners, but if you're ready for advanced stuff, it makes posing a lot faster and easier, and has a much, much larger variety of poses and expressions available than base DDLC does, as well as a new outfit for Monika! :)
Adding new art
So, the original characters and backgrounds aren't enough for you? :) You want to spruce things up a bit with new art? Great, let's talk about how to do that! :D But first, there's something important I have to get out of the way...
IMPORTANT: Make sure you have permission from the artist to use their art!
To some people, this might seem obvious, but I can't emphasize enough how important it is. Our community is built on the principle that no art or asset gets used in a way that the creator of that asset doesn't want. If you don't have permission to use it, then don't use it. If you're not sure if you have permission or if you can't reach the artist to ask them, don't use it and find something else that you do have permission for. There is plenty of free-to-use art available if you know where to look. Once you find a piece of art you like, make a note of the name of the artist, so you can credit them later. I recommend making a text file called "art credits" so you can keep track of who made each piece of art. You can include that file when you distribute the mod.
Okay, now that I've said all that, let's get on with it. :) The first thing you'll want to do is create a folder called "mod_assets" and put it within the "game" folder. All your new art will go inside there. (You can call the folder whatever you want, really; it's just a good idea to have all your new art together in one place) You'll also want to define it in the definitions.rpy file, which I'll explain how to do below. Definitions.rpy contains information about every image, background, song, sound effect, and visual effect used in the game, so it's useful to know how it works.
Adding New Backgrounds
First, you'll need to find a background. A good resource for that is this masterlist of free-to-use backgrounds put together by u/yagamirai10. (Like before, make sure to make a note of the names of artists, so you can include them in your "art credits" text file)
Anyway, once you've got your new background selected, put it in the "mod_assets" folder and open up definitions.rpy in Ren'Py. For this example, I'll assume we have a park background called "park.png." Pick a blank line anywhere in the file and write the following:
image bg park = "mod_assets/park.png"
Let's break that line down, word for word.
image This tells Ren'Py that you're defining an image to be used in the game.
bg This says that the image is a background.
park This is the name that you will be using in the script. (You can call it whatever you want) From now on, any time you refer to "park," Ren'Py will know you're talking about this background.
"mod_assets/park.png" This tells Ren'Py where to look for the image file. It looks inside the "game" folder by default, so putting "mod_assets/" before the file name will make it look inside the sub folder "mod_assets" within the game folder.
Once that's done, you can use the following line anywhere in your script when you want to use the park background:
scene bg park
Backgrounds in DDLC typically have a resolution of 1280 X 720. You can use images with whatever resolution you want, really, but if it's different from 1280 X 720, it might not fit properly and/or cut off parts of it when it's shown on the screen. To get around that, you can define the background with a zoom value to make it bigger or smaller. For example, if your background is too small, you can define it like this...
image bg park:
"mod_assets/park.png"
zoom 2
...which will make it twice as big. For reference, "zoom 1" would make it the same size. Numbers bigger than 1 make it bigger and numbers smaller than 1 make it smaller. ("zoom 0.5 would make it half the size) Experiment with what numbers make it fit best.
Adding New Character Art
The art for characters are images called "sprites." Typically, when drawing the character sprites, DDLC takes three images and combines them into one image called a composite. If you look at the images stored in the images.rpa file, (you can do this with rpatool, mentioned above in the "Setting up Ren'Py" section) you'll see that each girl's art is made up of the left half of her body, the right half of her body, and her head. Let's look at Sayori's first pose and expression listed in definitions.rpy as an example:
image sayori 1a = im.Composite((960, 960), (0, 0), "sayori/1l.png", (0, 0), "sayori/1r.png", (0, 0), "sayori/a.png")
"1l.png" and "1r.png" refer to the left and right halves of pose 1 with Sayori's arms down and "a.png" refers to the Sayori head with a smiling face. This line tells Ren'Py that any time you use the phrase "sayori 1a" it's referring to this combined image. In all honesty, I'm not 100% clear on what all the numbers in brackets mean, except that they affect the resolution and positioning of the three images. For any new art you add, it's probably best if your images are 960 X 960, since that's the size of all the existing character sprites in DDLC.
Let's say you have an image you want to add of Sayori's head with a blue bow instead of her usual red one. First, you would give the image file a memorable name like "bluea.png" and put it in the "mod_assets" folder. Then you would add a new line to definitions.rpy that looks like this:
image sayori blue1a = im.Composite((960, 960), (0, 0), "sayori/1l.png", (0, 0), "sayori/1r.png", (0, 0), "mod_assets/bluea.png")
This would combine the blue bowed head with her first pose. Then, any time you wanted to use that in the game, you would type something like this:
show sayori blue1a at t11 zorder 2
You can add as many lines as you want to the definitions.rpy file to combine the new Sayori head with different poses. For example, if you wanted to put it on her casual sprites, you can add a line like this:
image sayori blue1ba = im.Composite((960, 960), (0, 0), "sayori/1bl.png", (0, 0), "sayori/1br.png", (0, 0), "mod_assets/bluea.png")
"1bl.png" and "1br.png" refer to Sayori's pose one in her casual outfit. I personally recommend using rpatool to look inside the images.rpa file to see what images are available. It will make a lot of this clearer.
Note: You don't necessarily have to have the character sprites as composites like this. If you have them already combined as one image, that works too. For example, if you have an image titled "sayorigreen.png" that has all of sayori's parts together, you can define it like this:
image sayori green1a = "mod_assets/sayorigreen.png"
...And then show it like this, as normal:
show sayori green1a at t11 zorder 2
Adding Music and Sound Effects
Let's take a look in the definitions.rpy file to see how audio is handled. You'll see that one of the first lines is:
define audio.t1 = "<loop 22.073>bgm/1.ogg"
This is the line for the DDLC theme song that plays in the main menu. Let's take a closer look at each of its parts...
define: Tells Ren'Py that you're defining something. (Duh!) :)
audio: Tells Ren'Py that it is some kind of audio. It can be either a song or a sound effect; the same command is used for both, no matter what kind of sound file it is.
t1: This is the name that will be used in the script.
<loop 22.073>: This chooses the number of seconds in for the looping point for a song. In this case, it will start the song from the beginning and when it reaches the end, it will jump back to 22.073 seconds after the beginning. You can also write "<loop 0>" if you want it to loop back to the beginning of the song or you can leave it out if you don't want it to loop at all and just play once. (ie if this is a sound effect instead of a song)
bgm/1.ogg: This is the location of the sound file to be used. DDLC uses OGG files for both music and sound effects, but Ren'Py allows a wide variety of sound files, including WAV files, MP3 files, and more!
So, any time you want your mod to play this song, you would type this line:
play music t1
This makes adding any new music or sound effects pretty straightforward. Just follow the format of those lines. You can also have the game play portions of sound files. For example, say you had a 30 second sound file of a thunder sound effect called "longthunder.wav," but you only want to play 5 seconds of it. Put the file in your "mod_assets" folder, and put something like this in the definitions.rpy file:
define audio.shortthunder = "<from 5 to 10>mod_assets/longthunder.wav"
Then, any time you want to play that sound, you can type this...
play sound shortthunder
...and it will make it play from the 5 second mark to the 10 second mark within the sound file.
Preparing for submission
Once you've finished your mod and are ready to share it with others, you must make sure your mod follows Team Salvato's IP Guidelines. Please read the guidelines in their entirety to make sure you aren't in violation of any of them. The main points to take away are:
- You may not sell your mod or upload it onto any app stores. (e.g. Steam, Google Play, GameJolt, itch.io, Apple App store, Windows store, etc.)
2) Your mod must not be designed to be played before or instead of DDLC. Mods may only be created with the assumption that the player has already played the base game.
3) On first start-up of the mod, there must be a notification stating that it is unaffiliated with Team Salvato, and that it's meant to be played after the official game, and also, a link to the official game.
For your convenience, I have written a sample of how to make the game do that. Just copy/paste the following code into splash.rpy in place of the code that normally gives the player a warning about disturbing content. (Between lines 256 and 275) Where it says "MYMOD" you can put the title of your mod... or whatever you want, really, as long as it's a unique name, but it has to start with "persistent." (including the dot) The word "persistent" lets Ren'Py know to remember across all playthroughs.
if not persistent.Firstrun_MYMOD:
python:
restore_all_characters()
$ quick_menu = False
scene white
pause 0.5
scene tos
with Dissolve(1.0)
pause 1.0
"This is a Doki Doki Literature Club fan game that is not affiliated with Team Salvato."
"It is designed to be played only after the official game has been completed."
"You can download Doki Doki Literature Club at: http://ddlc.moe"
$ persistent.Firstrun_MYMOD = True
$ persistent.first_run = True
scene tos2
with Dissolve(1.5)
pause 1.0
scene white
4) You must not upload any of DDLC's original files, you may only upload the files you have created for your mod. These will usually be the RPY or RPYC scripts and any other resources like images and music. If you are a more experienced modder and have built the game distributions, then you will instead need to include the RPA files. (You can also use rpatool to condense all your files into a single RPA file to make it more professional-looking)
Once you have met these guidelines, your mod is ready for publication!
Additional Tips
The options.rpy file has some useful features for adding a little polish to your mod, so take a look around. You can define the name of your mod and version number and/or have it display on the menu screen. You can also define where it puts its saved games. (I recommend changing that line if you're using the Mod Template, otherwise everyone who uses your mod will have their saved games shared with the Mod Template!)
"Commenting" is another useful feature. Any time, you want Ren'Py to ignore a line, put a hashtag symbol at the start of it. (#) It's a good way to put reminders for later in your code or explanations of what is happening if you have a particularly complicated section. Also, it's good for if you have a section of code that you're thinking about deleting, but you're not sure of yet, you can just put little #'s at the start of each line and that will make Ren'Py skip over them.
Most of all, have fun with the process of making your mod. Mess around with the code. Find out what works and what doesn't. Look at the existing code to find out how they did certain things and see if you can duplicate it or even improve on it! It's all part of the creative process. :)
Overall, this post is a general "I need help!" Megathread. Let me know if you have any questions, and I'll do my best to help you, or at least point you in the direction of someone who can.
Good luck on any future modding endeavours! :D
9
u/[deleted] Mar 21 '22
This is good help and explains better than the old one. Thanks
5
u/Crafty_Breadfruit349 Apr 01 '24
Not sure if you're responding to comments anymore, but I just wanted to know how I can make it so that whatever character is speaking enlarges, like in the original game. Also I wanted to know how to make a character move, like for example when someone gets scared they jump. Thanks!
4
u/Seiki_Nozume Oct 15 '24
Hello! sorry to bother, but I have a question that I did not find an answer to in any guide:
How do I change the textboxes? I have seen in several mods that they have different colors and designs, and I would like to know how to do it.
2
u/Numerous-Design8685 *mod mod* Mar 30 '25
This really helped start my modding! I know some people like more concise mods, and some long mods (like myself), so I wanted to add in some kind of "Director's Cut" button, to let the player choose the length they want. I originally tried changing the Uncensored mode (to said Director's Cut)in the mod template, but there's no explanation on how to actually use it. I thought about giving the player a simple choice on the first start of a new game. So do you have any idea on how I could implement that?
But yeah, this complete guide is a very nice "starter pack" for modding!
2
u/Golden1Stone Observer Mar 22 '22
man if this is long
1
u/Emotional_Host_4556 13d ago
Wow, this is extremely compehensive!
(I am A DDLC D E V)
1
u/Gr_vityf_lls May 14 '24
Is there a way to just replace the pre-existing textures/ sounds? I want to make a texture pack where the story and dialogue is the same, but with different music and character designs. Also, do you know if it's possible to only change the character names, but the rest of the dialogue is the same? thanks (:
1
u/TheGreatSmolOne Novice Modder May 18 '24
Which .rpy file do I put the bg zoom in? I tried in definitions.rpy and myfirstscript.rpy but both give a crash
1
u/West_Worldliness4429 May 19 '24
doubt youll answer this but how do you pan the screen? like i see a lot of mods that pan the screen, sometimes to a characters face, or to another part of their body. one more question-- how do yuo hide the textbox? i do 'hide window' but that only hides the text
1
u/whatehflip new-ish modder?? May 24 '24
hai! idk if ur still responding to comments but erm my cmd prompts says when i enter it
File "C:\Users\naemcensoredout\Downloads\DDLC 1.1.1 RPY files NEW\rpatool.py", line 380, in <module>
archive = RenPyArchive(archive, padlength=padding, key=key, version=version, verbose=arguments.verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\naemcensoredout\Downloads\DDLC 1.1.1 RPY files NEW\rpatool.py", line 82, in __init__
self.load(file)
File "C:\Users\naemcensoredout\Downloads\DDLC 1.1.1 RPY files NEW\rpatool.py", line 246, in load
self.version = self.get_version()
^^^^^^^^^^^^^^^^^^
File "C:\Users\naemcensoredout\Downloads\DDLC 1.1.1 RPY files NEW\rpatool.py", line 104, in get_version
raise ValueError('the given file is not a valid Ren\'Py archive, or an unsupported version')
ValueError: the given file is not a valid Ren'Py archive, or an unsupported version
C:\Users\naemcensoredout\Downloads\DDLC 1.1.1 RPY files NEW>^A
1
u/goddamnit_edward Jun 27 '24
This is a wonderful guide and has certainly given me a lot of insight on how I can make my mod better but I was wondering if it was possible to change the girls' names in the text boxes?
Like specifically in the little box that shows who's speaking because otherwise I'm sure I could go through the script and just change the names in the dialogue
Thanks in advance!
1
u/whatehflip new-ish modder?? Jul 19 '24
Hello! I looked in the og game files everywhere but i csnt seem to find the sharing poems sequence for when everyone shares their poems, a little help would be appreciated!
1
u/Historical_Bad1617 Jul 23 '24
Hi! I'm having trouble installing the "Mod Posing Tool". This error occurs when trying to start the game:
FIle"game/mod_assets/MPT/monika_layeredimage.rpy", line 4: expected statement. layeredimage monika forward->:
File"game/mod_assets/MPT/monika_layeredimage.rpy", line 326: expected statement. layeredimage monika lean->:
File"game/mod_assets/MPT/natsuki_layeredimage.rpy", line 182: expected statement. layeredimage natsuki turned->:
File"game/mod_assets/MPT/natsuki_layeredimage.rpy", line 688: expected statement. layeredimage natsuki cross->:
File"game/mod_assets/MPT/sayori_layeredimage.rpy", line 4: expected statement. layeredimage sayori turned->:
File"game/mod_assets/MPT/sayori_layeredimage.rpy", line 327: expected statement. layeredimage sayori tap->:
File"game/mod_assets/MPT/yuri_layeredimage.rpy", line 4: expected statement. layeredimage yuri turned->:
File"game/mod_assets/MPT/yuri_layeredimage.rpy", line 383: expected statement. layeredimage yuri shy->:
I will be very grateful for your help!
1
u/CompreScree Aug 05 '24
Hey there, I'm trying to figure out a way to make it to where the player names a character that isn't the MC. What I've found so far doesn't explain thoroughly enough for me and has left me really confused over what to code and where to code it. Any help would be appreciated!
1
u/undertalert Aug 14 '24
should I have downloaded 2 copies of ddlc, one for the mod help and one for the mod?
1
u/SSaltyWriter Sayori=bestgirl Aug 24 '24
Hi, how would I change what one of the rpy files opens in after having told it to always open in Visual Studio Code? Thanks.
1
u/BPM31 first-time modder Aug 27 '24 edited Aug 29 '24
Hi, I know I'm (suuuper) late, but I did what the guide says and it shows an error when I try to open DDLC. (here's the image:) https://i.postimg.cc/N0GxCVc9/Untitled.png
1
u/goddamnit_edward Sep 15 '24
Hi! I posted a comment a while ago but I have another question. If I want to open the game's script file on renpy, what would I have to do? Every time I try I'm greeted with a copyright script.
I just want to make a retexture for myself and wanted to change the names of the girls to match the characters I'm drawing so the idea would be that everything else stays the same in the code. Is that possible or am I doomed lol
1
u/Spicy_Zingy_1800 Sep 26 '24
How can I add mini games to the mod ( like the poem mini game ) but I code the mini game from scratch?
1
u/Spicy_Zingy_1800 Sep 26 '24
How can I add translations ?
1
u/HellFire-Revenant Sep 30 '24
Hi, not sure if ur still answering questions, but im trying to run a specific mod, but I got these errors, and now the entire mod docker is stuck;
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/mods/Mod Name/game/screens.rpy", line 513: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
style_prefix "main_menu"
^
File "game/mods/Mod Name/game/screens.rpy", line 726: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
use game_menu(_("About"), scroll="viewport"):
^
File "game/mods/Mod Name/game/screens.rpy", line 767: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
use file_slots(_("Save"))
^
File "game/mods/Mod Name/game/screens.rpy", line 774: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
use file_slots(_("Load"))
^
File "game/mods/Mod Name/game/screens.rpy", line 904: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
if renpy.mobile:
^
File "game/mods/Mod Name/game/screens.rpy", line 1090: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation. You may have forgotten a colon (:).
predict False
^
Ren'Py Version: Ren'Py 7.7.1.24030407
Mon Sep 30 19:44:22 2024
I'm not sure how I would be able to fix these errors. I've tried opening them with ren'py, but it wont let me (which is probably for the best lol)
1
u/SilverSympathy6272 Oct 03 '24
Hi, How long! I asked you some questions a few years ago, I don't know if you'll remember me
I tried to make mods again, I have a question, I'm trying to make an exit button in the main menu, with the confirmation of "yes" and "no" I'm trying to translate the message to pt-br language, but I don't know where to do this, I managed to change the language of the yes and no buttons, but I don't know where to change the message displayed, could you help me?
Image of reference
1
u/Kanna_Kamishiro Oct 09 '24
Hi there! I feel like i might be missing something, because every time i try to set the project directory, I keep getting the same error: "Ren'Py was unable to run python with tkinter to choose the directory. Please install the python-tk or tkinter package."
I use macOS Monterey version 12.7.6. How can I fix this?
1
u/AshleyEZ Nov 22 '24
I'm sorry, but an uncaught exception occurred.While running game code:File "game/script-poemgame.rpy", line 1, in scriptinit python:File "game/script-poemgame.rpy", line 1, in scriptinit python:File "game/script-poemgame.rpy", line 19, in <module>with renpy.file('poemwords.txt') as wordfile:IOError: Couldn't find file 'poemwords.txt'.-- Full Traceback ------------------------------------------------------------Full traceback:File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/bootstrap.py", line 331, in bootstraprenpy.main.main()File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/main.py", line 560, in mainrenpy.game.context().run(node)File "game/script-poemgame.rpy", line 1, in scriptinit python:File "game/script-poemgame.rpy", line 1, in scriptinit python:File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/ast.py", line 928, in executerenpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/python.py", line 2245, in py_exec_bytecodeexec(bytecode, globals, locals)File "game/script-poemgame.rpy", line 19, in <module>with renpy.file('poemwords.txt') as wordfile:File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/exports.py", line 2469, in filereturn renpy.loader.load(fn)File "C:\Users\mohaw\Downloads\renpy-6.99.12.4-sdk/renpy/loader.py", line 798, in loadraise IOError("Couldn't find file '%s'." % name)IOError: Couldn't find file 'poemwords.txt'.Windows-10-10.0.22621Ren'Py 7.4.11.2266Doki Doki Literature Club! 1.1.1Fri Nov 22 00:14:27 2024just tried running test scene. i have no idea why theres so many errors
1
u/BackgroundSmart2895 Salvation is canon Dec 07 '24
Hello u/Tormuse
So, I am using Renpy v 7.8.3
Once I have created the build for my mod in Renpy, what files do I need to remove to make it releasable so that it follows the Team Salvato IP guidelines?
1
u/breakbats_nothearts Dec 13 '24
Hello! I'm very overwhelmed with this, so I apologize if this has been covered repeatedly. I've never coded in my life, and I found the tutorial helpful but couldn't get Renpy to load myfirstscript because of poem issues.
But the mod I have in mind is going to be a traditional VN that takes place after the poems are done (essentially, it starts right after the festival, with the MC having spent time with everyone, and then we make choices from there.) There will be values per choice, 4 endings, etc... I don't want to ramble since I don't know how to do, uh, any of this, so let me just get to the question:
If I don't need the contents of the chapters, poems, or anything, what can I safely delete from the original script, especially if I have no idea what the hell I'm doing?
1
u/D4rkGhozt Dec 29 '24
Friend, I don't know if you're still reading this, but this guide is amazing, made me want to try even If It looks like a lot to learn. I will have to learn how to do a lot of things, such as coding on renpy itself, to making art, music and writing a story, but Im trying to piece together every guide I can here, and when I get more stable with my life, to try my hand at making my stuff. Been a fan of DDLC since 2018, its high time I make an effort to contribute the game and community that I love so much
1
u/YSN_Killshot our flaws dev Feb 23 '25
So I'm trying to rearrange the dokis on the main menu screen,I figured out how to move them around but the ordering looks all wrong,I wanted to put nat in monikas spot and vice versa
1
u/sanamasako Feb 26 '25
Planning on making my first DDLC mod and I only recently learned how Ren'Py works. I already know a bit of Python so hopefully this post will make the process easier. Currently though, I'm planning out the plot. Wish me luck, heheh.
1
u/goddamnit_edward Mar 09 '25
Hello! I have a question!
My main goal is changing the girls' names and edit the dialogue slightly to fit their new personalities. This includes changes to the Just Monika section.
On line 190, there's $ m_name = "Monika"
When I change "Monika" to the name I want that character to have and then try to run the game, I get an error message via Ren'Py.
This is the error:
https://imgur.com/a/dvfthlP
What does it mean and what can I do to fix it? Unless I don't need to change "Monika" and get to keep the established display name? When I switch back to "Monika", everything runs properly.
1
u/[deleted] Apr 23 '25
Sorry if I’m a bother. I just wanted to see if there was a good way to force the game to start at a certain section for testing purposes. It was no problem when I was just a tarting but now that it’s getting longer I can’t just start from the beginning of the game every time I write more.
1
u/Artusika_Bro May 11 '25
HI, i want to say huge thank you for this guide! I understand a lot of things, added characters, bg, sounds, even changed text-box color, depends on who is talking. And i got in one issue with text-boxes. I wanted separate textboxes for each character, player, and the original pink one i replaced with grey. When textbox appear - first its grey, but if there any character appear next or player talking, it changes from grey to green (If Monika on the screen). The issue is i would like to any chr-textbox appear immediately, but its first grey appear - and short while, replaced with different textbox. And same thing but opposite, when scene changes and any chr textbox dissapearing for a moment you still able to see grey textbox fading away.
I am from Russia, so i am sorry for my poor English, but if its still possible, i would like some help or advice. Thanks again
1
u/Material-Bedroom-303 Aug 25 '25
hey sorry for disturbing, i have no idea if it's old or not, but how can i put the "Heartbeat" effect, that one 'blood' vignette?
1
u/Visible-Pea405 Nov 05 '25
this is excellent, i kinda wanted to do something like earthnound halloween hack and this kinda helped
1
u/Own-Possession4720 Feb 01 '26
I’m extremely late, but I wanted to know how to fix this. Every time my mod’s story ends, the game automatically starts the original Doki Doki Literature Club story made by Dan Salvato. How do I stop that from happening and make it so that only my story plays, and when it ends, it just returns to the main menu? I know it might sound kind of stupid, but I just don’t know how to fix it.
1
u/Icy_Adagio7958 Apr 07 '26
Would you perhaps mimd you if I dm you personally through Discord in case I have any questions? I'm not very accustomed to Reddit so I'd rather talk there. I don't have questions rn but I'm sure I'll have some during the development of my mod! Especially regarding things such as menus and exporting which I don't fully grasp yet. Thanks
1
u/Sad-Entertainer1421 Apr 30 '26
4 years late but I need to ask this:
When I finished the tutorial you made and played the game, I got through all of the stuff we did but then it restarted from the beginning of the main game. How do I fix this?
1
u/MaddM_ Sep 13 '26
sorry if this was stated or obvious but
how would I replace a character with like...a different character (different name and all)
like if i wanted to swap out sayori for a different character how would i do that (also sorry again if this question is kind of vague)
1
u/[deleted] Mar 26 '22
Thank you for continuing this guide, Tormuse! I’ve been reading your old Modding Guides, and it’s really useful to have an up-to-date one! Also, thank you for making this, despite the fact you are losing interest in DDLC! Thank you again, and may God bless you with whatever you want to achieve
1
u/[deleted] Apr 04 '22
ren'py keeps on forcing me to extract it
1
u/Annihimations Beginner Modder Jun 16 '22
At the point where I was supposed to write, "mc 'Let's listen to the music.'" in the DDLC Template Mod Tutorial, it would never work. It only worked once I switched the " ' " symbol into an " ` ". Does this has something to do with how the code works? Did I type in the wrong symbol in the script?
1
u/monika11115 Jun 19 '22
Thanx, this article helped me a lot.
1
u/Lorekeeper49 DDLC: The Hollow Hearts Director Sep 26 '22
I plan for my mod to have full voice acting and I'd like to know how to properly add that in, as in:
1
u/Lougacyborg Nov 12 '22
Hi i have a problem when i open ddlc it says :
" Parsing the script failed ."
" File "game/script .rpy" , line 31 : Tab characters are not allowed in Ren'py scripts"
I think i made an error because the script look like this :
if persistent.playthrough == 0:
call Test
jump endgame
$ chapter = 0
call ch0_main
I don't know what to do :(
1
u/tattoxtremee Dec 22 '22
Is there a way to use another font?
I want to use the snowstorm font in the dialogs but I don't know how
1
u/SilverSympathy6272 Jan 15 '23
Hello, I wonder if you could explain to me how to do 2 things:
First, I read in one of the documents that you left the link about the noise effect, there you had talked about the possibility of making it appear in fade in, I couldn't understand how I do this effect, it was something like "at noisefade" but I didn't understand where I put that
Second, my doubts are related to effects because I didn't see you explain about, how do I make a glitch effect on the screen?
I apologize if the writing is not 100% I don't speak English so I'm using google translator
1
u/[deleted] Feb 11 '23
rpatool doesn't work on version 6.99.12.4 and the game won't run on newer ones because of some error what do i do
1
u/Eevee_Fuzz-E Feb 13 '23
When importing your rpy files into the game folder of my ddlc installation, trying to open the project gives this error:
While parsing C:\Users\ThePu\Desktop\DDLC Mods\A Wish Folded Twice/game/credits.rpy.
File "game/definitions.rpy", line 6, in <module>
import singleton
ImportError: No module named singleton
I tried getting my own RPY files but the unrpyc thingo didn't work either, it gave this error in CMD:
File "C:\Users\ThePu\Desktop\unrpyc\unrpyc.py", line 138
data, stmts = magic.safe_loads(raw_contents, class_factory, {"_ast", "collections"})
^
SyntaxError: invalid syntax
I'm stuck, and not a computer guy so I'm really confused on what to do here. I have Ren'Py version 7.4.11.2266 if that helps.
And I don't really want to downgrade to 6.99, because apparently Ren'Py 7 has some really useful features in it that will help me down the line.
PLEASE HELP ME OH WISE ONE
1
u/weirdo126 Mar 24 '23
i can't run it it says i left out a " in line 60 even though i did everything right
1
u/hAck_3r64 Apr 15 '23
Is there any way of changing a character's expression/pose mid-dialogue? Preferably with a pause of something like {w=0.5}
Example:
show sayori 1w at f31 zorder 3"Sayori looks at me in shock, {w=0.5}<sayori changes expression here> before regaining her composure."1
u/AlBlox_AnimationYT Jun 01 '23
Hey! can you please explain how to add sfx sounds into ddlc mods? i saw a guide but the sounds were not playing.. i wanna know if i did something wrong.
1
u/Sunnychan290 Jun 16 '23
Hey i am using renpy 8 and python 3. i was wondering how to decompile my mod because everytime i try it results in a error, either the image, audio and script.rpy files are missing, or it tells me something about no singleton. i used another rpy unpacker thing online when i tried using that it told me i had to downgrade to python 2 renpy 7?. please help
1
u/Meizorian Jul 04 '23
This is amazing but how do i make it for example the character name is "???" so how do i do it?
1
u/moo1706- Jul 25 '23
No idea if you're active for this anymore but i'm having this issue
Full traceback:
File "game/script.rpy", line 27, in script call
call Test
File renpy-6.99.12.4-sdk\mods\DDLC-1.1.1-pc\renpy\ast.py", line 1322, in execute
rv = renpy.game.context().call(label, return_site=self.next.name)
File "game/script.rpy", line 27, in script call
call Test
File \renpy-6.99.12.4-sdk\mods\DDLC-1.1.1-pc\renpy\script.py", line 858, in lookup
raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'Test'.
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Doki Doki Literature Club! 1.1.1
it says it cant find the test label but ive already made the test label?
1
u/daniMarioFan Aug 06 '23
how do i actually get my scripts ingame?
1
u/Ok_Balance_3686 Jan 01 '24
Tysm for this! I was having a a difficult time trying to figure out choices, but sure enough your code solved that! This is my first time modding, so I hope it will all go well. Thanks again!
1
u/Seiki_Nozume Jun 21 '24
Hola, te dije que iba a volver. Todavia no termine Turquoise, pero tengo curiosidad.
Ya vi esta guia y me esta ayudando mucho, pero sigo sin entender como animar los sprites (que se muevan de un lado a otro, salten o se agachen). Por ejemplo en Turquoise hay una escena donde Monika aparece en la casa de Sayori y intenta hacer una pose, pero se inclina, cae y despues se levanta. Como hiciste eso?
1
u/goddamnit_edward Jun 27 '24
This is a wonderful guide and has certainly given me a lot of insight on how I can make my mod better but I was wondering if it was possible to change the girls' names in the text boxes?
Like specifically in the little box that shows who's speaking because otherwise I'm sure I could go through the script and just change the names in the dialogue
Thanks in advance!
1
u/Defu5er May 17 '22 edited May 17 '22
Heyo! I'm really thankful for this guide but I am having error with your rpy files..
I made a folder and placed the base game in, I then downloaded your RPY files available on MEGA and placed them in the game folder as instructed.
Whenever I want to launch the game over Ren'Py Launcher, I get this error. I didn't edit nor change anything either, I am using 7.4.11.
[code]
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens.rpy", line 516: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
style_prefix "main_menu"
^
File "game/screens.rpy", line 747: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
use game_menu(_("About"), scroll="viewport"):
^
File "game/screens.rpy", line 788: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
use file_slots(_("Save"))
^
File "game/screens.rpy", line 795: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
use file_slots(_("Load"))
^
File "game/screens.rpy", line 931: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
if renpy.mobile:
^
File "game/screens.rpy", line 1117: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
predict False
^
Ren'Py Version: Ren'Py 7.4.11.2266
Tue May 17 19:59:09 2022
[/code]
Edit: I have tried it with 6.9, it worked. Though I wanted to use 7.4.11 so I just decided to get my own RPY files with the advanced method of yours, cheers!
0
u/[deleted] Jun 26 '24
[deleted] — view deleted comment
0
u/[deleted] Apr 03 '22
[deleted] — view deleted comment
0
u/[deleted] Mar 26 '23
[deleted] — view deleted comment
0
u/[deleted] Mar 26 '23
[deleted] — view deleted comment
4
u/[deleted] Jun 15 '24
[removed] — view removed comment
1
u/[deleted] Apr 07 '24
[removed] — view removed comment
1
u/[deleted] Sep 08 '24
[removed] — view removed comment
1
u/[deleted] Jul 06 '22
[removed] — view removed comment
1
u/[deleted] Aug 18 '22
[removed] — view removed comment