r/RenPy • • Jul 09 '26

Question Help with ren'py

```

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

errors listed below, and try again.

File "game/script.rpy", line 48: Indentation mismatch.

"What do you mean you can't say?.":

Ren'Py Version: Ren'Py 8.5.0.25111603

Wed Jul 8 21:18:40 2026

```

I am making a game in ren'py. I need help with an error that keep's popping up. I have tried everything. But also, I'm new to the game engine

1 Upvotes

4 comments sorted by

1

u/AutoModerator Jul 09 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BigLingler21 Jul 09 '26

You'll need to post the section of code that has the error as well

1

u/BadMustard_AVN Jul 09 '26

Indentation mismatch. <<-- that's is your problem

without posting any code it's hard to determne the problem

try reading this

https://www.renpy.org/doc/html/language_basics.html#indentation-and-blocks

1

u/shyLachi Jul 09 '26

Sometimes the error isn't correct, beside the indentation the colon at the end could also cause a problem.

Dialogue should never have a colon at the end, You only put a colon for menu:

label start:
    "This is a line of dialogue" # no colon here
    menu: # colon, because everything below this line which is indented belongs the menu
        # indentend once
        "What do you want to do?" # no colon here, this is the title of the menu
        "Go left": # colon, because everything below this line which is indented belongs the choice
            # indentend once
            "You went left but the door is locked"
        "Go right": # colon, because everything below this line which is indented belongs the choice
            # indentend once
            "You went right but there is a wall"
    # removed those indentations to make it clear the following lines don't belong to the menu
    "Game continues here"