Exception: Unknown text tag u'\uff1f\uff1f\uff1f'

benbendeben

New Member
Jul 30, 2022
13
1
After I translated the game into Chinese using Translator++. Running the game, I had this problem. I don't know where I went wrong.

Code:
I'm sorry, but an uncaught exception occurred.
While processing text tag {������} in u'{\uff1f\uff1f\uff1f}\uff1f\uff1f\uff1f:  {/\uff1f\uff1f\uff1f} \u6211\u53ef\u4ee5\u7ed9\u8c01\u6253\u7535\u8bdd\uff1f'.:
  File "game/tl/schinese/script.rpy", line 1291, in script
    u "我可以给谁打电话?"
Exception: Unknown text tag u'\uff1f\uff1f\uff1f'

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

Full traceback:
  File "game/tl/schinese/script.rpy", line 1291, in script
    u "我可以给谁打电话?"
  File "F:\yx\fy\LetsMeatAdam2\renpy\ast.py", line 706, in execute
    renpy.exports.say(who, what, *args, **kwargs)
  File "F:\yx\fy\LetsMeatAdam2\renpy\exports.py", line 1336, in say
    who(what, *args, **kwargs)
  File "F:\yx\fy\LetsMeatAdam2\renpy\character.py", line 1139, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "F:\yx\fy\LetsMeatAdam2\renpy\character.py", line 842, in do_display
    **display_args)
  File "F:\yx\fy\LetsMeatAdam2\renpy\character.py", line 591, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "F:\yx\fy\LetsMeatAdam2\renpy\ui.py", line 295, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\core.py", line 2699, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\core.py", line 3191, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\core.py", line 2091, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 546, in renpy.display.render.render_screen
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\screen.py", line 675, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 1127, in render
    st, at)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 154, in renpy.display.render.render
  File "render.pyx", line 247, in renpy.display.render.render
  File "F:\yx\fy\LetsMeatAdam2\renpy\text\text.py", line 1989, in render
    virtual_layout = Layout(self, width, height, renders, drawable_res=False, size_only=True)
  File "F:\yx\fy\LetsMeatAdam2\renpy\text\text.py", line 590, in __init__
    self.paragraphs = self.segment(text.tokens, style, renders, text)
  File "F:\yx\fy\LetsMeatAdam2\renpy\text\text.py", line 1172, in segment
    raise Exception("Unknown text tag %r" % text)
Exception: Unknown text tag u'\uff1f\uff1f\uff1f'

Windows-8-6.2.9200
Ren'Py 7.3.2.320
Let's Meat Adam 2 1.0
Fri Dec 02 19:04:16 2022
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,318
15,208
Code:
I'm sorry, but an uncaught exception occurred.
While processing text tag {������} in u'{\uff1f\uff1f\uff1f}\uff1f\uff1f\uff1f:  {/\uff1f\uff1f\uff1f} \u6211\u53ef\u4ee5\u7ed9\u8c01\u6253\u7535\u8bdd\uff1f'.:
  File "game/tl/schinese/script.rpy", line 1291, in script
    u "我可以给谁打电话?"
Exception: Unknown text tag u'\uff1f\uff1f\uff1f'
Well, er... there's two issue here.

Firstly, what trigger Ren'Py. The translation string starts by a text tag that shouldn't be here. I guess something that should looks like "{/" followed by three Chinese characters, then "}". Remove it and everything should be alright.
If really you need to write a "{", you should double ( "{{" ) it to tell Ren'Py that it's not a tag.

Secondly the error message should looks like :
Code:
While processing text tag {doNotExist} in u'{doNotExist}BBB'.:
  File "game/script.rpy", line 550, in script
    mc "AAA"
Exception: Unknown text tag u'doNotExist'
It's exactly the same issue, the translated string include a tag that don't exist.
But the error location point to "game/script.rpy", not to "game/tl/schinese/script.rpy" like in your error. This with the same version of Ren'Py.

You aren't putting all the code into the file, right ? There's just the translation instructions, something looking like:
Code:
# game/script.rpy:550
translate french start_3ad69bc8:

    old "AAA"
    new "{doNotExist}BBB"