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.
-
akizawa230
- Newbie
- Posts: 2
- Joined: Tue Dec 24, 2019 10:30 am
-
Contact:
#1
Post
by akizawa230 » Thu Jan 09, 2020 8:18 pm
I write down like this
voice "../voice/359.mp3"
Pm "{color=#B17BB7}A>>B{/color}Are you there??"
voice "../voice/360.mp3"
extend "{color=#B17BB7}B>>A{/color}??What happen?"
voice "../voice/361.mp3"
extend "{color=#B17BB7}A>>B{/color}tell me about C"
I wanne text show like
A>>B balablabalbala
A>>B balablabalbala
B>>A balablabalbala
A>>B balablabalbala
but when I use characters “extend” it show something error like this
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 2312, in script
## voice "../voice/245.mp3"
File "renpy/common/00library.rpy", line 148, in extend
who = renpy.eval_who(who)
SyntaxError: invalid syntax (<none>, line 1)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 2312, in script
## voice "../voice/245.mp3"
File "D:\RENPY\renpy-7.0.0-sdk\renpy\ast.py", line 690, in execute
renpy.exports.say(who, what, *args, **kwargs)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\exports.py", line 1322, in say
who(what, *args, **kwargs)
File "renpy/common/00library.rpy", line 148, in extend
who = renpy.eval_who(who)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\ast.py", line 568, in eval_who
return renpy.python.py_eval(who)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\python.py", line 1958, in py_eval
code = py_compile(code, 'eval')
File "D:\RENPY\renpy-7.0.0-sdk\renpy\python.py", line 690, in py_compile
raise e
SyntaxError: invalid syntax (<none>, line 1)
Windows-7-6.1.7601-SP1
Ren'Py 7.2.1.457
lifeline 1.0
Fri Jan 10 13:11:57 2020
```
How do I do?
-
rames44
- Veteran
- Posts: 232
- Joined: Sun May 29, 2016 4:38 pm
-
Contact:
#2
Post
by rames44 » Fri Jan 10, 2020 1:10 pm
Not sure, but maybe it’s because you have the intervening “voice” command?
On thing you could try would be to have the second and third lines include the text from the previous line(s), but use the “fast” tag so the user doesn’t see it re-displaying.
https://www.renpy.org/doc/html/text.html#text-tag-fast
That would give the illusion of “extend”
-
isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
-
Contact:
#3
Post
by isobellesophia » Sat Jan 11, 2020 1:55 am
The voice cannot reach out the extend line, most probably that is the reason the error to appear.
I am a friendly user, please respect and have a good day.

Users browsing this forum: Bing [Bot], span4ev