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_translations /path/to/game/ --language 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.8.tar.gz (28.6 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.8-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rpycdec-0.1.8.tar.gz
  • Upload date:
  • Size: 28.6 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.8.tar.gz
Algorithm Hash digest
SHA256 a46e4f97ae532a1119e73f68515fc9c3913f871ba808408a2769b99c5a696deb
MD5 e204f4ef7bd6ddc965399b077439b69d
BLAKE2b-256 b549fd233bfcac727e427330462fe20a34e5f3ad334faf6749c25a509f65f589

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rpycdec-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 36.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9c39b7a15ec42373fd2a21d724e4b748a58513f4e0cf5af33a6c44e2f6ac8f21
MD5 75a6d3682417e37bf4e61cd9a2534648
BLAKE2b-256 4ae3adcfe69150f448fbc4c5befd81010ed84f7082102ddfd9d6cbeec6dd64a2

See more details on using hashes here.

Provenance

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