Booplicate / MAS-Submods-YouTubeMusic

A submod for MAS which allows you to listen to music from youtube
9 stars 9 forks source link

does not have the fonts #27

Closed kaikai-dom closed 1 year ago

kaikai-dom commented 2 years ago

[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "game/script-ch30.rpy", line 1513, in script call File "game/event-handler.rpy", line 2534, in script call File "game/Submods/YouTube Music/ytm_topics.rpy", line 154, in script call screen mas_gen_scrollable_menu(menu_list, ytm_globals.SCR_MENU_AREA, ytm_globals.SCR_MENU_XALIGN, ytm_globals.SCR_MENU_LAST_ITEMS) File "renpy/common/000statements.rpy", line 471, in execute_call_screen store._return = renpy.call_screen(name, args, **kwargs) Exception: Character U+1f9e3 not found in FontGroup

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

Full traceback: File "game/script-ch30.rpy", line 1513, in script call File "game/event-handler.rpy", line 2534, in script call File "game/Submods/YouTube Music/ytm_topics.rpy", line 154, in script call screen mas_gen_scrollable_menu(menu_list, ytm_globals.SCR_MENU_AREA, ytm_globals.SCR_MENU_XALIGN, ytm_globals.SCR_MENU_LAST_ITEMS) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/ast.py", line 1706, in execute self.call("execute") File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/ast.py", line 1724, in call return renpy.statements.call(method, parsed, args, kwargs) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/statements.py", line 145, in call return method(parsed, *args, *kwargs) File "renpy/common/000statements.rpy", line 471, in execute_call_screen store._return = renpy.call_screen(name, args, kwargs) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/exports.py", line 2526, in call_screen rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/ui.py", line 285, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/core.py", line 2526, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, kwargs) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/core.py", line 2883, in interact_core self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/core.py", line 1955, in draw_screen renpy.config.screen_height, File "renpy/display/render.pyx", line 427, in renpy.display.render.render_screen (gen/renpy.display.render.c:6806) rv = render(root, width, height, 0, 0) File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 693, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 693, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 693, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/screen.py", line 623, in render child = renpy.display.render.render(self.child, w, h, st, at) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 693, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 693, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 895, in render surf = render(d, width - x, rh, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/viewport.py", line 259, in render surf = renpy.display.render.render(self.child, child_width, child_height, st, at) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 895, in render surf = render(d, width - x, rh, cst, cat) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/behavior.py", line 707, in render rv = super(Button, self).render(width, height, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/display/layout.py", line 1081, in render st, at) File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978) rv = d.render(widtho, heighto, st, at) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/text/text.py", line 1733, in render virtual_layout = Layout(self, width, height, renders, drawable_res=False, size_only=True) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/text/text.py", line 550, in init self.paragraphs = self.segment(text.tokens, style, renders, text) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/text/text.py", line 867, in segment line.extend(tss[-1].subsegment(text)) File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/text/text.py", line 294, in subsegment for f, ss in self.font.segment(s): File "/Users/monikkcyrnz/Library/Application Support/Steam/steamapps/common/Doki Doki Literature Club/renpy/text/font.py", line 752, in segment raise Exception("Character U+{0:04x} not found in FontGroup".format(n)) Exception: Character U+1f9e3 not found in FontGroup

Darwin-21.3.0-x86_64-i386-64bit Ren'Py 6.99.12.4.2187 Monika After Story 0.12.8 [/code]

Booplicate commented 2 years ago

This can happen when your system lacks some important fonts. Perhaps you could install them. Not much I can do on my side until MAS upgrades its engine.

BlueVicky commented 2 years ago

Hi, i know this is old, but i have the same problem and i wanted to know exactly what fonts do i have to install? I still couldn't use the submod at all and i like the idea.

Booplicate commented 2 years ago

The problem is when a video has emoji in its title, so installing a font that supports them (or emoji pack) should help.

BlueVicky commented 2 years ago

Thank you for replying! But well, you see.. it's complicated. I realized that the emojis (the characters the exception mentions) are from Unicode. So i tried to install it through the terminal (i'm on Linux, Ubuntu 20.04), but it was already installed. I could even use the emojis by pressing Ctrl+Shift, then "u", then writing a character. Knowing this i didn't see a reason for the traceback to happen so i tried using the submod again, and.. surprisingly i could listen to some songs! But later if i searched the same songs again or different ones i would have the problem again. I don't know if you can do something about this or if it's my issue, but i don't really know what do anymore..

Booplicate commented 2 years ago

Hmm, weird. I guess I could try stripping unicode and replace it with pure ascii, not sure. Ideally would be fixing this on the MAS side.

Booplicate commented 1 year ago

This has been fixed, wait for next release.