Skip to content

Repository files navigation

RTK11 PUK GameTweaks

Quality-of-life mod plugins for Romance of the Three Kingdoms XI PUK (Steam, San11WPK). The root d3d9.dll is a proxy and plugin host; each active mod has its own independently enableable DLL under rtk11_mod.

Project goal

These mods aim to remove or revise game mechanics that become annoying or repetitive during long campaigns. They reduce unnecessary busywork while preserving the core strategy, helping create a smoother and more enjoyable gameplay experience. Every tweak remains independently enableable, so players can use only the changes they want.

Supported executable

The host fails safely without installing patches unless san11pk.exe has this verified PE identity:

  • Image base: 0x00400000
  • PE timestamp: 0x45A35E5D
  • Image size: 0x09883000
  • Verified executable SHA-256: 5c016bc6fe305d8f8906d379b2ed6bdd6f3aec8498de92a3fba14a26f8e6fdb0

All DLLs are 32-bit x86 binaries.

Layout

San11WPK/
├── d3d9.dll
└── rtk11_mod/
    ├── KeepBuildings/
    │   ├── KeepBuildings.dll
    │   └── README.md
    ├── InstantDomesticConstruction/
    │   ├── InstantDomesticConstruction.dll
    │   └── README.md
    ├── LuBuArsenal/
    │   ├── LuBuArsenal.dll
    │   └── README.md
    ├── RecruitWithoutPenalties/
    │   ├── RecruitWithoutPenalties.dll
    │   └── README.md
    ├── OneAPRewards/
    │   ├── OneAPRewards.dll
    │   └── README.md
    ├── ExpandedResourceLimits/
    │   ├── ExpandedResourceLimits.dll
    │   └── README.md
    ├── CombinedCaptureResources/
    │   ├── CombinedCaptureResources.dll
    │   └── README.md
    ├── ClaimEliminatedForceBases/
    │   ├── ClaimEliminatedForceBases.dll
    │   └── README.md
    ├── FullUnitLoot/
    │   ├── FullUnitLoot.dll
    │   └── README.md
    ├── EnhancedContinuousAttack/
    │   ├── EnhancedContinuousAttack.dll
    │   └── README.md
    ├── ExpandedMeleeTactics/
    │   ├── ExpandedMeleeTactics.dll
    │   └── README.md
    ├── AutoSaveSlot/
    │   └── README.md
    ├── README.md
    └── d3d9.dll

The nested rtk11_mod\d3d9.dll is the built distribution copy. The byte-identical root copy is the active proxy loaded by the game.

Mods

  1. Keep Buildings — preserves completed domestic facilities when a city is captured.
  2. Instant Domestic Construction — displays 0D and instantly completes domestic construction, upgrades, outfitting, Technique Research, Ability R&D, and Ability use.
  3. Lu Bu Arsenal — gives Lu Bu virtual ownership of all 100 vanilla skills for gameplay ownership queries.
  4. Recruit Without Penalties — prevents Recruit from reducing city Order or Will.
  5. One AP Rewards — reduces Reward's action-point cost from 5 to 1 per selected officer.
  6. Expanded Resource Limits — raises city and unit gold and food capacities to high, UI-safe finite values.
  7. Combined Capture Resources — combines captured-base gold, food, equipment, and vessels with the capturing army's inventory.
  8. Claim Eliminated Force Bases — transfers a defeated force's remaining resource-preserved ports and gates to the conqueror of its last city.
  9. Full Unit Loot — transfers all gold and food from a defeated unit to its killing unit, including remote kills.
  10. Enhanced Continuous Attack — makes Continuous Attack repeat normal attacks and tactics at 100% probability.
  11. Expanded Melee Tactics — shares spear, pike, and cavalry tactics dynamically according to each corresponding weapon aptitude.
  12. Auto-Save Slot — reverse-engineering documentation only; no active DLL.

Installation

Keep the complete rtk11_mod directory in the game folder and copy:

rtk11_mod\d3d9.dll

to:

d3d9.dll

next to san11pk.exe.

The host loads only these exact paths, in this order:

rtk11_mod\KeepBuildings\KeepBuildings.dll
rtk11_mod\InstantDomesticConstruction\InstantDomesticConstruction.dll
rtk11_mod\LuBuArsenal\LuBuArsenal.dll
rtk11_mod\RecruitWithoutPenalties\RecruitWithoutPenalties.dll
rtk11_mod\OneAPRewards\OneAPRewards.dll
rtk11_mod\ExpandedResourceLimits\ExpandedResourceLimits.dll
rtk11_mod\CombinedCaptureResources\CombinedCaptureResources.dll
rtk11_mod\ClaimEliminatedForceBases\ClaimEliminatedForceBases.dll
rtk11_mod\FullUnitLoot\FullUnitLoot.dll
rtk11_mod\EnhancedContinuousAttack\EnhancedContinuousAttack.dll
rtk11_mod\ExpandedMeleeTactics\ExpandedMeleeTactics.dll

It does not scan for or execute arbitrary DLLs.

Enabling or disabling a mod

A plugin is enabled when its expected DLL is present. Remove or rename that DLL to disable only that mod. The remaining plugins continue to load independently.

Do not remove a plugin DLL while the game is running. Hook addresses can point into its loaded module until the process exits.

Logging and safety

Runtime status is written to:

rtk11_mod\GameTweaks.log

The host validates the executable before loading plugins. Its shared patch service validates every plugin's expected bytes, rejects overlapping patch ranges, performs checked memory writes, flushes the instruction cache, and attempts rollback if a write fails. A missing or rejected plugin does not prevent valid plugins from loading.

Build

Requires Visual Studio 2022 Build Tools with the x86 C++ toolchain. From rtk11_mod, run _build.bat in cmd.exe:

_build.bat

This builds:

d3d9.dll
KeepBuildings\KeepBuildings.dll
InstantDomesticConstruction\InstantDomesticConstruction.dll
LuBuArsenal\LuBuArsenal.dll
RecruitWithoutPenalties\RecruitWithoutPenalties.dll
OneAPRewards\OneAPRewards.dll
ExpandedResourceLimits\ExpandedResourceLimits.dll
CombinedCaptureResources\CombinedCaptureResources.dll
ClaimEliminatedForceBases\ClaimEliminatedForceBases.dll
FullUnitLoot\FullUnitLoot.dll
EnhancedContinuousAttack\EnhancedContinuousAttack.dll
ExpandedMeleeTactics\ExpandedMeleeTactics.dll

After building, copy rtk11_mod\d3d9.dll to the game root. Git Bash users should invoke the batch file through cmd.exe because its link command conflicts with MSVC's linker.

About

Quality-of-life x86 DLL mods for RTK XI PUK (San11WPK) that remove or revise annoying, repetitive mechanics for a smoother, more enjoyable experience.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages