From 2a4d8f9f96945763f95c96afdf6dc8c98bf86e5e Mon Sep 17 00:00:00 2001 From: xshobux <84678540+xshobux@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:24:37 -0500 Subject: [PATCH] Update network_text.py -C_ITMR_STITLE is the text that appears in the same spot as, for example, the "Bonus Time Remaining" text but is server side text. It doesn't appear often from what I can tell, but it does appear during the Dolboard race and testing shows it doesn't affect performance. -CAS_gambler is a player's name shown during casino games like sugoroku messages such as " lands on a Church space!" This is barely called so it shouldn't affect performance. I tested a game myself and didn't notice anything -C_MERCENARY is the name that appears when hiring people from the tavern in that UI and that related text, and the "Your contract with expires in X minutes" dracky message. Tested with it and doesn't seem to affect much since it only shows up in these specific scenarios --- app/hooking/network_text.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/hooking/network_text.py b/app/hooking/network_text.py index a0e3868..347d896 100644 --- a/app/hooking/network_text.py +++ b/app/hooking/network_text.py @@ -38,7 +38,10 @@ class NetworkTextTranslate: "L_URINUSI": "pc_name", "M_NAME": "pc_name", "L_PLAYER_NAME": "pc_name", - "L_QUEST": "quest_name" + "L_QUEST": "quest_name", + "C_ITMR_STITLE": "top_left_text", + "CAS_gambler": "casino_name", + "C_MERCENARY": "hired_name" } # explicitly ignore known vars. we want to log any new ones we see just in case @@ -130,7 +133,7 @@ def __init__(self, text_address, var_address): NetworkTextTranslate.writer.write_string(self.text_address, "self") # npc or player names - elif category in ["M_pc", "M_npc", "B_ACTOR", "B_TARGET", "C_PC", "L_SENDER_NAME", "M_OWNER", "M_hiryu", "L_HIRYU", "L_HIRYU_NAME", "M_name", "L_OWNER", "L_URINUSI", "M_NAME", "L_PLAYER_NAME"]: + elif category in ["M_pc", "M_npc", "B_ACTOR", "B_TARGET", "C_PC", "L_SENDER_NAME", "M_OWNER", "M_hiryu", "L_HIRYU", "L_HIRYU_NAME", "M_name", "L_OWNER", "L_URINUSI", "M_NAME", "L_PLAYER_NAME", "CAS_gambler", "C_MERCENARY"]: if NetworkTextTranslate.m00_text.get(text): name_to_write = NetworkTextTranslate.m00_text[text] else: @@ -138,7 +141,7 @@ def __init__(self, text_address, var_address): NetworkTextTranslate.writer.write_string(self.text_address, name_to_write) # generic string - elif category in ["M_00", "C_QUEST", "M_02", "M_header", "M_item", "L_QUEST"]: + elif category in ["M_00", "C_QUEST", "M_02", "M_header", "M_item", "L_QUEST", "C_ITMR_STITLE"]: if to_write := NetworkTextTranslate.m00_text.get(text): NetworkTextTranslate.writer.write_string(self.text_address, to_write) else: