From c429437ff3bf3cd23f52c753c284c30f7275da70 Mon Sep 17 00:00:00 2001 From: SkywalkerJi Date: Fri, 5 Aug 2022 23:34:32 +0800 Subject: [PATCH] v0.2.22 beta --- README.md | 10 +++++++--- config.ini | 2 +- mdt.py | 8 ++++---- mdt_gui.py | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 26ef373..0525afb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Yu-Gi-Oh! Master Duel Translation Script -[![GitHub release (latest by date)](https://img.shields.io/github/v/release/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/releases/latest) [![GitHub all releases](https://img.shields.io/github/downloads/SkywalkerJi/mdt/total)](https://github.com/SkywalkerJi/mdt#download) [![GitHub forks](https://img.shields.io/github/forks/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/network) [![GitHub stars](https://img.shields.io/github/stars/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/stargazers) [![GitHub license](https://img.shields.io/github/license/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/blob/master/LICENSE) ![Chinese translation](https://img.shields.io/badge/%E4%B8%AD%E6%96%87%E7%BF%BB%E8%AF%91-100%25-green) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/SkywalkerJi/mdt/GitHub%20Actions%20Build%20and%20Deploy) [![Steam Game Ver](https://img.shields.io/badge/Steam-1.1.2-informational)](https://store.steampowered.com/app/1449850/YuGiOh_Master_Duel/) +[![GitHub release (latest by date)](https://img.shields.io/github/v/release/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/releases/latest) [![GitHub all releases](https://img.shields.io/github/downloads/SkywalkerJi/mdt/total)](https://github.com/SkywalkerJi/mdt#download) [![GitHub forks](https://img.shields.io/github/forks/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/network) [![GitHub stars](https://img.shields.io/github/stars/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/stargazers) [![GitHub license](https://img.shields.io/github/license/SkywalkerJi/mdt)](https://github.com/SkywalkerJi/mdt/blob/master/LICENSE) ![Chinese translation](https://img.shields.io/badge/%E4%B8%AD%E6%96%87%E7%BF%BB%E8%AF%91-100%25-green) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/SkywalkerJi/mdt/GitHub%20Actions%20Build%20and%20Deploy) [![Steam Game Ver](https://img.shields.io/badge/Steam-1.2.0-informational)](https://store.steampowered.com/app/1449850/YuGiOh_Master_Duel/) * 自动切换,自动查卡,全面覆盖Deck、Duel、Solo、Replay、Shop模式。 * 高正确性,除非卡片数据本身有错。 @@ -354,12 +354,16 @@ CLI版本在MDT v0.2.3版本进行拆分,拆分后对CLI版本只做基础可 ## Changelog -*v0.2.21* -* 图像模式更新7月11日新卡hash。by wtof1996 +*v0.2.22 beta* +* 对游戏steam版本1.2.0进行支持。(不完整)
展开过往版本 +*v0.2.21* +* 图像模式更新7月11日新卡hash。by wtof1996 + + *v0.2.20* * 修复导出卡组时主卡组为0的bug。 diff --git a/config.ini b/config.ini index 47549ba..fcff7cf 100644 --- a/config.ini +++ b/config.ini @@ -29,6 +29,6 @@ show_jp_name = 1 show_card_id = 1 show_notice = 1 no_scrollbar = 1 -cv_mode = 1 +cv_mode = 0 play_diy_bgm = 0 diff --git a/mdt.py b/mdt.py index fc28631..26e5856 100644 --- a/mdt.py +++ b/mdt.py @@ -50,7 +50,7 @@ def get_cid(type: int): while type == 1: try: deck_pointer_value = ( - read_longlongs(pm, deck_addr, [0xB8, 0x0, 0xF8, 0x1E0]) + 0x2C + read_longlongs(pm, deck_addr, [0xB8, 0x0, 0xF8, 0x200]) + 0x2C ) deck_cid = pm.read_int(deck_pointer_value) return deck_cid @@ -135,9 +135,9 @@ def get_baseAddress(): pm.process_handle, "GameAssembly.dll" ).lpBaseOfDll # deck 组卡界面 duel 决斗界面 oppo 回放 - deck_addr = baseAddress + int("0x01E9AC28", base=16) - duel_addr = baseAddress + int("0x01DBEC88", base=16) - oppo_addr = baseAddress + int("0x01E9AC28", base=16) + deck_addr = baseAddress + int("0x01F501A8", base=16) + duel_addr = baseAddress + int("0x01F31E48", base=16) + oppo_addr = baseAddress + int("0x01F501A8", base=16) # UAC判断 diff --git a/mdt_gui.py b/mdt_gui.py index 5bd0da7..1348954 100644 --- a/mdt_gui.py +++ b/mdt_gui.py @@ -400,7 +400,7 @@ def main(): ], ] window = sg.Window( - "MDT v0.2.21 GPLv3", + "MDT v0.2.22 beta GPLv3", card_frame, default_element_size=(12, 1), font=("Microsoft YaHei", font_size),