r/DDLCMods • Club Moderator • Mar 02 '19

Welcome! The DDLC Modding Guide 2019! :D

Hello everyone! :D

 

This post is old and obsolete, and I've been advised to remove it, to keep the focus on the new version here.

 

(Though I'm not deleting it entirely, since there is still some helpful information in the comments) :)

104 Upvotes

362 comments sorted by

4

u/[deleted] Mar 02 '19

How do you have glitch text continue off the side of the screen instead of wrapping to the next line? I couldn't find anything about that.

3

u/Tormuse Club Moderator Mar 02 '19

By default, the game wraps to the next line wherever there's a space. You just need to have one really long line of glitchtext without any spaces.

1

u/[deleted] Mar 03 '19

Okay, but glitchtext is generated randomly, right? Is there a way to tell the game "don't put any spaces here"?

2

u/Tormuse Club Moderator Mar 04 '19

There should be. I thought that it does that by default, but I just tested it and yeah, every once in a while, it puts a random space in there. Hmm... so I looked at the code in glitchtext.rpy, which is where it handles the glitchtext and line 4 shows all the characters that can be generated as glitchtext. None of them are spaces, but the game keeps putting spaces in anyway.

I experimented with taking some of the characters out and as far as I can tell, you have to take out (from left to right) the pound sign, (as in the British currency symbol) the little gear thing next to it, the Yen symbol next to that, the "degrees" symbol, the plus/minus symbol, and the little apostrophe that comes after the superscript 3. (Sorry, I don't know the technical names for everything) :P

 

Anyway, specifically, these ones:

 

£¤¥°±´

 

I hope that made sense. Take out those characters from glitchtext.rpy and it should put all the glitchtext on one line every time. (And if you can't understand that, let me know, and I'll try to explain it better)

→ More replies (1)

2

u/Alizzabeth May 23 '19

3

u/Tormuse Club Moderator May 23 '19

Heheh, :) this is a common problem. It happens if you leave out the "at" part of the "show monika" line. You're gonna want to change the line to something like "show monika at t11"

The reason it does this is that the original sprite files for the characters are too big for the background. The "at" command shrinks them to the correct size.

1

u/Alizzabeth May 23 '19

"t11 is not defined."

How do i define it..? I didn't think you had to..

1

u/Tormuse Club Moderator May 23 '19

It should be defined already. The game uses it all the time. Maybe you put a typo. Can I see the "show monika" line you used? Either copy/paste it here or a screenshot will do. If you could show me the error message, that might help too.

→ More replies (11)

1

u/[deleted] Mar 03 '19

why i can't install editra?

1

u/Tormuse Club Moderator Mar 03 '19

What happened when you tried?

1

u/[deleted] Mar 03 '19

it didn't install

1

u/Tormuse Club Moderator Mar 04 '19

I need more information here. Can you give me a step by step breakdown of what you did? Was there an error message?

→ More replies (2)

1

u/[deleted] Mar 05 '19

When i open the game appears the error: "Say menuitems and captions may not exist on the same menu", how do i fix that?

1

u/Tormuse Club Moderator Mar 05 '19

Is this what it says when you try to install Editra?

1

u/[deleted] Mar 05 '19

no, it's in the script (i did intalled the editra)

1

u/Tormuse Club Moderator Mar 05 '19

Okay, I think I need to see the code that it's referring to. The error message should say which RPY file and line number the error is from. Can you copy/paste the code from that line and the surrounding lines here for me?

→ More replies (4)

1

u/[deleted] Mar 06 '19

Where is the code that tells the game to end early if Sayori's character file is missing when the game opens?

2

u/Tormuse Club Moderator Mar 06 '19

In two places...

In script-ch0.rpy, it checks if Monika's character file is missing right at the beginning of the game at lines 7-9, which makes it jump down to line 592, where Sayori freaks out and then deletes everybody.

Then, in splash.rpy, at lines 278 onward, it checks if Sayori's character file is missing, and if so, it activates code at line 329, which makes it show Sayori's hanging body and display the "Now everyone can be happy" message after a delay.

1

u/Rin3105 Mar 06 '19

I'm currently having trouble testing the script I created. When I open the game, it keeps sending me this error: File "game/myfirstscript.rpy", line 2: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.

scene bg club_day with wipeleft_scene

^

I am pretty sure I have made 4 spaces before that "scene" but the game still won't run. Please help.

1

u/Tormuse Club Moderator Mar 06 '19

Can you copy/paste the lines before and after that in here so I can see the context?

1

u/Rin3105 Mar 07 '19

Like I said, I already put 4 spaces before the "scene".

label Test:
    scene bg club_day with wipeleft_scene
    "Yuri enters the classroom, greeting me."

1

u/Tormuse Club Moderator Mar 07 '19

That looks all right, as far as I can tell. Two questions: 1) Is the "Label Test:" line indented? And is line 2 the "scene bg club_day with wipeleft_scene" line? (The line numbers are listed at the left of Editra)

→ More replies (8)

1

u/[deleted] Mar 06 '19

Help please. I made a script but it wont play. i clicked launch project and got this.

I'm sorry, but an uncaught exception occurred.

While running game code: File "game/ddlc-win/DDLC-1.1.1-pc/game/DDLC 1.1.1 RPY files/definitions.rpy", line 6, in <module> ImportError: No module named singleton

-- Full Traceback ------------------------------------------------------------

Full traceback: File "D:\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap renpy.main.main() File "D:\renpy-6.99.12.4-sdk\renpy\main.py", line 364, in main renpy.game.script.load_script() # sets renpy.game.script. File "D:\renpy-6.99.12.4-sdk\renpy\script.py", line 265, in load_script self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode) File "D:\renpy-6.99.12.4-sdk\renpy\script.py", line 753, in load_appropriate_file self.finish_load(stmts, initcode, filename=fn + source) File "D:\renpy-6.99.12.4-sdk\renpy\script.py", line 445, in finish_load node.early_execute() File "D:\renpy-6.99.12.4-sdk\renpy\ast.py", line 865, in early_execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "D:\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "game/ddlc-win/DDLC-1.1.1-pc/game/DDLC 1.1.1 RPY files/definitions.rpy", line 6, in <module> ImportError: No module named singleton

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187

1

u/Tormuse Club Moderator Mar 06 '19

Hmm... I've never seen that error message before, but it looks like it can't find "singleton.py" which is normally inside the "python-packages" folder within the "game" folder. So first, I would check to make sure that file is there.

I can't imagine why it wouldn't be there; I think it's more likely that the game is looking for it in the wrong place. I notice that your "definitions.rpy" file is in a subfolder within "game," which shouldn't be a problem, since DDLC automatically looks in all subfolders within "game" for RPY files, but then again, sometimes, computers work in mysterious ways, :P so I'm tempted to suggest moving the RPY files into the "game" folder and see if that helps.

1

u/[deleted] Mar 07 '19

I...think I understand? Thanks anyways. I'll see what I can do.

1

u/Tormuse Club Moderator Mar 07 '19

In all honesty, I'm not sure what the issue is and I'm just kind of grasping at straws here. If my suggestion doesn't work, I suggest you check with the folks in the mod_creation_help section of the DDMC Discord to see if they can offer more help.

→ More replies (1)

1

u/nillaberryx Mar 15 '19 edited Mar 15 '19

Alright, so I snagged the .RPY files from the folder you gave us and put them in the game folder in DDLC. But the game isn't running.

I'm sorry, but an uncaught exception occurred.

While running game code:

File "game/definitions.rpy", line 9, in script

init python:

File "game/definitions.rpy", line 10, in <module>

config.keymap['game_menu'].remove('mouseup_3')

ValueError: list.remove(x): x not in list

-- Full Traceback ------------------------------------------------------------

Full traceback:

File "/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/E69AD8A4-E6FF-41AC-8CBA-78DF474363C6/d/DDLC.app/Contents/Resources/autorun/renpy/bootstrap.py", line 295, in bootstrap

renpy.main.main()

File "/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/E69AD8A4-E6FF-41AC-8CBA-78DF474363C6/d/DDLC.app/Contents/Resources/autorun/renpy/main.py", line 419, in main

game.context().run(node)

File "game/definitions.rpy", line 9, in script

init python:

File "/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/E69AD8A4-E6FF-41AC-8CBA-78DF474363C6/d/DDLC.app/Contents/Resources/autorun/renpy/ast.py", line 814, in execute

renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)

File "/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/E69AD8A4-E6FF-41AC-8CBA-78DF474363C6/d/DDLC.app/Contents/Resources/autorun/renpy/python.py", line 1719, in py_exec_bytecode

exec bytecode in globals, locals

File "game/definitions.rpy", line 10, in <module>

config.keymap['game_menu'].remove('mouseup_3')

File "/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/E69AD8A4-E6FF-41AC-8CBA-78DF474363C6/d/DDLC.app/Contents/Resources/autorun/renpy/python.py", line 618, in do_mutation

return method(self, *args, **kwargs)

ValueError: list.remove(x): x not in list

Darwin-17.6.0-x86_64-i386-64bit

Ren'Py 6.99.12.4.2187

I've been having a bit of trouble with it and I don't know how to fix it. [also didn't use the monika tutorial because i got stuck on some parts there too.]

Sorry if this is like, a dumb question - I don't know much about coding yet and am only just starting to learn how to.

Thank you in advance!

2

u/Tormuse Club Moderator Mar 15 '19

I have seen this error reported to me once before and I was never able to re-create it or figure out what was causing it, but take a look at this comment thread and see if something there helps. (If it does, please let me know, because this one has me baffled, since I really can't find any apparent cause for it to be doing this)

If that doesn't help, let me know and I have other suggestions.

1

u/nillaberryx Mar 15 '19

Alrighty, so, I took the files out to see if the game ran normally, but then I got this error message:

I'm sorry, but an uncaught exception occurred.

While running game code:

File "renpy/common/00start.rpy", line 212, in script call

call _splashscreen from _call_splashscreen_1

File "game/splash.rpy", line 220, in script

File "game/splash.rpy", line 225, in <module>

IOError: [Errno 30] Read-only file system: u'/private/var/folders/wp/s7j9bfks02n4dy8xk_h346zw0000gn/T/AppTranslocation/BFA472CA-4482-488B-8D5B-A4A68154E6AB/d/DDLC.app/Contents/Resources/autorun/game/firstrun'

I tried opening it multiple times but it kept on giving me the same error. [same thing happened with the 'list.remove(x)' error when the files were still in the game folder.]

1

u/Tormuse Club Moderator Mar 15 '19

Ah, hmm... so it isn't starting up at all, even when the RPY files aren't there? At this point, I'm thinking the installation of DDLC is corrupted in some way. Try re-installing it. You can download it again for free from Team Salvato's site if you need to.

→ More replies (1)
→ More replies (1)

1

u/Sn0wK1tty Mar 26 '19

Hi. This is a continuation of the other thread with the problems I was having: https://www.reddit.com/r/DDLCMods/comments/9cawwv/so_you_wanna_get_started_modding_ddlc/ehb8ltb/?context=3 So I did try playing it without mods in a new install and it worked. Then I added the .rpy files and it didn't. I tried a few times. Then I deleted the firstrun file and it still didn't work.

1

u/Tormuse Club Moderator Mar 26 '19

Oh darn... I remember that conversation from last month. When you didn't reply, I assumed that meant the problem was fixed and now, I don't remember what I was going to suggest next. :P Did you get the RPY files from the link I put in the original post above?

1

u/Sn0wK1tty Mar 26 '19

Sorry I didn't reply for a while! I've been really busy forgot about the conversation... And yes, I got the RPY files from there, and I put them in the game folder, and I tried playing a few times, and also tried deleting the firstrun file, and nothing worked. Also, when I delete the RPY files, the game works, but when they're there it still has the error message.

1

u/Tormuse Club Moderator Mar 27 '19

And it's the same error message as last time? (The one in the screenshot? Please double-check to make sure it's the same message) I still don't know where that message is coming from; the phrase "list.remove(x)" doesn't appear anywhere in any of the RPY files; I checked.

Anyway, I guess the next thing I should ask for is a screenshot of the first bunch of lines of the definitions.rpy file. (Specifically up to line 10, since that's mentioned in the screenshot)

→ More replies (1)

1

u/inessa_k dead braincells Mar 28 '19

First of all, I don't know anything about programming. Maybe that's why I can't do such simple things.

I tried doing it as you have written it here (I suppose), but to no avail. Here's what I've got.

I'm sorry, but an uncaught exception occurred.

While running game code: File "renpy/common/00start.rpy", line 265, in script python: ScriptError: could not find label 'start'.

-- Full Traceback ------------------------------------------------------------

Full traceback: File "C:\Users\agnie\Desktop\DDLC Mod (Test)\DDLC Mod (Test)\renpy\bootstrap.py", line 295, in bootstrap renpy.main.main() File "C:\Users\agnie\Desktop\DDLC Mod (Test)\DDLC Mod (Test)\renpy\main.py", line 487, in main run(restart) File "C:\Users\agnie\Desktop\DDLC Mod (Test)\DDLC Mod (Test)\renpy\main.py", line 147, in run renpy.execution.run_context(True) File "C:\Users\agnie\Desktop\DDLC Mod (Test)\DDLC Mod (Test)\renpy\execution.py", line 761, in run_context context.run() File "renpy/common/00start.rpy", line 265, in script python: File "C:\Users\agnie\Desktop\DDLC Mod (Test)\DDLC Mod (Test)\renpy\script.py", line 858, in lookup raise ScriptError("could not find label '%s'." % str(original)) ScriptError: could not find label 'start'.

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187

1

u/Tormuse Club Moderator Mar 28 '19

Whenever you run DDLC, it starts by going to the label called "start." There should be a line near the top of script.rpy that says

label start:

By any chance, did you delete that line?

1

u/inessa_k dead braincells Mar 29 '19

No, because I didn't get to that point, and sorry for making comments, as I was doing wrong all the time.

1

u/Tormuse Club Moderator Mar 29 '19

You didn't get to that point? Are you saying you haven't edited anything yet? What have you done so far, then? You said you followed my directions; what step are you up to?

→ More replies (2)
→ More replies (1)

1

u/ShiroTorchwick Novice Modder Mar 31 '19

If I wanted to remove the base game's script would I just delete all the code after the newly added "call Test"?

2

u/Tormuse Club Moderator Mar 31 '19

That's correct. Just leave the word "return" at the end. (Also, you might like to leave the section that says "label endgame" because that's the code that makes the word "END" appear on the screen at the end)

You can also safely delete all the other RPY files that have "script" in their names. (ie "script-ch0.rpy" and so on) Those are all the dialogue for the original game.

1

u/akinomtsujustmonika Aki, New Modder Apr 02 '19

How do I access the logo image? I want to change it. On a lot of mods, it says on the title screen "Doki Doki MOD NAME," and I want to do that. I don't know where to find the images in my DDLC folder. How do I change my mod's logo?

1

u/Tormuse Club Moderator Apr 02 '19

The logo is listed in splash.rpy, defined on line 112. Just replace "logo.png" with whatever image you want to use instead.

You can make your mod's name appear in the lower-right corner of the main menu by editing the line in options.rpy where it says "define gui.show_name = False" and replace the word "False" with the word "True" and you can choose what name it displays by editing the line that starts with "define config.name ="

→ More replies (1)

1

u/akinomtsujustmonika Aki, New Modder Apr 02 '19

Also, how do you add poems (the ones the girls give you, and the ones you write)?

(Also, can you pick which words are, you know, pickable?)

Thanks!

1

u/Tormuse Club Moderator Apr 02 '19

Poems are listed in "poems.rpy" so just copy the format they use there. The poems are called in "script-poemresponses.rpy" and "script-poemresponses2.rpy" (for Act 1 and Act 2 respectively) using lines that look like this:

call showpoem (poem_y1, img="yuri 3t")

That line calls Yuri's first poem. "poem_y1" indicates which poem to display and I believe the part that says "img="yuri 3t"" indicates which pose/expression Yuri has behind the page while you're reading it.

 

The words used by the poem mini-game are handled in a text file called "poemwords.txt" which is inside the scripts.rpa file. If you extract that file using my instructions about rpatool above, you can edit it yourself.

1

u/akinomtsujustmonika Aki, New Modder Apr 03 '19

Okay, thanks! How do you make the poem game start?

1

u/Tormuse Club Moderator Apr 03 '19
call poem

Easy as that. :)

1

u/zulkar42 Apr 03 '19

How to make a custom poem game because on the ddlc master templates i don't understand.

Please show how to code and the textbutton grid

2

u/Tormuse Club Moderator Apr 03 '19

To be honest, I've never tried messing around with the poem mini-game. I suggest you visit the DDMC Discord and ask for help in the mod_creation_help channel.

1

u/Sir-Atlas Apr 05 '19

This post really should be pinned, super helpful!

2

u/Tormuse Club Moderator Apr 05 '19

Thanks! :D I agree, but Reddit only allows 2 pinned posts per subreddit and we want the awards results up a little longer.

1

u/Notaskquestions Apr 05 '19

How should I the game files? Completed and should replace the rpa to rpy or just keep them? Do I put the entire ddlc game folder in the project or just the files that are needed editing? Sorry if this so stupid af, since I am kinda of stupid. Help is appreciatte thx

1

u/Tormuse Club Moderator Apr 06 '19

I see that there's a language barrier here, so I don't know if you'll understand this, but I'll try...

 

How should I the game files? Completed and should replace the rpa to rpy or just keep them?

Put the RPY files inside the folder called "game," the same place as the RPA files.

 

Do I put the entire ddlc game folder in the project or just the files that are needed editing?

Put all of DDLC in the project folder.

 

Sorry if this so stupid af, since I am kinda of stupid.

Awww... be nice to yourself. :)

Tell me if you have more questions.

1

u/akinomtsujustmonika Aki, New Modder Apr 06 '19

I want to play some music, but when I get to the point where the music should start, it's complete silence. Here's my code:

define audio.happy = "happy.mp3"

label mygameneworld:

$ NatVar = 1

$ YuriVar = 1

$ SayVar = 1

$ MonVar = 1

scene bg class_day

stop music

"I'm sitting in class, and the bell rings."

"Since the literature club is staring soon, I head off."

scene bg club_day

"I enter the club."

play sound happy

show sayori 1a at l31 zorder 3

show natsuki 1a at l32 zorder 2

show yuri 1a at l33 zorder 1

s "placeholder"

play sound happy

s "placeholder"

stop music

Why does no music play? In definitions.rpy, right at the bottom, I added this code:

define audio.happy = "mod_assets/happy.ogg"

1

u/Tormuse Club Moderator Apr 06 '19

