How lovelyzy7/lunar-scripts-jp works
This repository is a NieR Re[in]carnation JP private-server client patch toolkit. The principal workflow takes a decompiled APK, applies endpoint and client-behavior patches, then rebuilds and signs an installable APK; the local runner can optionally patch master data. Separate utilities handle Octo asset bundles and their catalog, plus master-data extraction and export. The README documents these capabilities and the workflow; source excerpts are partial, so the graph omits unverified internal patch call relationships.
Main entry points: patch_apk_jp.py Client Patcher · run_local.py Local Runner · assetbundle_crypt.py Bundle Crypto · decrypt_assetbundle.py Bundle Decryption
Components 18
APK Client Patching
- Client Patcher
android/patch_apk_jp.py - Endpoint Rewriting
android/patch_apk_jp.py - Network Bypass
android/patch_apk_jp.py - Purchase Patches
android/patch_apk_jp.py - Dynamic Auth
android/patch_apk_jp.py - APK Build and Sign
android/build_apk.py
Asset Bundles
- Bundle Crypto
assetbundles/assetbundle_crypt.py - Bundle Decryption
assetbundles/decrypt_assetbundle.py - Bundle Encryption
assetbundles/encrypt_assetbundle.py - Catalog Refresh
assetbundles/patch_listbin.py - Octo Protobuf
assetbundles/octo_pb2.py
Master Data
- Master Data Dump
masterdata/dump_masterdata.py - Table Extraction
masterdata/extract_master_data.py - JSON Conversion
masterdata/msgpack_to_json.py - Master Data Patch
masterdata/patch_masterdata.py
Local Workflow
- Local Runner
local/run_local.py
Other components
- Toolkit User
- Decompiled APK
Connections 13
- Toolkit User → Local Runner: runs workflow
README.md - Toolkit User → Client Patcher: configures patches
README.md - Decompiled APK → Client Patcher: patches input
README.md - Client Patcher → Endpoint Rewriting: rewrites endpoints
README.md - Client Patcher → Network Bypass: bypasses checks
README.md - Client Patcher → Purchase Patches: patches purchases
README.md - Client Patcher → Dynamic Auth: adds dynamic auth
README.md - Local Runner → Client Patcher: invokes patcher
local/run_local.py - Local Runner → Master Data Patch: optionally invokes
local/run_local.py - Local Runner → APK Build and Sign: invokes build
local/run_local.py - Bundle Decryption → Bundle Crypto: uses helpers
assetbundles/decrypt_assetbundle.py - Bundle Encryption → Bundle Crypto: uses helpers
assetbundles/encrypt_assetbundle.py - Catalog Refresh → Octo Protobuf: uses schema
assetbundles/patch_listbin.py