Does anyone know what's going on here? More information in the comments.

I'm getting this weird error for chapter 1, scenes 37 & 43 in my visual novel.

The first one, for scene 43, makes no sense. On line 5, I have written:

label ch1s43:

So I'm not sure why that's bringing up an error. I have the scene labeled the exact same way on line 5 in every single scene. So I don't know why it's now giving me an error for this scene.

The second error for scene 37 is also bringing me a lot of grief. For some reason, this entire scene keeps glitching out. (This was originally due to me labeling a variable twice in the code. But I fixed that. I also misused a 'call' instead of 'jump' command, which made the entire scene play again, after beating the game, lol. That's also been fixed.)

The error says that the scene does not end with a return statement. This is true. None of my scenes end with a 'return' statement, because they 'jump' to the next scene.

Scene 37 ends with the following code:

jump ch1s38

The game then successfully jumps to scene 38.

It should also be noted that the entire game is playable. I only run into these errors when I finish playing, which makes no sense to me.

Let me know what can be done about this. Scene 37 in particular has been giving me a headache for a while.

/r/RenPy Thread Link - i.redd.it