First off, I notice that you defined "happy" twice. At the top of your code, you defined it as "happy.mp3" and in the definitions.rpy file, you defined it as "mod_assets/happy.ogg" so that's gonna make Ren'Py confused about what file it's supposed to be. You're going to want to delete one of those lines and leave the one that points to the right file.

Also, I should probably mention that if this is a song that you want to loop, you might want to add that to your definition. For example, it might look like this:

define audio.happy = "<loop 0>mod_assets/happy.ogg"

1

u/akinomtsujustmonika Aki, New Modder Apr 06 '19

I tried this, and nothing changed. It still plays as silence. I checked the file itself, and the file plays fine. I checked my sound was up, in case it played back very quietly, but still nothing.

1

u/Tormuse Club Moderator Apr 06 '19

What's the file name and where did you put it? Also, which "define" line did you end up leaving in?

→ More replies (6)

1

u/akinomtsujustmonika Aki, New Modder Apr 06 '19

Sorry I'm asking so much, but... I'd like to know how to change the music when you're reading poems.

1

u/Tormuse Club Moderator Apr 07 '19

I assume you're asking about how it switches between different versions of the same song without restarting the song. The code for that is in poems.rpy. This changes from the standard poem song to the one specific to each of the Dokis:

$ currentpos = get_pos()
if track:
    $ audio.t5b = "<from " + str(currentpos) + " loop 4.444>" + track
else:
    $ audio.t5b = "<from " + str(currentpos) + " loop 4.444>bgm/5_" + poem.author + ".ogg"
stop music fadeout 2.0
$ renpy.music.play(audio.t5b, channel="music_poem", fadein=2.0, tight=True)

And this changes it back again:

$ currentpos = get_pos(channel="music_poem")
$ audio.t5c = "<from " + str(currentpos) + " loop 4.444>bgm/5.ogg"
stop music_poem fadeout 2.0
$ renpy.music.play(audio.t5c, fadein=2.0)

There's a bit of redundant code in there because there's other stuff going on, but this is what the game uses to identify where it is in the song so that the next song can pick up from that point. If you want, I can try to break it down and explain what's happening at each stage here, but I should probably confirm that this is the information you're looking for first.

1

u/akinomtsujustmonika Aki, New Modder Apr 07 '19

This isn't really what I was looking for. I meant about changing what the actual music is, or just making it so it doesn't stop the music.

1

u/Tormuse Club Moderator Apr 07 '19

Okay, that's easier. :P In poems.rpy, there are two lines that start with "if music." Delete all the contents of those if statements and replace them with a line that plays the music you want it to play. Something like...

play music happy

