Python script to patch Nier: Automata's executable to achieve Ending E while offline.
- Automatically creates a backup of the original
.exe
file (.bak
format). - Verifies the original bytes before applying the patch.
- Supports both the DirectX 12 (
NieRAutomata.exe
) and DirectX 11 (NieRAutomataCompat.exe
) executables.
- Place the exe (
NierPatch.exe
) in the same folder as the game's executable (NieRAutomata.exe
and/orNieRAutomataCompat.exe
). - Run the exe.
- The tool will create a backup (
NieRAutomata.exe.bak
and/orNieRAutomataCompat.exe.bak
) and apply the patch. - Launch Nier: Automata and enjoy Ending E offline!
- Ensure Python is installed on your system.
- Place the script in the same folder as the game's executable (
NieRAutomata.exe
and/orNieRAutomataCompat.exe
). - Run the script:
python NierPatch.py
- The tool will create a backup (
NieRAutomata.exe.bak
and/orNieRAutomataCompat.exe.bak
) and apply the patch. - Launch Nier: Automata and enjoy Ending E offline!
All credits go to Lance McDonald for his discovery and work on enabling Nier Automata's true ending [E] to be experienced offline. Lance shared the solution publicly on X/Twitter, where he explained how to patch the game by manually editing the hex value at 0x8B6000
to B0 01 C3
(previously 33 C0 83
).
Additionally, I found the offset for NieRAutomataCompat.exe
(0x8AD800
) based on Lance's work, replicating the process to support this version as well.
This script automates that process, simplifying the steps for users by applying the patch automatically, eliminating the need for manual hex editing.