Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

One Piece: Fighting Path Unity text files

Featured Replies

  • Localization

Hello, I'm trying to get the text files from the Chinese Unity game One Piece Fighting Path. However, they seem to be encrypted. The first Google Drive link is the apk https://drive.google.com/file/d/1HW-qdJRjyLdjs62yc3NxnmtgkXWbatNW/view?usp=sharing, and the second is the "bundledtext" folder https://drive.google.com/file/d/1QNR33MgYcwfnpJYml06bPpWAmj8PVRpV/view?usp=sharing.

Solved by Hazza12555

  • Localization
  • Solution

install python packages using pip install UnityPy lz4 numpy pycryptodome protobuf

then run the attached .py file next to the bundletext folder python opfp_extract.py bundletext extracted

How the files are protected:

Bundles: each .asset is a Unity bundle with junk bytes in front. The game uses a modified Unity engine that scrambles every compressed block. The key is just the length of the file name (13 for quality.asset, for example).
Text files: each one inside a bundle is XORed with the 4 bytes 5E A5 4B E7. That's a hash of the string "MKONEPIECE".
AES files: files starting with HGAMEENCRYPT use AES-256 with a key I pulled from the game code. That's assets_info.json in the APK.
Lua and config tables: these are compiled LuaJIT, but with the instruction numbering shuffled so regular decompilers fail. I recovered the full mapping from the game's Lua engine.

opfp_extract.py

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.