Grand Strategy: The Three Kingdoms · published · build 25408746
## 🐛 Bug Fixes
### Diplomacy & Vassals
- Fixed **vassal relationships that could not be released**. Once the relation data was corrupted (for example, your own nation appearing in your own vassal list, or an ally showing up in your enemy list), the entry could never be cleared and only a save edit could recover it.
- Fixed **a nation being registered under multiple suzerains at the same time**, which left leftover vassal entries.
- Fixed **diplomatic letters that sat in the mailbox for several turns** and were then accepted using the data from when they were sent, producing broken relations such as "a nation becoming its own vassal or ally" that could not be cleared through the UI. Acceptance now re-validates the current relationship first.
- Diplomatic letters are now **automatically voided** in the following cases:
- sender and recipient are the same nation;
- either side has already been destroyed;
- peace offers — when the relevant war has already ended elsewhere;
- call-to-arms letters — when the alliance has already been dissolved.
- Fixed **letters with an invalid sender** (empty or destroyed) still being processed, which caused diplomatic relations to be settled against the wrong nation.
- Declarations of war are now judged against the **actual belligerent**: when the target is a vassal, the war is taken up by its suzerain. This correctly prevents "declaring war on an ally's vassal and ending up at war with the ally instead".
- Fixed an **error in second-degree neighbour calculation**: the game previously counted *yourself* as a second-degree neighbour while none of the real ones were included, so neighbour relations were consistently under-counted.
- Added a new prompt string: "This nation is our partner."
### Combat & Sieges
- Fixed the **battle flag not being cleared after a battle ended**. A leftover flag left the **turn permanently paused** (the end-turn button stopped working) and **blocked every subsequent battle** until the game was restarted, while also corrupting result caching and event subscriptions. The resolution flow now always resets the flag.
- Fixed **armies getting stuck for a long time** when retreating or entering a city after battle if the destination was unreachable, which also stalled the end of the battle (now capped at 10 seconds).
- Fixed **the same units being subscribed to battle logic more than once**, causing a battle to be driven repeatedly and unit actions to duplicate.
- Fixed the **battle result screen still popping up after cancelling a battle preview**.
- Fixed legion data being left in a **half-initialized state** (references swapped, army data empty) when the pre-battle validation failed.
- Fixed **defender reserve calculation**: reserves were derived from nominal formation slots instead of troops that actually took the field, so defender troop counts could **increase after a battle** when casualties were small, and were **undercounted** when garrison legions occupied formation slots. Reserves are now written precisely as "defender pool at battle start − troops actually deployed".
- Fixed **attacker/defender castle counters not being reset when battle report data was updated**, which made siege progress display incorrectly in battle reports.
- Added formation-capacity interception and divide-by-zero protection on several percentage attributes so extreme values can no longer throw during resolution.
### Saves
- Fixed the **interface progress bar freezing forever** when a load or save was requested while one was already running (a completion signal is now always delivered).
- Fixed **failed writes leaving no queryable trace** while the UI still reported "save complete".
- Fixed the **save checksum covering different bytes than what was actually written to disk** (it is now computed over the final compressed bytes, matching the read path).
- The write-failure rollback now uses a **copy** instead of a move, so the old save is no longer removed before the new one lands — eliminating the window with no usable save.
### AI
- Fixed **exceptions when AI task configuration was missing**.
- Fixed the **AI task cap defaulting to 0 when unconfigured**, which was equivalent to permanently forbidding that AI from dispatching tasks.
### Interface & Display
- Fixed stale entries left behind by **text refresh**, **duplicate destruction** of controls, and **recycled scroll-list cells not having their display state reset**.
- Fixed **text effect mesh vertices going out of bounds**.
- Fixed **duplicate registration of same-named panels** interrupting interface initialization.
### Audio & Asset Loading
- Fixed an **out-of-range removal when an audio index lookup missed**, which threw an exception.
- Fixed **unreleased audio caches** holding on to resources.
- Fixed **exceptions when a DLC asset path was unregistered**, and DLC load errors being silenced after the first one so later errors were never reported.
- Fixed the wrong unload API being used on bundled assets.
- Fixed **asynchronous asset loading stalling while the game is paused** (time scale 0).
- Fixed a **crash from an out-of-bounds case in political map border handling**.
- Fixed **per-frame log flooding** in the AI objective system.
### Controls & Miscellaneous
- Fixed **a press and release within the same frame being treated as a single input**, which made clicks get dropped.
- Fixed the **RTS camera rotation angle not being applied**.
- Float parsing in config tables is no longer affected by the system locale, so values no longer fail to parse on certain regional settings.
---
## ✨ Performance & Quality of Life
- **Major political map rendering optimization**: full-map clearing now writes back in batches (saving roughly **4.2 million** pixel writes), and texture uploads for province-inner rings dropped from **142 to 1**.
- Map area parsing now uses a **full-map snapshot** instead of reading pixel by pixel.
- Object pool lookups changed from linear scanning to **constant-time** lookup.
- Text wrapping no longer writes back to the text component character by character, removing a large amount of repeated text mesh rebuilding.
- Component lookups on the audio hot path now use a **cached dictionary**.
- Interface hit detection no longer constructs event data every frame.
- Enum value lookups are now cached per type, reducing repeated allocations.
---
## 📊 Balance Changes
- **Flanking**: the defender-side condition has been corrected. The flanking bonus now only applies to the side with the **numerical advantage**. The condition was previously inverted, so the bonus went to the *weaker* side, and the net effect was that both sides enjoyed the bonus with a 30% chance regardless of troop strength.
- **Battle objective bonuses**: attack/defense bonuses now only apply to the side that **won the dice roll**. Previously both sides unconditionally received the bonus from whichever battle objective they had chosen, while the interface only displayed one side as active — the display and the actual effect did not match.
---
## 🆕 New Content
(None this patch. The update is focused on stability, diplomacy and combat correctness, and performance.)
---
## ⚠️ Notes
- If your **existing save already contains broken vassal or alliance relations** that cannot be cleared (for example, a nation that is its own vassal, or an ally appearing in your enemy list), this patch stops such data from being created again, but it **does not repair data that is already broken**. Please send the save file to our player group (1087397825) and we will help you recover it.
- We recommend backing up your saves before updating, or using the in-game save backup feature.