u/Dry-Variation-8048

▲ 1 r/RenPy

Struggling to add a Webm as a background

Hello again! I'm back with more help needed. I'm a complete beginner in code, so please word it for me like I'm five. I'm currently trying to add a video (in webm) format as the background of my VN, but no matter how I write it out, my game says:

"could not load image 'images/bg_loopable.webm' (webm files are not supported by Ren'Py): error('Unsupported image format')

This is what the code currently looks like in my declare file (my video file's name is bg_loopable.webm), though I've gone through several iterations of this based on other advice online.

image bg_loopable = Movie(play = "images/movies/bg_loopable.webm")
show bg_loopable at truecenter
pause

And in my main script, it is supposed to be triggered by:

    screen test:
        add "bg_loopable"

I would also ideally like for shorter, non-looping clips to play when certain dialogue is chosen, so if anyone can give suggestions on how to trigger those as well, it would be greatly appreciated.

Thank you in advance for any help you're able to provide, I really appreciate it!

reddit.com
u/Dry-Variation-8048 — 1 day ago
▲ 7 r/RenPy

Help needed with multiple dialogue options

Hi there! I am attempting to make a "Disco Elysium"-style VN, but I've never coded in my life and I'm struggling.

I'm using the Disco Framework by Katy133 on itch.io made for RenPy. My main issues come from having different dialogue choices the player can choose from; I'm having a tough time allowing players to choose all the different options before moving on, like in the actual game.

This is what I'm trying to emulate in my game. I'd like the players to be able to choose any/all of the dialogue options (besides the "continue" option) before moving on. The game technically runs, it just doesn't format the dialogue in the way I want it to.

I would also love, ideally, to be able to include choices within choices (ex. you choose dialogue option 1, which then allows the player more choices specific to the option 1 dialogue branch), but I know that's more complicated, so I'm not too concerned with that currently (but if anyone knows how to do that, I'd love to hear it!).

Here's an example of one of the multiple dialogue options:

   menu (nvl=True):
        "{color=[fys]}ELECTROCHEMISTRY{/color} — You know exactly why!"


        "{color=[textnorm]}1. -{/color} \“I just want to learn more about the world.\”":


            "{color=[youtext]}YOU — “I just want to learn more about the world.”{/color}{nw}"


            menu (nvl=True):
                "{color=[npc]}KIM KITSURAGI{/color} — \“I'm sure you do.\”" 


                "{color=[textnorm]}2. -{/color} \“I just want to learn more about you, Kim.\”":


                    jump questionmorekim


                "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


                    jump questionfeelings # Takes you back to the choice with the same
                                    # label name.


        "{color=[textnorm]}2. -{/color} \“I just want to learn more about you, Kim.\”":


            "{color=[youtext]}YOU — \“I just want to learn more about you, Kim.\”{/color}{nw}"


            menu (nvl=True):
                "{color=[npc]}KIM KITSURAGI{/color} — He taps his finger on his cigarette. The light at the end of it reflects in his glasses. \“Do you?\”" 


                "{color=[textnorm]}1. -{/color} \“I just want to learn more about the world.\”":


                    jump questionmoreworld
                
                "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


                    jump questionfeelings
            
        "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


            label questionmoreworld:


                "{color=[youtext]}YOU — \“I just want to learn more about the world.\”{/color}"


                "{color=[npc]}KIM KITSURAGI{/color} — \“I'm sure you do.\”"
          
            label questionmorekim:


                "{color=[youtext]}YOU — \“I just want to learn more about you, Kim.\”{/color}"


                "{color=[npc]}KIM KITSURAGI{/color} — He taps his finger on his cigarette. The light at the end of it reflects in his glasses. \“Do you?\”" 


            label questionfeelings:


                "{color=[youtext]}YOU — \“I've been having so many feelings.\” (Proceed.){/color}{nw}"   menu (nvl=True):
        "{color=[fys]}ELECTROCHEMISTRY{/color} — You know exactly why!"


        "{color=[textnorm]}1. -{/color} \“I just want to learn more about the world.\”":


            "{color=[youtext]}YOU — “I just want to learn more about the world.”{/color}{nw}"


            menu (nvl=True):
                "{color=[npc]}KIM KITSURAGI{/color} — \“I'm sure you do.\”" 


                "{color=[textnorm]}2. -{/color} \“I just want to learn more about you, Kim.\”":


                    jump questionmorekim


                "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


                    jump questionfeelings # Takes you back to the choice with the same
                                    # label name.


        "{color=[textnorm]}2. -{/color} \“I just want to learn more about you, Kim.\”":


            "{color=[youtext]}YOU — \“I just want to learn more about you, Kim.\”{/color}{nw}"


            menu (nvl=True):
                "{color=[npc]}KIM KITSURAGI{/color} — He taps his finger on his cigarette. The light at the end of it reflects in his glasses. \“Do you?\”" 


                "{color=[textnorm]}1. -{/color} \“I just want to learn more about the world.\”":


                    jump questionmoreworld
                
                "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


                    jump questionfeelings
            
        "{color=[textnorm]}3. -{/color} \“I've been having so many feelings.\” (Proceed.)":


            label questionmoreworld:


                "{color=[youtext]}YOU — \“I just want to learn more about the world.\”{/color}"


                "{color=[npc]}KIM KITSURAGI{/color} — \“I'm sure you do.\”"
          
            label questionmorekim:


                "{color=[youtext]}YOU — \“I just want to learn more about you, Kim.\”{/color}"


                "{color=[npc]}KIM KITSURAGI{/color} — He taps his finger on his cigarette. The light at the end of it reflects in his glasses. \“Do you?\”" 


            label questionfeelings:


                "{color=[youtext]}YOU — \“I've been having so many feelings.\” (Proceed.){/color}{nw}"

And these are the options and their subsequent replies, in case my code is too hard to read:

>“I just want to learn more about the world.”

>KIM KITSURAGI - “I’m sure you do.”

>“I just want to learn more about you, Kim.”

>KIM KITSURAGI - He taps his finger on his cigarette. The light at the end of it reflects in his glasses. “Do you?”

>“I’ve been having so many feelings.” (Proceed.)

Any/all help is very, very much appreciated! Please let me know if additional info/clarification is needed.

reddit.com
u/Dry-Variation-8048 — 15 days ago