ReplicantHook
NieR Replicant ver.1.22474487139 Memory Hook
Install / Use
/learn @Asiern/ReplicantHookREADME
NieR Replicant Hook
A C++ library to attach to the NieR Replicant process and read/write memory.
Using ReplicantHook <br> Memory Reference<br> ReplicantHook Reference
Using ReplicantHook
#include <iostream>
#include "ReplicantHook.hpp"
#include <thread>
using namespace std;
//Function used to exit the program
void ENDPressed(ReplicantHook* hook) {
while (true) {
if (GetKeyState(VK_END) & 0x8000) //END button pressed
{
//Disable cheats before exiting
hook->InfiniteHealth(false);
hook->InfiniteMagic(false);
//Stop hook
hook->stop();
return; //exit function
}
}
}
/*This is a showcase program of the hook
* As NieR Replicant ver.1.22474487139 is a x64 program, you must compile this solution in x64.
*/
int main()
{
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); //Look for memory leaks
ReplicantHook hook = ReplicantHook(1); //Pass game version as parameter
cout << "Replicant Hook\n";
cout << "Hooking..." << endl;
//Hook to process
while (!hook.isHooked()) {
hook.start();
Sleep(500);
}
cout << "Hooked" << endl;
//Enable some cheats
hook.InfiniteHealth(true);
hook.InfiniteMagic(true);
//Create a thread to exit when the 'END' button is pressed
//thread exitThread(ENDPressed, &hook);
//Print some values
while (hook.isHooked()) {
hook.update();
cout << "Magic " << hook.getMagic() << endl;
cout << "Health " << hook.getHealth() << endl;
cout << "Gold " << hook.getGold() << endl;
cout << "Zone " << hook.getZone() << endl;
Sleep(500);
system("cls");
}
//Join thread and exit
//exitThread.join();
return 0;
}
Memory Reference
You can find all the used IDs and offsets here
ReplicantHook Reference
Version codes
-
v1.0.0.0>0 -
v1.0.3.0>1
Methods
start- attach the hook toNieR Replicant ver.1.22474487139.exeprocessstop- detach the hook from processisHooked- return true if hookedgetProcessID- returns process IDupdate- refresh hook & attributesgetLevel- return player's LevelgetHealth- returns player's HealthgetMagic- returns player's MagicgetGold- returns player's GoldgetZone- returns world's ZonegetName- returns player's NamegetX- returns player's X positiongetY- returns player's Y positiongetZ- returns player's Z positiongetActorModel- returns current actor model namesetX- sets player's X positionsetY- sets player's Y positionsetZ- sets player's Z positionsetPosition- sets the position of the playersetHealth- sets player HealthsetMagic- sets player's MagicsetGold- sets player's GoldsetZone- sets world's ZonesetName- sets player's NamesetLevel- sets player's LevelsetActorModel- sets actor model (you need to trigger a loading zone to see the results)InfiniteHealth- enables or disables infinite HealthInfiniteMagic- enables or disables infinite MagicaddItem- adds items to inventoryremoveItem- removes items from inventorygetInventory- returns the game Inventory and respective memory offsets as a map
Contributors
DeepGameResearch- model addresses finding
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
