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
  • 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 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.9.tar.gz (33.4 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.9-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rpycdec-0.1.9.tar.gz
  • Upload date:
  • Size: 33.4 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.9.tar.gz
Algorithm Hash digest
SHA256 c9a1f8fec9e0060a499206f392176da3c404669c52e579601345f904c1f9b3bf
MD5 bff8aedd3b575ab3d433ce652b6fba9d
BLAKE2b-256 13a08f2302d65c7e54bee0172ca45ed7738a5c32f71282e8ad2481155680996a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: rpycdec-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 41.4 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f52218ff52075ee41c7617b846b452ef0b3def651667a0e481d98f513ae365
MD5 40f6a994fff9a921a809e15c6a831b0e
BLAKE2b-256 a0b3ab2691dfb5d07586bfd7f205783a2eaea1420dd4f488e8d5a0f6854c78d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.9-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