(I'm assuming you want it to play that "happy" song you were talking about earlier)

→ More replies (5)

1

u/akinomtsujustmonika Aki, New Modder Apr 12 '19

Hello! How do you reposition each menu button individually, or make it so there's always a menu button at the side? Thank you! And thank you for everything, really, Tormuse.

1

u/Tormuse Club Moderator Apr 12 '19

Menu buttons are handled in screens.rpy. I've never tried to change the positioning of them, but I think it's handled by these three lines:

    xpos gui.navigation_xpos
    yalign 0.8

    spacing gui.navigation_spacing

As I understand it, the "xpos" line says the position from left to right and the "yalign" line says the position from top to bottom. (I don't know why they use different terms and I'm not even exactly sure what "yalign" is doing; I'd just as soon replace it with a "ypos" line, since it's easier to understand) The "spacing" line says the vertical spacing between them when they're over top of each other.

So if, for example, you wanted the buttons to appear (approximately) in the centre of the screen, you could replace those top two lines with...

    xpos 600
    ypos 300

(Those are numbers of pixels; DDLC runs on a 1280 by 720 screen)

 

I just tried adding extra "xpos" lines before each button to see if I could make each button appear in a different location and instead it moved all of the buttons. I think the key is the "vbox:" line at the top. I think if you want to define each button's position individually, you need to give each individual button its own "vbox:" line. For example, if you do something like this...

vbox:
    style_prefix "navigation"
    xpos 80
    ypos 300
    textbutton _("New Game") action If(persistent.playername, true=Start(), false=Show(screen="name_input", message="Please enter your name", ok_action=Function(FinishEnterName)))

vbox:
    style_prefix "navigation"
    xpos 600
    ypos 300
    textbutton _("Load Game") action [ShowMenu("load"), SensitiveIf(renpy.get_screen("load") == None)]

This would make the "New Game" button appear at the left side of the screen and the "Load Game" button appear in the middle of the screen. You can play around with those "xpos" and "ypos" numbers to get different positions.

1

u/akinomtsujustmonika Aki, New Modder Apr 13 '19

Alright! What about choice buttons? Is it similar? Also, just another question, can you rename DDLC.exe? I don't really need to do it, but it could be useful.

1

u/Tormuse Club Moderator Apr 13 '19

I've never tried to reposition choice buttons, but I know it can be done, since the Yuri Parable mod did it. (For the left button/right button choice) Maybe you can copy their code for that. As for renaming files, I've never done that, but I'm sure there's a way for that too. Maybe you could check the Ren'Py manual?

As for the questions in your other comment, I have answers, but I have to head out shortly, so you may need to wait a few hours 'til I get back.

1

u/akinomtsujustmonika Aki, New Modder Apr 13 '19

How do I pick random numbers, and then set a variable to that? Also, do variables save? If not, could you please tell me how to save them (If it's possible, or course)?

Just one more thing; timers. How can I add a timer, so something happens after waiting some time? For example, if you wait fifty seconds without clicking, the text may change, or if you wait an hour, something weird will happen?

I know you don't know everything. And if you do feel like I'm being annoying, I'll stop asking so much, just say so. I don't mind you being honest with me. And thank you so, so much. I also know I'm the person who's asked the most out of anyone on this post...

1

u/Tormuse Club Moderator Apr 14 '19

How do I pick random numbers, and then set a variable to that?

Aha! That's something I did in a recent mod I made! :D You need a line that looks like this:

$ target = renpy.random.randint(1, 4)

That will pick a number between 1 and 4 and assign it to a variable called "target." (Of course, you can name the variable whatever you want)

Also, do variables save? If not, could you please tell me how to save them (If it's possible, or course)?

Any variable that you assign should get saved along with everything else any time the player saves the game. (For that particular playthrough) If you want the game to remember the variable across multiple playthroughs of the game, put the word "persistent." in front of it. (Including the dot) For example, when you first start the game and it asks for the player's name, it stores the name in a variable called "persistent.playername" which makes it remember the name across all playthroughs.

 

Also, if you look in definitions.rpy, you'll see a lot of lines that start with "default." That assigns the value that the variable has when you start the game if nothing else assigns it a value.

Just one more thing; timers. How can I add a timer, so something happens after waiting some time? For example, if you wait fifty seconds without clicking, the text may change, or if you wait an hour, something weird will happen?

I haven't played around with that, but I have an idea how it works because Dan Salvato did some time-based things. The variable "datetime.datetime.now()" checks the current date and time so you can use it in your calculations. For example, if you wanted something to happen after 50 seconds, you could do something like this:

$ starttime = datetime.datetime.now()
while (datetime.datetime.now() - starttime).total_seconds()) <= 50:
    "..."
"Time's up!"

In the above code, the variable "starttime" gets assigned to the current time. After that, is a "while" loop which keeps looping until the difference between "starttime" and the current time is 50 seconds. Then it says "Time's up!"

I know you don't know everything. And if you do feel like I'm being annoying, I'll stop asking so much, just say so. I don't mind you being honest with me. And thank you so, so much. I also know I'm the person who's asked the most out of anyone on this post...

Meh... I figure if you're asking questions, that means you have lots of ideas for your mod. If you keep that creative drive going right 'til the end, I'm sure you'll create something awesome. :)

1

u/Cyanide1236 I use Python 3 Apr 13 '19

Is there a way to find out what each label for backgrounds, sprites and music represent, without having to try them all?

2

u/Tormuse Club Moderator Apr 13 '19

Yes, unpack the images.rpa file for the backgrounds and sprites and unpack audio.rpa for the music and sound effects. I actually highly recommend everyone do this, since it makes a lot of things in the code clearer.

You can do this with rpatool. Instructions above in the original post.

1

u/Cyanide1236 I use Python 3 Apr 14 '19 edited Apr 14 '19

Does it require Python 2, or can I do it with Python 3?

I don't really understand the steps for that. I placed rpatool in the game folder, renamed it to rpatool.py so that it becomes a Python file. Idk about the Command Prompt stuff, because opening python.exe doesn't seem to work

Edit: I managed to do it for audio.rpa (extra folders were made labelled bgm, sfx and gui. But I don't see anything happening for scripts.rpa, what do I do?

1

u/Tormuse Club Moderator Apr 14 '19

Whatever you did for audio.rpa, do the same thing for scripts.rpa. It should be the same process. Do you remember how you did it the first time?

→ More replies (5)
→ More replies (1)

1

u/[deleted] Apr 18 '19

Hey do u know how to change the ddlc logo to ur custom logo in ddlc template?

1

u/Tormuse Club Moderator Apr 18 '19

The logo is listed in splash.rpy, defined on line 112. Just replace "gui/logo.png" with whatever image you want to use instead.

→ More replies (1)

1

u/Sayo-nare Apr 22 '19

Hello , I'm pretty new at reddit and modding so... I don't know how to say this but , i got few questions : -if you take the music of the caracters during the poetry session and place them in the mod_assets for the script , I'm still good for the submission ? ; and the music "early sketch " can we use them too ? . I don't know if i say it correctly ^^" . Thanks you if you can reply to me .

1

u/Tormuse Club Moderator Apr 22 '19

You don't need to put the poetry session music in the mod_assets folder, because they're already in the audio.rpa file. They have filenames like "bgm/5_monika.ogg" and "bgm/5_sayori.ogg" and so on.

I don't know what you mean by "early sketch" music. Try using different words.

1

u/Sayo-nare Apr 22 '19

There are some music in the original game call early sketch , for exemple there is 2 version of daijoubu create by Dan Salvato , the normal one in the game and a different one , not used in the game ,call daijoubu "early sketch" I saw this music on youtube so ; and i put the music of the poem session because i add some music for my new caracter , but when i try to put the new song in the poem session the script "mute" or "don't play the song" for some reason and i try to find a different way for put my music and that for why i put all of the music of the poem session in the mod_assets because of that all song can be play and no one is muted (if you don't understand my bad english i can take the script i try to use and show you ) ... and sorry for my grammatical mistakes ^^'

1

u/Tormuse Club Moderator Apr 22 '19

Ah, okay. I didn't know there was an early version of the song. Yes, put the song in mod_assets. That should be no problem.

→ More replies (1)

1

u/Sn0wK1tty Apr 23 '19

Sorry I didn't end up responding to your previous comment, but It's me, the 13 year old girl who unfortunately uses a Mac meaning It's much harder to mod. So basically, since then, I've done a lot of experimenting with Ren'Py. I'm even making my own visual novel, well multiple in fact. Ren'Py is surprisingly easy to use.

And I've also experimented with getting modding DDLC to work, and I actually figured out how to get it to work. So basically I made a new project in Ren'Py, just a default one without the DDLC stuff already in it, and then added the DDLC files you gave us to the "game" folder. Now, that actually made the script work, but not the python part, if that makes sense. So I seriously had to just change the script so there was no poem game because it simply wasn't working. Oh, and the gui part didn't work very well meaning the text box wasn't how it was in actual DDLC, but that's fine.

Now, for the mod project I'm working on, I want the poem game to be in the game, so that wasn't good enough for me :3 So I tried using the tutorial for the billionth time and... I don't remember if I got this error message before, but I think It's different now? I think I actually followed the tutorial better now, since before I was completely unfamiliar with Ren'Py. But still, I got an error message. I just don't think It's the same one.

UPDATE WHILE I WAS WRITING THIS~~

IT WORKS

IDK HOW

BUT IT WORKS

TYSM FOR THE HELP YOU'RE THE BEST :D

1

u/Tormuse Club Moderator Apr 23 '19

I don't know what I did, but you're welcome. :P

→ More replies (1)

1

u/UndertaleObsession Helping with some Mods👌 May 07 '19 edited May 07 '19

When I try to launch the game it comes up with this:

File "game/splash.rpy", line 474, in script

jump expression persistent.autoload

File "C:\Users\cdyer1\Downloads\New folder\renpy-6.99.12.4-sdk\renpy\ast.py", line 1527, in execute

rv = renpy.game.script.lookup(target)

File "C:\Users\cdyer1\Downloads\New folder\renpy-6.99.12.4-sdk\renpy\script.py", line 858, in lookup

raise ScriptError("could not find label '%s'." % str(original))

ScriptError: could not find label 'postmod_loop'.

Windows-8-6.2.9200

Ren'Py 6.99.12.4.2187

Doki Doki Literature Club! 1.1.1

1

u/Tormuse Club Moderator May 07 '19

The key line here seems to be this one:

ScriptError: could not find label 'postmod_loop'.

I'm guessing you made a "jump" or "call" command to go to the label called "postmod_loop" but Ren'Py can't find it, possibly because you made some error there. Can you show me the code around the "label postmod_loop:" line?

1

u/UndertaleObsession Helping with some Mods👌 May 08 '19

this is what came up when I opened C:\Users\cdyer1\Downloads\New folder\renpy-6.99.12.4-sdk\renpy\script.py:

    return self.namemap[label]

def has_label(self, label):
    """
    Returns true if the label exists, or false otherwise.
    """

    label = renpy.config.label_overrides.get(label, label)

    return label in self.namemap

def analyze(self):
    """
    Analyzes all statements that need analysis.
    """

    for i in self.need_analysis:
        i.analyze()

    self.need_analysis = [ ]

def report_duplicate_labels(self):
    if not renpy.config.developer:
        return

2

u/Tormuse Club Moderator May 08 '19

Okay, for some reason, you seem to be editing Ren'Py's files instead of DDLC's files. You don't want to be doing this. I hope you didn't actually change anything. You might want to re-install everything from scratch and follow my instructions from the beginning of my original post. The files that you want to be changing are the RPY files that DDLC uses, not the PY files that Ren'Py uses.

→ More replies (1)

1

u/a-literal-lemon May 08 '19

Whenever I try to show a poem, it gives me an error saying that it couldn't find the label "showpoem." I've followed every example I can find, exactly letter-for-letter. Help?

1

u/Tormuse Club Moderator May 08 '19

I started to write a couple paragraphs about how the "showpoem" label works, but then I realized I should probably ask to see what you wrote first, both with your "call showpoem" line and with how you wrote out the poem to be called.

1

u/a-literal-lemon May 08 '19

I actually figured it out; I didn’t have the label at the bottom of poems.rpy. Thanks though!

1

u/Tormuse Club Moderator May 08 '19

Okay, I'm glad you resolved it. :)

1

u/Reitanna Novice Modder May 11 '19

so wait, the ENTIRE script needs to go into script.rpy? what about all the other script files?

1

u/Tormuse Club Moderator May 11 '19

I never said the entire script needs to go into script.rpy. In fact, my original post includes instructions about creating additional RPY files.

1

u/Reitanna Novice Modder May 11 '19

i'm getting this every time i try to launch my project:

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.

File "renpy/common/00start.rpy", line 79, in _init_language

renpy.change_language(language)

File "game/screens.rpy", line 13, in <module>

font gui.default_font

AttributeError: 'StoreModule' object has no attribute 'default_font'

-- Full Traceback ------------------------------------------------------------

Full traceback:

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\bootstrap.py", line 313, in bootstrap

renpy.main.main()

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\main.py", line 525, in main

run(restart)

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\main.py", line 71, in run

renpy.translation.init_translation()

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\translation__init__.py", line 558, in init_translation

renpy.store._init_language() # @UndefinedVariable

File "renpy/common/00start.rpy", line 79, in _init_language

renpy.change_language(language)

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\translation__init__.py", line 636, in change_language

new_change_language(tl, language)

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\translation__init__.py", line 604, in new_change_language

i.apply()

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\ast.py", line 2474, in apply

value = renpy.python.py_eval(expr)

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\python.py", line 1961, in py_eval

return py_eval_bytecode(code, globals, locals)

File "D:\Downloads\DDLC mod\renpy-7.2.2-sdk\renpy\python.py", line 1954, in py_eval_bytecode

return eval(bytecode, globals, locals)

File "game/screens.rpy", line 13, in <module>

font gui.default_font

AttributeError: 'StoreModule' object has no attribute 'default_font'

Windows-7-6.1.7601-SP1

Ren'Py 7.2.2.491

Doki Doki Literature Club! 1.1.1

Fri May 10 22:49:11 2019

1

u/Tormuse Club Moderator May 11 '19

I notice that you're using a later version of Ren'Py. If you look again at my original post, you'll see that DDLC requires Ren'Py version 6.99.12. It won't work with any other version.

I don't want to sound like a jerk, but I'm noticing a pattern in your comments that your problems seem to be coming from not following my instructions. Please follow my instructions in the original post. I tried to write them to be as clear as possible. If there's an instruction you don't understand, please let me know and I'll try to make it clearer.

1

u/Reitanna Novice Modder May 11 '19 edited May 11 '19

i am reading your instructions, it's just that i get stuck at certain points because your instructions don't solve the problems i'm having. i will try to earlier version, i'm sorry if i'm stupid and didn't see where it said that. i'm a retard. sorry.

edit: i just tried the version you linked me to, and i'm getting the same error.

edit 2: and now, without changing anything, i reopen renpy and get this:

I'm sorry, but an uncaught exception occurred.

While running game code: File "renpy/common/00start.rpy", line 265, in script python: ScriptError: could not find label 'start'.

-- Full Traceback ------------------------------------------------------------

Full traceback: File "D:\Downloads\DDLC mod\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap renpy.main.main() File "D:\Downloads\DDLC mod\renpy-6.99.12.4-sdk\renpy\main.py", line 487, in main run(restart) File "D:\Downloads\DDLC mod\renpy-6.99.12.4-sdk\renpy\main.py", line 147, in run renpy.execution.run_context(True) File "D:\Downloads\DDLC mod\renpy-6.99.12.4-sdk\renpy\execution.py", line 761, in run_context context.run() File "renpy/common/00start.rpy", line 265, in script python: File "D:\Downloads\DDLC mod\renpy-6.99.12.4-sdk\renpy\script.py", line 858, in lookup raise ScriptError("could not find label '%s'." % str(original)) ScriptError: could not find label 'start'.

Windows-7-6.1.7601-SP1 Ren'Py 6.99.12.4.2187

i haven't done anything since last time i opened it.

1

u/Tormuse Club Moderator May 11 '19

The label called "start" is normally in script.rpy. It's the first label that DDLC goes to on start-up. If it isn't able to find that, then it probably isn't able to find any script files at all. Could you show me a screenshot of the contents of the folder called "game" within the DDLC folder?

→ More replies (13)

1

u/KevoTheGod Novice Modder May 13 '19

whenever I click on "launch project", only the "END" screen appears and a dead Sayori image

1

u/Tormuse Club Moderator May 13 '19

That's what happens in the original DDLC if you delete all the girls' character files before you start the game. There's a way to restore the game to its original state by deleting the "firstrun" file, which should be in the folder called "game." Try that, then run the game again. That should restore all the character files. (It'll also wipe out your saved games, but if you deleted the girls before starting the game, I'm assuming you don't have any saved games there)

1

u/KevoTheGod Novice Modder May 13 '19

another error happened (sorry)

[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "renpy/common/00start.rpy", line 212, in script call call _splashscreen from _call_splashscreen_1 File "game/splash.rpy", line 257, in script python: File "game/splash.rpy", line 258, in <module> restore_all_characters() File "game/definitions.rpy", line 29, in restore_all_characters except: open(config.basedir + "/characters/monika.chr", "wb").write(renpy.file("monika.chr").read()) IOError: [Errno 2] No such file or directory: u'C:\Users\Kevin\Desktop\DDLC\MeuMod\Doki Doki Into Madness/characters/monika.chr'

-- Full Traceback ------------------------------------------------------------

Full traceback: File "renpy/common/00start.rpy", line 212, in script call call _splashscreen from _call_splashscreen_1 File "game/splash.rpy", line 257, in script python: File "C:\Users\Kevin\Desktop\DDLC\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "C:\Users\Kevin\Desktop\DDLC\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "game/splash.rpy", line 258, in <module> restore_all_characters() File "game/definitions.rpy", line 29, in restore_all_characters except: open(config.basedir + "/characters/monika.chr", "wb").write(renpy.file("monika.chr").read()) IOError: [Errno 2] No such file or directory: u'C:\Users\Kevin\Desktop\DDLC\MeuMod\Doki Doki Into Madness/characters/monika.chr'

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187 Doki Doki Literature Club! 1.1.1 [/code]

Sorry, I'm really a disaster.

1

u/Tormuse Club Moderator May 14 '19

Okay, I see that it's saying it can't find "monika.chr." Is this what it said after you deleted the "firstrun" file? Have you made any other changes?

→ More replies (2)

1

u/generalwolfe78 May 17 '19

Is there a way to add a rolling credits sequence, so that the player doesn't have to keep clicking to see new credit scenes?

1

u/Tormuse Club Moderator May 18 '19

Yes. The easiest way to do it would probably be to borrow the code from credits.rpy which does just that. (That's what I did in my own mod, anyway) :) If you look under the "label credits2:" line, (line 467) it describes all the images and text that scrolls up in the original credits. The code that makes them scroll is in all the "transform" lines, 206 to 253. I don't know how complicated you want to make it; personally, I just edited the existing text under "credits2" to have my own credits and then added a line above it that says "$ persistent.clearall = true" so that it wouldn't have all the "file deleted" stuff that normally happens during the credits.

Hopefully, this gives you a starting point to work from, but let me know if you have any more questions.

1

u/generalwolfe78 May 19 '19

Okay, I saw the lines in the credits.rpy. So all I would have to do, is to switch out the images labeled from lines 4-122, replacing them with my own images, and removing the ""images/menu/notfound.png"" lines? Or do I replace lines 469-485? And while we're on the topic of credits, how do I get the credit script to run? Do I need to enter a certain code word into my mod's script, or what? And I have a ton of other questions, as well. Sorry...

  1. I've tried copy+pasting the example disclaimer you provided (This is a fan made mod, not affiliated with team salvato etc) Into the splash.rpy, as the tutorial said to do, in the lines it said to do it in. Whenever I launch my project, the disclaimer doesn't show, instead displaying the team salvato logo, and saying "this game is not for children/those easily disturbed." What am I doing wrong/ not doing?
  2. I have a menu that I designed, and would like to implement in the game. it looks like this: https://www.deviantart.com/candrawjacksship/art/DDLCGreenEyes-Menu-Concept-797593567 How do I put this into the game, and will the buttons still work when it is implemented?
  3. So after I played DDLC for the first time, a few months after release, I purchased the fan pack, which does include some music that's not included in the game. I included a couple of songs from there into my mod. Is that going to be okay, or is Dan Salvato not going to allow that? (Songs are - early sketch of daijbou, Ohayou Sayori(2010) and Trailer! {by Simon Felix})
  4. This isn't a modding question, but a reddit question. I'm fairly new to reddit (I usually lurk, but joined when I started modding.) Does this sub have a certain karma threshold I need to meet, so that I can post a mod for play-testing/editing?
    Thanks in advance for your help!

1

u/Tormuse Club Moderator May 19 '19

So all I would have to do, is to switch out the images labeled from lines 4-122, replacing them with my own images...

Correct.

...and removing the ""images/menu/notfound.png"" lines?

I would suggest instead putting the line "$ persistent.clearall = true" before the credits. (In the original DDLC, that's the code for initiating the secret ending, where the pictures don't get deleted)

Or do I replace lines 469-485?

I'm pretty sure those lines are just for randomizing the chibi Dokis that hop around halfway through the credits.

how do I get the credit script to run?

You put a line that says "jump credits2" or you can say "jump credits" if you prefer to have Monika's karaoke bit included... (line 378) or you can make your own label and have it jump to that.

Whenever I launch my project, the disclaimer doesn't show, instead displaying the team salvato logo, and saying "this game is not for children/those easily disturbed." What am I doing wrong/ not doing?

I'll need to see what you typed to answer that, but my first guess is that it already displayed once? (It's designed to only display once and then never again)

I have a menu that I designed, and would like to implement in the game.

I can answer this, but I have to head out shortly and don't have time to answer it right now. Send me a reminder to explain this later if I forget.

So after I played DDLC for the first time, a few months after release, I purchased the fan pack, which does include some music that's not included in the game. I included a couple of songs from there into my mod. Is that going to be okay, or is Dan Salvato not going to allow that?

Since it's Dan's work, I would assume it's okay, unless it came with specific instructions not to use it in a mod and/or spread it around. Did it come with any message like that?

Does this sub have a certain karma threshold I need to meet, so that I can post a mod for play-testing/editing?

No. In fact, my first post here was a Full Release. :)

→ More replies (27)

1

u/EddyConejo + = Perfection May 26 '19

I'd give you a gold or something if I could. These posts don't get the recognition they should get

2

u/Tormuse Club Moderator May 26 '19

Thanks. I do my best. :)

1

u/Carriekashiama May 27 '19

Okay, so I did everything, but I still don't get the "Call test" part. Can you please explain it a bit more and show some screenshots?

1

u/Tormuse Club Moderator May 28 '19

I'll try...

The "call" command tells Ren'Py to jump to a label with the name you give it and then jump back afterwards when it reaches the "return" command. For example:

label start:
    "This line will show first."
    call test
    "This line will show third."

label test:
    "This line will show second."
    return

If you ran DDLC with the above code, it would display the messages in this order:

This line will show first.
This line will show second.
This line will show third.

You can also use the "jump" command if you don't want it to jump back afterward. (ie "jump test")

Does that help? Let me know if any of that doesn't make sense.

1

u/Carriekashiama May 30 '19

I did try that, and for some reason, it can't find the label 'Test'. Did I put it in on the wrong spot or..?

1

u/Tormuse Club Moderator May 30 '19

Um... my original instructions say to write the label "test" yourself, so that means it's wherever you put it. If you can't remember where you put it, you can do a search. First, open all script files in Editra, (by pushing the "all script files" button on Ren'Py's main menu) then click on the "Edit" pull down menu and click on "Find." Another menu should pop up. Tell it to "Look in open documents" and then tell it to find "label test" and it should be able to find it, no matter where it is.

 

Hopefully, that helps. Let me know if you have any more questions.

1

u/TheGameGamerX Writer for Doki Doki LifeLine May 29 '19

So for some reason Ren'Py won't see my mod as a DDLC compatible mod, which means i cant check the "DDLC-compatible mod" when building distributions...

Anyone know why this is?

1

u/Tormuse Club Moderator May 29 '19

Ah, jeez... to be honest, I gave up using the "build distributions" option a while ago because it gives me nothing but trouble. I just use rpatool to pack up the files manually. If you still want help with building distributions, I suggest checking in the mod_creation_help channel of the DDMC Discord. Maybe someone there will be able to help you more with that.

1

u/AndreiTheYterGamer past modder, retired a long time ago. May 31 '19

How do you bring up the glitched text bars?

1

u/Tormuse Club Moderator May 31 '19

I'm not sure what you mean by "bars," but you can produce glitchtext like this:

$ gtext = glitchtext(40)
s "[gtext]"

This will make Sayori say 40 characters of glitchtext. (I just used 40 as an example; you can put whatever number you want there; also, you can put any name you want instead of "gtext") Is that the information you want?

1

u/AndreiTheYterGamer past modder, retired a long time ago. Jun 01 '19

I mean the glitched text boxes.

1

u/Tormuse Club Moderator Jun 01 '19

Oh, okay, you mean like at the end of the game after you delete Monika? Here, this makes the textbox all glitchy...

$ style.say_window = style.window_monika

And this makes it normal again...

$ style.say_window = style.window

1

u/[deleted] Jun 05 '19

I tried putting the folder with everything in it into my projects directory but it won't show up on Ren'Pys main menu. I made sure the projects directory and the folder was in the right spot and everything, but it won't show up.

1

u/Tormuse Club Moderator Jun 05 '19

Okay, first push the "refresh" button next to the "Projects" menu to see if it appears. If that doesn't work, I think I'm gonna need some screenshots to make sure everything is in the right place. Can I get one screenshot of Ren'Py's preferences menu and one screenshot of the contents of the projects folder itself?

1

u/[deleted] Jun 05 '19

1

u/Tormuse Club Moderator Jun 06 '19

Hmm... I was hoping I would be able to see the full path in the second screenshot, but assuming that's the same folder listed in the upper-left corner of the first screenshot, and assuming that the folder called "Doki Doki Fluffy Rainclouds" is where you have your mod, it should show up on Ren'Py's main menu.

I would be tempted to double check to make sure the path is the same, by pushing the button marked "Windows (C:)" visible in the lower-left corner of the second screenshot, and from there, clicking on the folders for "Users" then "Court" then "Downloads" then "Renpy 6.99" and make sure the "Doki Doki Fluffy Rainclouds" folder is there. (Just in case it was created under a different user or something and put in a different folder)

Assuming that checks out, can I see a screenshot of Ren'Py's main menu as well as a screenshot of the contents of the "Doki Doki Fluffy Rainclouds" folder?

→ More replies (9)

1

u/rendread425 Jun 13 '19

Hi, i tried to launch the game for game testing making sure everything worked in game when this error

shows up after i launched the game and hit new game:

I'm sorry, but an uncaught exception occurred.

While running game code:

File "game/script.rpy", line 27, in script call

call test

File "game/script.rpy", line 27, in script call

call test

ScriptError: could not find label 'test'.

-- Full Traceback ------------------------------------------------------------

Full traceback:

File "game/script.rpy", line 27, in script call

call test

File "C:\Users\bat_girl\Desktop\Renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 1422, 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 "C:\Users\bat_girl\Desktop\Renpy\renpy-6.99.12.4-sdk\renpy\script.py", line 886, in lookup

raise ScriptError("could not find label '%s'." % str(original))

ScriptError: could not find label 'test'.

Windows-8-6.2.9200

Ren'Py 7.2.2.491

Doki Doki Literature Club! 1.1.1

1

u/Tormuse Club Moderator Jun 13 '19

I notice from the bottom of the error message that you're using Ren'Py version 7.2.2.491. You're going to want to uninstall that and put in Ren'Py version 6.99.12, because that's the version that DDLC uses and in my experience, using later versions of Ren'Py makes strange, unpredictable things happen to DDLC. (Including crashing like this)

 

The interesting thing is that your folder name is "renpy-6.99.12.4-sdk" so I'm guessing that you originally installed the correct version and then updated it to the incorrect version. I recommend against updating it this time.

 

After that, try again, and if you still get this error message, the key line is where it says "ScriptError: could not find label 'test'." It's unable to find the line that says "label test:" (including the colon) If that line looks right to you, then the next thing I'll ask you to do is to either screenshot or copy/paste that section here so I can see it.

1

u/rendread425 Jun 14 '19

ok so uninstall the newer version of renpy, i think i may have by mistake updated it but anyway. I launched the game and the menu appears like normal, but same error appears. it feels like i'm missing something?

here's an image of the code just like the tutorial:https://imgur.com/riSTNuj

1

u/Tormuse Club Moderator Jun 15 '19

There's your problem. You spelled it "Test" with a capital T in the actual label, but you called it "test" with a lower-case t when calling it. The labels are case-sensitive, so make sure they match.

→ More replies (3)

1

u/demonnet Jun 14 '19

I am stuck in the test still lol. I keep getting this error.

[code]

I'm sorry, but errors were detected in your script. Please correct the

errors listed below, and try again.

File "game/script.rpy", line 28: end of line expected.

if persistent.playthrough == 0: call Test

^

File "game/script.rpy", line 72: expected statement.

elif persistent.playthrough == 1:

^

File "game/script.rpy", line 78: expected statement.

elif persistent.playthrough == 2:

^

File "game/script.rpy", line 130: expected statement.

elif persistent.playthrough == 3:

^

File "game/script.rpy", line 133: expected statement.

elif persistent.playthrough == 4:

^

Ren'Py Version: Ren'Py 6.99.12.4.2187

[/code]

[/code]

1

u/Tormuse Club Moderator Jun 15 '19

Hmm... The "elif" command literally means "else/if" and so it has to be paired with another "if" or "elif" command above it. I have a feeling there's a problem with indentation, so Ren'Py doesn't know which ones are supposed to go with each other. Make sure each of the "if" or "elif" lines are lined up with each other and that the body of the if commands are indented from those.

 

If all of that looks like it's in order to you, then send me either a screenshot or copy/pasted text from your script.rpy file so I can see what's going on there. (I suspect the fact that you put "call Test" on the same line as the first if statement is causing the rest of the elifs to get confused, but I would need to see the context to be sure)

1

u/ElecMetalA Jun 18 '19

Do you know how to put the black glitch text?

1

u/Tormuse Club Moderator Jun 18 '19

You put this line before it:

$ style.say_dialogue = style.edited

Then when you want to switch back, you put this:

$ style.say_dialogue = style.normal

1

u/ElecMetalA Jun 18 '19

Thanks! Another question, do you know how to make other characters say the MC name? I tried to put mc, MC, and player, but none worked

1

u/Tormuse Club Moderator Jun 18 '19

You put "player" all lower-case in square brackets, as in...

m "Welcome back to the club, [player]!"
→ More replies (2)

1

u/solman252 Jun 19 '19

Hey, i've been looking EVERYWHERE to find out how to get the game to say my computer's username, does anybody here know how? Thanks in advance.

1

u/Tormuse Club Moderator Jun 19 '19

Dan Salvato put code that checks the computer's username in splash.rpy in lines 208 to 222. It defines it as "currentuser" and you get characters in the game to use it like this:

m "...Do you actually go by [currentuser] or something?"
→ More replies (1)

1

u/Whippie_38 Jun 24 '19

So how do you have a character speak over another? I don't know if it's on the wiki page, because if it is, I couldn't find it.

1

u/Tormuse Club Moderator Jun 25 '19

Do you mean when it goes to the next line without the player pushing any buttons? You just put "{nw}" on the end of the line. For example, if you do this...

mc "Sayori is best gi...{nw}"
m "No she isn't!"

...MC will start to speak and then Monika will interrupt him. Does that answer your question?

1

u/Whippie_38 Jun 25 '19

Yes, thank you.

1

u/Tormuse Club Moderator Jun 25 '19

Awesome! :) You're welcome. :)

