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 »

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 »

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 »

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: 11
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#4 Post by plaul2002 »

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: 11
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#5 Post by plaul2002 »

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: 11
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#6 Post by plaul2002 »

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: 11
Joined: Fri Aug 31, 2018 4:52 pm
Contact:

Re: End of line expected error

#7 Post by plaul2002 »

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
Veteran
Posts: 233
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: End of line expected error

#8 Post by rames44 »

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
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: End of line expected error

#9 Post by Imperf3kt »

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
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot]