End of line expected error

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
User avatar
timeblitz
Newbie
Posts: 4
Joined: Mon Mar 27, 2017 5:18 pm
Deviantart: timeblitz
Contact:

End of line expected error

#1 Post by timeblitz » Mon Mar 27, 2017 10:28 pm

Hello again! Sorry for posting again so soon, but I've run into another snag. I've looked at other's posts with this issue but no dice. I've gotten this error here.

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 136: end of line expected.
    m "What are you doing in these lands? This place seems a bit hot for you.":
                                                                              ^

File "game/script.rpy", line 152: end of line expected.
    m "Oh. Sorry.":
                  ^

Ren'Py Version: Ren'Py 6.99.10.1227

Here's the text:

Code: Select all

 label greet:
                            "You shout out a hello. They turn around at the sound of your voice."
            
                            show miura 1 at right
                            with fade
            
                            m "Oh! Hello! I didn't expect to see anyone else way out here."
                            m "What are you doing in these lands? This place seems a bit hot for you.":
                                jump int
                            
                        label boo:
                            "You sneak up behind the dragon and give a fearsome roar."
                            
                            show miura 2 at right
                            with fade
                            
                            m "ARRGH!!!"
                            m "I shall make you regret that! You don't look like much of a challenge, I could take you out easy!"
                            
                            show miura 3 at right
                            
                            m "You..."
                            m "You were just playing a joke?"
                            m "Oh. Sorry.":
                                jump int
                                
                        label int:
                            m "I suppose I should introduce myself."
                            m "My name is Miura."

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: End of line expected error

#2 Post by indoneko » Mon Mar 27, 2017 10:43 pm

remove the : at the end of this line :
m "Oh. Sorry.":

Beware of indentation errors... for example, this line :
jump int
should be placed at the same indentation as the line above it.

And don't give any indentations to your labels.
My avatar is courtesy of Mellanthe

User avatar
timeblitz
Newbie
Posts: 4
Joined: Mon Mar 27, 2017 5:18 pm
Deviantart: timeblitz
Contact:

Re: End of line expected error

#3 Post by timeblitz » Tue Mar 28, 2017 10:20 am

indoneko wrote:remove the : at the end of this line :
m "Oh. Sorry.":

Beware of indentation errors... for example, this line :
jump int
should be placed at the same indentation as the line above it.

And don't give any indentations to your labels.
Ah, all fixed. Thank you!

plaul2002
Newbie
Posts: 6
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#4 Post by plaul2002 » Thu Sep 13, 2018 1:04 pm

Any help would be appreciated. Getting end of line expected error.

menu:
pc "You're right! I'd be too embarrased to show up there again!":
jump cur_l
pc "You're over reacting %(sis)s. He's a man of Gawd. I'm sure his thoughts were as pure as your own.":
jump donut

plaul2002
Newbie
Posts: 6
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#5 Post by plaul2002 » Thu Sep 13, 2018 1:05 pm

menu:
pc "You're right! I'd be too embarrased to show up there again!":
jump cur_l
pc "You're over reacting %(sis)s. He's a man of Gawd. I'm sure his thoughts were as pure as your own.":
jump donut

plaul2002
Newbie
Posts: 6
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#6 Post by plaul2002 » Thu Sep 13, 2018 1:06 pm

menu:
pc "You're right! I'd be too embarrased to show up there again!":
jump cur_l
pc "You're over reacting %(sis)s. He's a man of Gawd. I'm sure his thoughts were as pure as your own.":
jump donut

plaul2002
Newbie
Posts: 6
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#7 Post by plaul2002 » Thu Sep 13, 2018 1:06 pm

ok for some reason it won;t let me paste my code in right. So first questions how do you paste code in here? My indention isn't showing up right and all green.

rames44
Regular
Posts: 39
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: End of line expected error

#8 Post by rames44 » Fri Sep 14, 2018 12:41 pm

To put code in, type this:

[code]
Put your code here
[/code]

The “code” tags causes the stuff in between then to be formatted as, well, code, including preserving indentation.

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1763
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: End of line expected error

#9 Post by Imperf3kt » Fri Sep 14, 2018 4:38 pm

Note that while the forum won't show formatted code without code tags, the formatting is kept, so I can copy your code and see the indentation still, by quoting you.
plaul2002 wrote:
Thu Sep 13, 2018 1:06 pm

Code: Select all

    menu:
       pc "You're right! I'd be too embarrased to show up there again!":
       jump cur_l
       pc "You're over reacting %(sis)s. He's a man of Gawd. I'm sure his thoughts were as pure as your own.":
       jump donut
as best I can tell, you need to indent all lines by one more space.
jump cur_l and jumo donut require 5 spaces

Code: Select all

    menu:
        pc "You're right! I'd be too embarrased to show up there again!":
            jump cur_l
        pc "You're over reacting %(sis)s. He's a man of Gawd. I'm sure his thoughts were as pure as your own.":
            jump donut
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Post Reply

Who is online

Users browsing this forum: No registered users