Open text tag at end of string

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
Theodosius
Newbie
Posts: 9
Joined: Fri Oct 07, 2016 8:24 pm
Contact:

Open text tag at end of string

#1 Post by Theodosius »

Hi! I can not get rid of one strange error.
Here is code:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/komnata.rpy", line 233, in script
    tt "пойдем в кабинет"
Exception: Open text tag at end of string u'..............{w'.

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

Full traceback:
  File "game/komnata.rpy", line 233, in script
    tt "пойдем в кабинет"
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\ast.py", line 603, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\exports.py", line 1135, in say
    who(what, interact=interact)
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\character.py", line 873, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\character.py", line 719, in do_display
    **display_args)
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\character.py", line 498, in display_say
    what_text.update()
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\text\text.py", line 1489, in update
    tokens = self.tokenize(text)
  File "C:\renpy99\renpy-66.99.11\renpy-6.99.11-sdk\renpy\text\text.py", line 1876, in tokenize
    tokens.extend(textsupport.tokenize(i))
  File "renpy/text/textsupport.pyx", line 120, in renpy.text.textsupport.tokenize (gen\renpy.text.textsupport.c:3636)
    raise Exception("Open text tag at end of string {0!r}.".format(s))
Exception: Open text tag at end of string u'..............{w'.

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749

It does not seem my mistake. This error disappears if I delete a line with text

Code: Select all

 tt "пойдем в кабинет"
and remains if I delete only tag "tt". And disappears if I just put a space at the beginning of the quoted text or completely change the text in quotes o_O

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

Re: Open text tag at end of string

#2 Post by Imperf3kt »

Can we see the lines preceding and after this line? It looks like you have {w in your script
See if you can find it with the search function in your editor.
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

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

Re: Open text tag at end of string

#3 Post by indoneko »

If you can't find the error yourself, just attach your script.rpy here.
My avatar is courtesy of Mellanthe

Post Reply

Who is online

Users browsing this forum: No registered users