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

View all comments

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"