diff --git a/CHANGELOG.md b/CHANGELOG.md index f22379811..4b5a5ed1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ What changed in each Savage Wind release. The `test` branch holds what the next 2.5 GB less memory (RTX 3060, 1080p: 8.3 -> 5.9 GB) and no longer grows by hundreds of megabytes as you travel. - **Vulkan 1.2 drivers** are taken when they have dynamic rendering, synchronization2 and extended dynamic state 1 and 2 as extensions (without FSR 3, FSR 4 or frame generation). Not confirmed on such a card yet. +- **Cheats: Chinese item names are found by pinyin.** The items are listed under the name your game's text language + gives them, but the search is typed on the on-screen keyboard a controller drives, which has no input method, so a + Chinese name could not be searched for at all. `luyu` now finds 鲈鱼, `kaoluyu` 烤鲈鱼, `bingleng` the frozen fish, + and `yu` every name with 鱼 in it, on a controller or a keyboard. The readings are the Unicode Han Database's, not + the game's (`runtime/pinyin.c`); the console's `give` command reads them the same way. ## Alpha 6 (0.6.0-alpha.6) - 2026-11-15 diff --git a/Makefile b/Makefile index 6df1bf29c..d94484ef4 100644 --- a/Makefile +++ b/Makefile @@ -296,6 +296,7 @@ $(B)/rt/prof_sampler.o: RTFLAGS += -fms-extensions $(B)/rt/memscan_os.o: RTFLAGS += -fms-extensions $(B)/rt/control_places.o: runtime/control_places_data.inc # (the generated table of shrines, Koroks ...) +$(B)/rt/pinyin.o: runtime/pinyin_data.inc # (the hanzi readings, tools/gen_pinyin_table.py) $(B)/rt/%.o: runtime/%.c $(RT_HDRS) @mkdir -p $(dir $@) @@ -457,6 +458,7 @@ dist: cp third_party/fonts/NotoSansThai/OFL.txt "$(DIST)/NotoSansThai-OFL.txt" cp third_party/fonts/NotoSansHebrew/NotoSansHebrew-Medium.ttf "$(DIST)/" # (Hebrew menus, OFL) cp third_party/fonts/NotoSansHebrew/OFL.txt "$(DIST)/NotoSansHebrew-OFL.txt" + cp third_party/unihan/LICENSE.txt "$(DIST)/Unihan-LICENSE.txt" cp third_party/FidelityFX/LICENSE.txt "$(DIST)/FidelityFX-LICENSE.txt" # (AMD FidelityFX SDK, MIT: README "License") if [ -f build/fsr-dlls/amd_fidelityfx_loader_vk.dll ]; then cp build/fsr-dlls/amd_fidelityfx_*_vk.dll \ build/fsr-dlls/AMD-FidelityFX-DLL-LICENSE.txt "$(DIST)/"; fi # (AMD FSR 4: tools/fetch_fsr_dlls.py; AMD's licence allows binary redistribution with this notice) @@ -723,6 +725,18 @@ test-mods: $(B)/test_mods .PHONY: test-mods +# Pinyin for the search fields (runtime/pinyin.c): the readings of a few ordinary Chinese names, and what a search +# typed on a controller's ASCII on-screen keyboard finds with them +$(B)/test_pinyin: tools/test_pinyin.c runtime/pinyin.c runtime/pinyin.h runtime/pinyin_data.inc + @mkdir -p $(B) + $(CC) -O1 -Wall -Wextra -Werror -std=gnu11 -Iruntime -o $@ tools/test_pinyin.c runtime/pinyin.c + +test-pinyin: $(B)/test_pinyin + $(B)/test_pinyin + $(firstword $(PY) python3) tools/test_pinyin_table.py + +.PHONY: test-pinyin + $(B)/test_game_file_size: tools/test_game_file_size.c runtime/game_file_size.c runtime/game_file_size.h runtime/game_files.h @mkdir -p $(B) $(CC) -O1 -Wall $(OSFLAGS) -Iruntime -o $@ tools/test_game_file_size.c runtime/game_file_size.c diff --git a/docs/CONTROL.md b/docs/CONTROL.md index 51192ae5d..07cb0d5ab 100644 --- a/docs/CONTROL.md +++ b/docs/CONTROL.md @@ -103,7 +103,7 @@ Most of them rely on addresses found in game version 1.9.0 and are untested on o | `mem write ` | Write one numeric value; rejects inaccessible ranges and values outside the type | | `mem scan [tolerance] [region=..] [from=.. to=..] [resident=1]`, `mem scan status`, `mem rescan \|near >`, `mem list [n]`, `mem reset` | Search guest memory for a value on a background thread and narrow the candidates, like a memory scanner. One session is shared by all clients. Poll `mem scan status` | | `mem path [depth=1..6] [window=16..65528]` | Find how to reach `target` from the object at `root`, as pointer offsets. Poll `mem path status`. Heap addresses move between runs but layouts do not, so a chain found once keeps working | -| `give [count]` | Put an item in the pouch through the game's own item get, on the next frame in play. Not an exact actor: the items whose name or actor has that text in them; one is given, several are listed. What went in the pouch is in the log (`[items] : value , of `): weapons, bows and shields stop when the player has no free slot | +| `give [count]` | Put an item in the pouch through the game's own item get, on the next frame in play. An exact actor has priority, followed by partial name and actor matches. If those find nothing, the command looks for pinyin, so `give luyu` finds 鲈鱼 in a Chinese game. A single match is given. Several matches are listed. The log shows what went in the pouch (`[items] : value , of `). Weapons, bows and shields stop when the player has no free slot | | `press