diff --git a/game/scripts/utility/common_functions.rpy b/game/scripts/utility/common_functions.rpy index 43a40f93..7a38a189 100644 --- a/game/scripts/utility/common_functions.rpy +++ b/game/scripts/utility/common_functions.rpy @@ -86,12 +86,12 @@ init python early: def set_clipboard(txt): txt = str(txt) - pygame.scrap.put(pygame.scrap.SCRAP_TEXT, txt.encode("utf-8")) + pygame.scrap.put(pygame.scrap.SCRAP_TEXT, txt.encode()) def get_clipboard(): clipboard = pygame.scrap.get(pygame.scrap.SCRAP_TEXT) if clipboard: - return clipboard + return clipboard.decode() return None def evaluate(txt): diff --git a/game/scripts/utility/devtools.rpy b/game/scripts/utility/devtools.rpy index 577f58d4..7d12d970 100644 --- a/game/scripts/utility/devtools.rpy +++ b/game/scripts/utility/devtools.rpy @@ -6,7 +6,7 @@ init -999 python early: def get_gpu_info(): try: - info = "\n".join([glGetString(GL_VENDOR).decode("utf-8"), glGetString(GL_RENDERER).decode("utf-8"), glGetString(GL_VERSION).decode("utf-8")]) + info = "\n".join([glGetString(GL_VENDOR).decode(), glGetString(GL_RENDERER).decode(), glGetString(GL_VERSION).decode()]) except: info = "ERR: Unknown or incompatible driver." return info diff --git a/game/scripts/utility/editor.rpy b/game/scripts/utility/editor.rpy index da424a59..3bbb28ca 100644 --- a/game/scripts/utility/editor.rpy +++ b/game/scripts/utility/editor.rpy @@ -275,7 +275,10 @@ init python: if not fp.startswith(path) or not ext in extensions: continue - expressions = d.setdefault(charname[:3], OrderedDict()).setdefault(part, _list((None,))) + if part in ("cheeks", "tears"): + expressions = d.setdefault(charname[:3], OrderedDict()).setdefault(part, _list((None,))) + else: + expressions = d.setdefault(charname[:3], OrderedDict()).setdefault(part, _list()) if not expression in expressions: expressions.append(expression)