Expected statement problem

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
acsh
Newbie
Posts: 22
Joined: Wed Jun 18, 2014 11:21 pm
Contact:

Expected statement problem

#1 Post by acsh »

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 42: expected statement.
    e “Hello there, thank you for calling in. What’s your name?”
                  ^

File "game/script.rpy", line 46: expected statement.
    k “…Kurt.”
            ^

Ren'Py Version: Ren'Py 6.99.8.959

I've puzzled upon this much longer than I should??? The "^" comes out as a red arrow and I have it all over my dialogue T.T" Would be eternally grateful for some help for this coding nub! ;'o

It looks something like this along with the statement text:

"I take up the headset."

e “Hello there, thank you for calling in. What’s your name?”


So they're all indented to the same extent.

User avatar
Iylae
Regular
Posts: 73
Joined: Sat Jan 09, 2016 6:57 am
Location: Cornwall, UK
Contact:

Re: Expected statement problem

#2 Post by Iylae »

I'll take a punt at this because I seem to recall reading this somewhere that you can't use left and right double quotes around your text: and

You should be using the vertical types: "

acsh
Newbie
Posts: 22
Joined: Wed Jun 18, 2014 11:21 pm
Contact:

Re: Expected statement problem

#3 Post by acsh »

Iylae wrote:I'll take a punt at this because I seem to recall reading this somewhere that you can't use left and right double quotes around your text: and

You should be using the vertical types: "
I got some kind of traceback error instead :shock: Do you think it'd be worth posting that up here? (Thanks for trying to help though!)

acsh
Newbie
Posts: 22
Joined: Wed Jun 18, 2014 11:21 pm
Contact:

Re: Expected statement problem

#4 Post by acsh »

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 14, in script
"I walk down the avenue, a lone figure in the wisps of yellow light and grey buildings."
File "game/screens.rpy", line 13, in execute
screen say(who, what, side_image=None, two_window=False):
File "game/screens.rpy", line 52, in execute
if side_image:
File "game/screens.rpy", line 55, in execute
add SideImage() xalign 0.0 yalign 1.0
Exception: Unknown transform property: 'scope'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "game/script.rpy", line 14, in script
"I walk down the avenue, a lone figure in the wisps of yellow light and grey buildings."
File "C:\Renpy\renpy\ast.py", line 594, in execute
renpy.exports.say(who, what, interact=self.interact)
File "C:\Renpy\renpy\exports.py", line 1021, in say
who(what, interact=interact)
File "C:\Renpy\renpy\character.py", line 826, in __call__
self.do_display(who, what, cb_args=self.cb_args, **display_args)
File "C:\Renpy\renpy\character.py", line 688, in do_display
**display_args)
File "C:\Renpy\renpy\character.py", line 465, in display_say
what_text = show_function(who, what_string)
File "C:\Renpy\renpy\character.py", line 672, in do_show
**self.show_args)
File "C:\Renpy\renpy\character.py", line 275, in show_display_say
return renpy.display.screen.get_widget(screen, "what", layer)
File "C:\Renpy\renpy\display\screen.py", line 1119, in get_widget
screen.update()
File "C:\Renpy\renpy\display\screen.py", line 565, in update
self.screen.function(**self.scope)
File "game/screens.rpy", line 13, in execute
screen say(who, what, side_image=None, two_window=False):
File "game/screens.rpy", line 52, in execute
if side_image:
File "game/screens.rpy", line 55, in execute
add SideImage() xalign 0.0 yalign 1.0
File "C:\Renpy\renpy\sl2\sldisplayables.py", line 545, in sl2add
rv = Transform(child=d, **kwargs)
File "C:\Renpy\renpy\display\motion.py", line 563, in __init__
raise Exception("Unknown transform property: %r" % k)
Exception: Unknown transform property: 'scope'

Windows-8-6.2.9200
Ren'Py 6.99.5.602
Last Call 0.0

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Expected statement problem

#5 Post by Donmai »

Iylae is right. Ren'Py and Python only accept "" or ''. As for the traceback, try updating your Ren'Py to the latest version.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

acsh
Newbie
Posts: 22
Joined: Wed Jun 18, 2014 11:21 pm
Contact:

Re: Expected statement problem

#6 Post by acsh »

Donmai wrote:Iylae is right. Ren'Py and Python only accept "" or ''. As for the traceback, try updating your Ren'Py to the latest version.
Oh my gosh, it works now! *cries an ocean of joy* Thank you so much, and to Iylae as well! :'D You guys saved me! *flops* I kinda wonder what causes this though, hmm!

Post Reply

Who is online

Users browsing this forum: No registered users