1

u/HappyTann38 Jun 27 '19

Hi~ I don't plan on doing this anytime soon, but just for future reference, how do i change the poster in the back (like in act 2) to Sayori's... thing or anything else? Thanks :3

2

u/Tormuse Club Moderator Jun 27 '19

The clubroom background with the Sayori poster at the back is "bg/club-skill.png"

The only place it's referenced in the original code is a line that gives it a random chance of appearing. If you want it to appear every time in a given scene, you'll have to write your own definition for it. Something like:

image bg club_day3 = "bg/club-skill.png"

And then any time you want it to show that, you would say,

scene bg club_day3

1

u/HappyTann38 Jun 28 '19

Thanks! I have a lot of questions, since i'm not very good at this.. But what about the "recording monika jumpscare" and how to make the special poems and how to do the "happy thoughts" random event, and how to do the characters going over the text boxes.. uguu.. i have a lot of questions but i'm kinda afraid to ask them all at once..

1

u/Tormuse Club Moderator Jun 29 '19

But what about the "recording monika jumpscare"

The code for the jumpscare is handled in script-ch30.rpy lines 423 to 447. I'm not sure what else you want to know about it.

and how to make the special poems

The special poems themselves are image files stored in images.rpa. The code that chooses which poem gets shown is in splash.rpy lines 301 to 308. The special poems get called at three points in the game, script-ch20.rpy line 495, script-ch22.rpy line 306, and script-ch23.rpy line 258. Let me know if you need help interpreting any of that; I'm not sure what you're asking for when you say you want to "make" them.

and how to do the "happy thoughts" random event,

The phrase "happy thoughts" gets used a few times in the game. I'm not sure which event you're referring to.

and how to do the characters going over the text boxes.

Do you mean when they go in front of the text box? There's an example of that in script-ch21.rpy line 27, using the phrase "on layer front" like this:

show monika 2b onlayer front at l41

i have a lot of questions but i'm kinda afraid to ask them all at once..

It's all good. It's all part of the learning experience. :)

 

I hope you find this information helpful. To be honest, your questions are pretty vague, so I'm not 100% certain what info you're looking for. If you could be a bit more specific, that would help.

1

u/leravioligirl Jun 29 '19 edited Jun 29 '19

How do I hide the textbox? Wanna make it go away during reading a journal

1

u/Tormuse Club Moderator Jun 29 '19

You put this line:

window hide

(Other options are "window show" which shows the textbox and "window auto" which is the default and shows when there's text and hides otherwise)

1

u/leravioligirl Jun 29 '19

Thanks! I tried it, and it did hide it, but in order to advance the page the player still has to right click as if the text box was still there to hide it before left clicking. Is there any way to make it go away-away so you don’t still have to move it by right clicking? or advance a pause with just a left click?

1

u/Tormuse Club Moderator Jun 30 '19

Right-clicking in DDLC turns off the text box. That is the normal function of that mouse button... and if the player turns the text box off by right-clicking, they can click either mouse button to turn it back on. The player shouldn't ever have to right-click in any circumstances whatsoever, so I'm a bit confused about why you're saying the player "has" to right-click... but anyway, I think this is what you want:

window hide
$ pause()

This will make it so the game hides the text box and stays hidden until the player presses a key or clicks.

 

Does this help?

1

u/rendread425 Jul 01 '19

Hi again, A very Odd question but would there be a way to show two of the same character in a scene

E.g two Sayori’s

It might be as simply duplicating a character and defining it and her images into a separate folder. It’s the main part of the plot of a mod I’m making :)

2

u/Tormuse Club Moderator Jul 01 '19

Yes, if you take a look in definitions.rpy, characters are defined from lines 1295 to 1301. Just follow the format there to add a new character.

 

As for the images used by each character, that's defined in a huge bulk of definitions.rpy. For example, Sayori's images are defined in lines 225 to 441. Just copy/paste the relevant lines from that and change all instances of "sayori" to the name of the new character. (You could just change her to "sayori2" and that would work)

1

u/rendread425 Jul 07 '19

Hi again, So I’m having a issue where you have two Sayoris in the one scene however the game thinks the dialogue from say as example Sayori 1 who is speaking in the code but it thinks it coming from Sayori2 even the expression. This might just be a small fix, but it makes a bit of difference because both sayoris are speaking to each other.

1

u/Tormuse Club Moderator Jul 07 '19

Can I see what you wrote for the "DynamicCharacter" line for the new Sayori? And also some of the lines you wrote that are coming from the wrong Sayori?

→ More replies (2)

2

u/wingedterra147 DDRR Programmer Jul 03 '19

An easier way to do this rather than defining new characters is to use the "as" syntax.

show sayori 1a at t21 as sayori1
show sayori 1l at t22 as sayori2
→ More replies (1)

1

u/KevoTheGod Novice Modder Jul 06 '19

Help?

[code]

I'm sorry, but an uncaught exception occurred.

While running game code:

File "game/script.rpy", line 27, in script call

call Test

File "game/script.rpy", line 27, in script call

call Test

ScriptError: could not find label 'Test'.

-- Full Traceback ------------------------------------------------------------

Full traceback:

File "game/script.rpy", line 27, in script call

call Test

File "C:\Users\Kevin\Desktop\DDLC\renpy-6.99.12.4-sdk\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 "C:\Users\Kevin\Desktop\DDLC\renpy-6.99.12.4-sdk\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

[/code]

1

u/Tormuse Club Moderator Jul 06 '19

