[Solved] End of line expected

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Nicolajsej123
Newbie
Posts: 8
Joined: Sun Jan 20, 2019 10:10 am
Contact:

[Solved] End of line expected

#1 Post by Nicolajsej123 »

Hey I've been having some problems with this error.
-

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 223: end of line expected.
    j "R-really? I-I mean, come on let me show you your room!":
                                                              ^

File "game/script.rpy", line 229: end of line expected.
    j "Ahh.. okay I'll see you later then...":
                                             ^

Ren'Py Version: Ren'Py 7.1.3.1092
Tue Jan 22 21:09:16 2019
I have tried everything i can think of, but i can't seem to get it working. If you could help that would be swell.
Image has been added to show coding aswell.
Attachments
My coding
My coding
Last edited by Nicolajsej123 on Wed Jan 23, 2019 10:37 am, edited 2 times in total.

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: End of line expected

#2 Post by Obscura »

Those lines listed in the errors are neither labels, menus, nor menu options. If you're just having a character say something, and then jumping to a new label, you don't need a :.

Also are those lines ONLY supposed to show up if you jump to a specific label? (Like label around: or label jdoesntshow). If yes, they need to be indented once under that label, so the entire script doesn't flow to that line.

So if you want j to say "R-really? I-I mean, come on let me show you your room!" ONLY if theyou decide to jump around, it should look like:

Code: Select all

label around:
  $jshowedroom = True
  j "R-really? I-I mean, come on let me show you your room!"
  jump jshowsroom
Same format for the other error.
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: End of line expected

#3 Post by Alex »

There are problems with indentation in your script. Check this to see it - viewtopic.php?f=8&t=53428&p=503253#p503253

Code: Select all

j "R-really? I-I mean, come on let me show you your room!":
if this line is the third choice in menu - then it should be indented properly and shouldn't be sayd by j-character. If this line is not a choice, then it doesn't need a colon at the end and the next line shouldn't be extra indented.

Nicolajsej123
Newbie
Posts: 8
Joined: Sun Jan 20, 2019 10:10 am
Contact:

Re: End of line expected

#4 Post by Nicolajsej123 »

Alright thanks guys i got it working

Post Reply

Who is online

Users browsing this forum: Bing [Bot], MisterPinetree, Nozori_Games