Skip to main content

A tool to decrypt .rpyc files

Project description

rpycdec

A tool for decompiling Ren'py compiled script files (.rpyc and .rpymc).

Features

  • Decompile .rpyc and .rpymc files to readable Python code
  • Extract RPA archives
  • Extract Ren'Py games from Android APK files
  • Parse translations from .rpyc and .rpymc files to tl/{language}/ directories
  • Support for multiple Ren'py versions (7.x, 8.x)

Installation

Install with pip:

pip install rpycdec

Or install from source:

git clone https://github.com/cnfatal/rpycdec.git
cd rpycdec
pip install .

Usage

Command Line Interface

Decompile a single file:

rpycdec decompile script.rpyc

Decompile all files in a directory:

rpycdec decompile /path/to/game/

Extract RPA archive:

rpycdec unrpa archive.rpa

Extract Ren'Py game from Android APK:

rpycdec extract-game game.apk

Extract translations:

rpycdec extract-translate /path/to/game/ -l Chinese

Library Usage

from rpycdec import decompile, extract_rpa

# decompile a file
with open('script.rpyc', 'rb') as input_file, open('script.rpy', 'wb') as output_file:
    decompile(input_file, output_file)

# Extract RPA archive
with open('archive.rpa', 'rb') as f:
    extract_rpa(f, './extracted/')

Troubleshooting

  • Q: It always raise pickle import ** \nModuleNotFoundError: No module named '**\*' error.

    A: It's because the our fake packages("renpy","store") is not contains the object you want to decompile. Please open an issue and tell us the renpy version and the rpyc file you want to decompile. Join our telegram group to get help also be better.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Community & Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpycdec-0.1.10.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpycdec-0.1.10-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file rpycdec-0.1.10.tar.gz.

File metadata

  • Download URL: rpycdec-0.1.10.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rpycdec-0.1.10.tar.gz
Algorithm Hash digest
SHA256 4f5a3a591c3d24c3a0db659131745078435a49f64ee12428658306f3c17079f9
MD5 78aa62283910280d38e872f391c45b6b
BLAKE2b-256 693cacca565f96b6aac7fb1e0089202ecac48795dce0c47d0053adead4f635ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.10.tar.gz:

Publisher: python-publish.yml on cnfatal/rpycdec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rpycdec-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: rpycdec-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rpycdec-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 604ac0c132dcd877acb6d194ace2108f3a57b882904efd41c0a901c2956e5295
MD5 9d95e111519809c6b315771fe61c5db8
BLAKE2b-256 444883c0378992609b2b383f7895f3b80586309dd898e286c9bf9e777b1c9542

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.10-py3-none-any.whl:

Publisher: python-publish.yml on cnfatal/rpycdec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page