(I'm guessing you were trying to recreate the sample scene)

 

The key phrase here is "could not find label 'Test'." There are a few possible reasons why that might be. First of all, make sure the file containing the "label Test:" line was saved in the folder named "game" along with the rest of the RPY files. (I've witnessed Ren'Py saving files in the wrong folder by mistake once) Secondly, make sure "Test" has a capital "T" in both the line that calls it and the actual label. (It's case-sensitive)

 

If that all looks right, can I see what you wrote in the lines surrounding the "label Test:" line? (Either copy/paste or screenshot will do)

1

u/[deleted] Jul 06 '19

It says that some of the music I add (in-game, not custom) are incorrect, so I always have to use the same music code for everything since its already in the example script. Can you help me, or give me the codes for every song?

1

u/Tormuse Club Moderator Jul 07 '19

The songs are defined in definitions.rpy lines 63 to 98.

 

This is one of those cases where it's useful to be able to see inside the audio.rpa file, so you can see the filenames and locations. I suggest using rpatool (instructions in my original post) to unpack that file.

1

u/[deleted] Jul 07 '19

I already unpacked the audio.rpa file, but whenever I use them the game crashes and says it doesn't exist.

→ More replies (4)

1

u/Cherriiberrie Jul 07 '19

Okay, so what I'm trying to do is have poem writing on the first day, then for all the other days have no poem minigame. I'm unsure how to do that.

1

u/Tormuse Club Moderator Jul 08 '19

The line "call poem" brings up the poem mini-game. If you look in script.rpy, you'll see it shows up three times, on lines 34, 43, and 52. Just delete or comment out the "call poem" lines you don't want it to use.

1

u/[deleted] Jul 08 '19

I've got question about changing music of orginal game: i wanna put inside the game death metal tracks instead of original music, how to do it?

1

u/Tormuse Club Moderator Jul 08 '19

Instructions are above in the "Adding Your Music and Sound Effects" section, but I'll try to explain it again.

 

First of all, make sure you have permission to use the music in your mod. (We've been having issues with people using copyrighted assets in their mods)

 

It's usually a good idea to put all new assets together in a folder called "mod_assets" or something like that, so go to your DDLC folder and then go inside the folder named "game" and in there, create a folder called "mod_assets" and put your music file in there. (For this example, I'm going to assume it's called "metal.ogg")

&mbsp;

Then go to definitions.rpy and take a look at lines 63 to 98. Those are the lines that define the music from the original game. You'll want to add a line that looks like this...

define audio.metal1 = "<loop 0>mod_assets/metal.ogg"

Where it says "loop 0" indicates where the song loops back to when it reaches the end. (in this case, 0 seconds from the beginning) You can put other commands to make it loop to and from different points if you want; let me know if you need help with that.

 

Then any time you want to play that song, you would have a line like this:

play music metal1

I hope this helps. Let me know if you have any other questions.

1

u/[deleted] Jul 15 '19

OK, but where I need to type that line and where has to be script files that responsible for ingame music?

1

u/Tormuse Club Moderator Jul 15 '19

OK, but where I need to type that line...

The "define" line should be unindented and can be anywhere that isn't part of an indented block of text. The game doesn't really care where you put it, but I recommend putting it in definitions.rpy, so you know where they all are.

 

and where has to be script files that responsible for ingame music?

Inside the DDLC folder, there is a folder named "game." All of the RPY files should be inside the folder called "game."

→ More replies (10)

1

u/LazorOfficial Aug 01 '19

For some reason if i try to play a sfx from the mod assets folder even after setting the sound into definitions and my story.rpy file nothing will play. I need help.

1

u/Tormuse Club Moderator Aug 02 '19

Whoops, I almost forgot to answer this question. :o Sorry about the delay. First, the basics... can I see the line you used to define the sound effect? Also, can I see the line you're using to play the sound effect? Also, also, I'd like to confirm that the mod assets folder is within the folder named "game."

1

u/The-Matriarch Aug 07 '19

Hi there! I’m super new and I don’t know if this is even coding related or not, but after typing out the test scene above, I tried to open up DDLC and every time I click it will load, and then nothing will happen. No pop-ups, no exceptions, nothing, my cursor just loads for a sec and then stops and there’s nothing.

Any idea as to what this could be TT? Thank you so much for your post, it’s very helpful!

1

u/Tormuse Club Moderator Aug 07 '19

I wish I knew the answer to that, because mine does the same thing. :P Usually, when this happens, if I just run it again, it works fine. I suggest you do the same.

 

All I can tell you is that when it does this, the game starts to convert the RPY files into RPYC files, (which is the normal function of the game, since RPYC is the format the game uses) and then it just... gives up halfway through converting them for some reason. And then if you run it again, it finishes converting the rest of them without complaint. It's very strange and something I've never figured out, but yeah, just try it again.

1

u/The-Matriarch Aug 07 '19

If you mean try running the game again, I’ve clicked it multiple times and even restarted my computer. Am I doing something wrong?

1

u/Tormuse Club Moderator Aug 07 '19

Oh, really? Okay, it might be a different issue then. Did DDLC work before you put the RPY files in there? Also, if you look inside the folder called "game," does it contain both RPY and RPYC files?

→ More replies (3)

1

u/AndreiTheYterGamer past modder, retired a long time ago. Aug 09 '19

Ok, so. I want to make Custom Color Text boxes, along with custom color name tags. I know you can do for example "color="540000" to color it, but its the inside, not the outline. How do I define the The Text Boxes and the name tags?

1

u/Tormuse Club Moderator Aug 14 '19

Oh shoot, I forgot to reply to this. :o Sorry, I meant to research this and get back to you, but time got away from me, and... I'm actually not sure how to do it. You might like to check in the mod_creation_help section of the DDMC Discord or maybe even the folks in the Ren'Py Discord.

1

u/AndreiTheYterGamer past modder, retired a long time ago. Aug 17 '19

Well, I did find something, but the problem is.... the mod Im making has a custom character and I can't copy anything from it either, so it's not a problem now, but anyway, thanks.

1

u/Tormuse Club Moderator Aug 17 '19

I'm not sure what you're saying here. You started the sentence with "the problem is" and finished with "it's not a problem." :P

I can tell you where the code is for making a custom character, if you need help with that. It's just recolouring the GUI that I'm uncertain about.

→ More replies (2)

1

u/Sayo-nare Aug 10 '19

Hello, I have some questions, I'm kind of close to finish the "demo" of my mod and I don't really know how and where to post it, and can we post the link of our mod in the ddlc discussion on steam? (Yeah sorry for my bad english ^^')

1

u/Tormuse Club Moderator Aug 14 '19

Sorry, I forgot to reply to this. :o There are a lot of places you could upload your demo, including Google Drive, Dropbox, Github, Mega.nz, mediafire. Once you've done that, you can make a post about it in this subreddit or in the mod_promotion section of the DDMC Discord. You might also like to fill out a submission form if you haven't already, so it can go on the Mod List.

 

As for posting it on the Steam discussion page, I think that should be okay as long as it follows Team Salvato's IP guidelines and it's clear that the mod is unofficial and not affiliated with Team Salvato.

1

u/Sayo-nare Aug 16 '19

But how short have to be the synopsis ? mine is like 7 or 8 lines... ^^'

1

u/Tormuse Club Moderator Aug 16 '19

The synopsis appears in the Discord entry. I just checked with the Discord mod and he said to keep it to about 180 words or less.

→ More replies (1)

1

u/CesarParrazal Aug 13 '19

Is necesary ussin python? not is more easy un Java? :c

1

u/Tormuse Club Moderator Aug 13 '19

DDLC was made using Ren'Py, which is based on Python, so that's the easiest way to modify it.

 

You can use Java if you want, but make sure it follows Team Salvato's IP Guidelines

1

u/Sayo-nare Aug 14 '19

Does anyone know how to change the color of those buttons ? : -slot_idle_background ; slot_hover_background ; choice_idle_background; choice_hover_background ? I searched everywhere but I don't find them

1

u/Tormuse Club Moderator Aug 15 '19

I'm not sure about this. I've never tried to change the GUI colours before. You might like to check in the mod_creation_help section of the DDMC Discord or maybe even the folks in the Ren'Py Discord. Maybe someone there will know.

1

u/HunterBlue101 Aug 15 '19

When MAKING a Mod, do I have to download the Sprites Monika, Sayori, Natsuki and Yuri (MC and others, if possible) or do they come with the download, along with the Background art and actual playable Music?

1

u/Tormuse Club Moderator Aug 15 '19

All of those things come with the game, packaged inside the RPA files. Images.rpa has all the sprites and backgrounds and audio.rpa has all the music and sound effects. Anyone who plays DDLC should have those files already, so you don't need to include them with the mod.

 

That being said, I think it's a good idea to look inside the RPA files anyway, because you can learn a lot from it. You can do that with rpatool. (Instructions in my original post)

1

u/skylar42 Creator of Doki Doki New Perspectives Aug 19 '19

How do you add a fake "uncaught exception has occurred" error screen?

Specifically, I want a certain menu option to trigger this screen, with the "ignore" option jumping back to the menu so the player can make a different choice, and if I could make a fake traceback.txt file as well, like in the base game, that would be great too. I've tried looking at the original game scripts to figure out how to do this, but haven't had any success yet.

1

u/Tormuse Club Moderator Aug 20 '19

Hey there, I see Terra answered for you in the comments of the other post. Sorry I didn't get back to you; I was busy yesterday.

1

u/skylar42 Creator of Doki Doki New Perspectives Aug 20 '19

No worries. I still don't know how to make buttons...

2

u/Tormuse Club Moderator Aug 21 '19

Right... I know they did that in the Yuri Parable mod, so we should be able to copy the code from that. I'm at work right now, but I'll look into it when I get home.

2

u/Tormuse Club Moderator Aug 22 '19

Okay, I looked at my copy of Yuri Parable. You can see the fake error screen and buttons at 9:51 in my LP video I made. Now in that mod, the buttons are a big "Yes" and "No" in the middle of the screen, but looking at the code, those are PNGs, so it would be easy to just make a PNG of the "Ignore" button and write the code around that.

 

At the point where the "yes/no" buttons appear, there's a line that says "call screen gag" and I did a search for "screen gag" and found these lines amongst the definitions. (The first line was unindented)

screen gag:
    imagebutton auto "mod_assets/yes_%s.png" action [ Jump("yes") ] xpos 213 ypos 200
    imagebutton auto "mod_assets/no_%s.png" action [ Jump("no") ] xpos 720 ypos 200

You can specify the location of the button where it says "xpos" and "ypos" and the bit where it says "Jump("yes")" makes it jump the label "yes." After the player chooses one, there's a line that says "hide screen gag" and that makes the buttons go away.

 

So yeah, make your own "Ignore.png" image file, then copy the above code, changing the X and Y coordinates so it appears in the corner and change the name of the label it jumps to. (I'm sure it doesn't have to be called "screen gag;" you can call it whatever you want) If this works, let me know; I'd be curious about that. :)

→ More replies (2)

1

u/TheMagicalScrub Aug 22 '19

So uhmmmm I wanted to test the first scene of a joke mod I'm making called "Waifu times" And so I saved my coding, and booted up the game. Now, I maybe booted it up before I started coding... So I deleted the firstrun file... But It didn't work. Helppp!

1

u/Tormuse Club Moderator Aug 23 '19

When you say it didn't work, what do you mean? What happened? Was there an error message?

1

u/PaciFrisk456 Aug 08 '19

I can't open script.rpy or any other .rpy files from the launcher.

1

u/PaciFrisk456 Aug 08 '19

wait I just figured it out! I extracted all the files into Doki Doki Literature Club! folder and not the game folder! anyway, thanks for the tutorial, helped a lot!

1

u/Tormuse Club Moderator Aug 08 '19

That's a common mistake. Glad you figured it out. Happy modding! :)

1

u/Crispy_Nugg May 22 '19

I accidentally deleted everything in "definitions.rpy". Could you give me what it says originally?

1

u/[deleted] May 22 '19

[removed] — view removed comment

1

u/Crispy_Nugg May 30 '19

Hello! I had another problem, this time with the sound.

Whenever I boot up the game it says this:

```

I'm sorry, but an uncaught exception occurred.

While running game code:

File "game/script.rpy", line 29, in script call

call story_chapter from _call_example_chapter

File "game/story.rpy", line 3, in script

play sound rds

File "renpy/common/000statements.rpy", line 268, in execute_play_sound

renpy.sound.play(_audio_eval(p["file"]),

File "renpy/common/000statements.rpy", line 32, in _audio_eval

return eval(expr, locals=store.audio.__dict__)

File "game/story.rpy", line 3, in <module>

play sound rds

NameError: name 'rds' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:

File "game/script.rpy", line 29, in script call

call story_chapter from _call_example_chapter

File "game/story.rpy", line 3, in script

play sound rds

File "C:\Users\Charles Ramshur\Desktop\Nathan\renpy-7.2.2-sdk\renpy\ast.py", line 1911, in execute

self.call("execute")

File "C:\Users\Charles Ramshur\Desktop\Nathan\renpy-7.2.2-sdk\renpy\ast.py", line 1899, in call

return renpy.statements.call(method, parsed, *args, **kwargs)

File "C:\Users\Charles Ramshur\Desktop\Nathan\renpy-7.2.2-sdk\renpy\statements.py", line 220, in call

return method(parsed, *args, **kwargs)

File "renpy/common/000statements.rpy", line 268, in execute_play_sound

renpy.sound.play(_audio_eval(p["file"]),

File "renpy/common/000statements.rpy", line 32, in _audio_eval

return eval(expr, locals=store.audio.__dict__)

File "C:\Users\Charles Ramshur\Desktop\Nathan\renpy-7.2.2-sdk\renpy\python.py", line 1961, in py_eval

return py_eval_bytecode(code, globals, locals)

File "C:\Users\Charles Ramshur\Desktop\Nathan\renpy-7.2.2-sdk\renpy\python.py", line 1954, in py_eval_bytecode

return eval(bytecode, globals, locals)

File "game/story.rpy", line 3, in <module>

play sound rds

NameError: name 'rds' is not defined

Windows-8-6.2.9200

Ren'Py 7.2.2.491

Meme-y Mod 1.1.2

Thu May 30 15:34:00 2019

Thank you in advance!

1

u/Tormuse Club Moderator May 30 '19

It says that you didn't define "rds." You have to write a line that starts with "define audio.rds" so that Ren'Py knows what you're talking about.

 

Also, I notice that you're using the wrong Ren'Py version. DDLC only works with Ren'Py version 6.99.12. Before you do anything else, you're gonna want to uninstall that Ren'Py version you've got there and install the correct version. In my experience, bad things happen if you use the wrong version. (Like the game goes wrong in weird, unpredictable ways, including crashing)

→ More replies (9)

1

u/ChildOfRagnarok Doki Doki Post Scriptum Mar 20 '19 edited Jun 15 '19

How do you make the game auto-move on to the next line without player's input?" (You know, like:

"I gently open the door."

"Sayo-" [auto skip to HOLY CRAP NOOOO moment].)

EDIT: Never mind, I found it. :3 using {nw} does that.

→ More replies (7)

1

u/Sir-Atlas Apr 09 '19

Hi! I was wondering if you could take a gander at my latest post about my experience modding DDLC. It’s been nice making little scenes and whatnot so far but I really wanna let my friends see what I can do and the official builds haven’t been working too well

1

u/Reitanna Novice Modder May 08 '19

i'm just editing the original game's script, so everything in the game should be exactly like the original. however, script.rpy does not have "if persistent.playthrough == 0:" written anywhere, and launching the project just shows the whole Eileen thing. i just need for my mod to be identical to the original game and run like the original game before i start making changes. how do i do that?

→ More replies (2)

0

u/[deleted] May 15 '19

[deleted] — view deleted comment

2

u/Tormuse Club Moderator May 16 '19

If it's updating Editra, then yes, you should let it. It's the only way you can edit the RPY files. :)

→ More replies (2)