Fix packaging names

This commit is contained in:
OleSTEEP 2024-08-29 02:49:44 +03:00
parent 85df574d3c
commit e5fa49ad53
24 changed files with 24 additions and 24 deletions

10
renpy-ripper/README.md Normal file
View file

@ -0,0 +1,10 @@
## RenPy-Unpacker
Simple .rpy script that will make any RenPy game unpack itself
### How to use
* Put .rpyc file from releases page to `game` folder
* Open your game and wait until it not be fully loaded
* Extracted assets will be in `unpack` folder near with game's executable
* Enjoy!
It can help with getting assets from encrypted .rpa files with custom encryption.

17
renpy-ripper/ripper.rpy Normal file
View file

@ -0,0 +1,17 @@
init 4 python:
import os
for asset in renpy.list_files():
if os.path.splitext(asset)[1] != ".rpa" and not asset.count("unpack.rpy"): # Ignore .rpa and script itself
if renpy.macintosh:
game_path = os.path.expanduser('~') + "/" + config.name # Unpack assets to home folder (on mac you cant get cwd)
output = game_path + "/game/" + asset
else:
output = "unpack/game/" + asset # Unpack assets to game folder
if not os.path.exists(os.path.dirname(output)):
os.makedirs(os.path.dirname(output))
out_bytes = open(output, "wb")
out_bytes.write(renpy.file(asset).read())
out_bytes.close()