RenPy-Unpacker: Initial commit
This commit is contained in:
parent
e51a271a38
commit
b2335509e3
4 changed files with 24 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
AudioBitRate = "320k"
|
AudioBitRate = "320k"
|
||||||
AudioExt = "mp3"
|
AudioExt = "mp3"
|
||||||
CompLevel = 20
|
CompLevel = 20
|
||||||
ImageExt = "png"
|
ImageExt = "jpg"
|
||||||
JpegComp = 3
|
JpegComp = 3
|
||||||
FFmpegParams = "-hide_banner -loglevel error"
|
FFmpegParams = "-hide_banner -loglevel error"
|
||||||
VideoCodec = "libvpx-vp9"
|
VideoCodec = "libvpx-vp9"
|
||||||
|
|
|
@ -3,4 +3,5 @@ Collection of tools used by administrators from VN Telegram Channel
|
||||||
|
|
||||||
### Tools
|
### Tools
|
||||||
* `FFMpeg-Compressor` - Python utility uses ffmpeg to compress Visual Novel Resources
|
* `FFMpeg-Compressor` - Python utility uses ffmpeg to compress Visual Novel Resources
|
||||||
* `A simple Python script` for unpacking Ren'Py based .apk files for later rebuilding in the Ren'Py SDK
|
* `RenPy-Android-Unpack` - Simple Python script for unpacking Ren'Py based .apk files for later rebuilding in the Ren'Py SDK
|
||||||
|
* `RenPy-Unpacker` - Simple .rpy script that will make any RenPy game unpack itself
|
||||||
|
|
8
RenPy-Unpacker/README.md
Normal file
8
RenPy-Unpacker/README.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
## RenPy-Unpacker
|
||||||
|
Simple .rpy script that will make any RenPy game unpack itself
|
||||||
|
|
||||||
|
### How to use
|
||||||
|
* Put .rpyc from releases page to game's `game` folder
|
||||||
|
* Open your game and wait until it not be launched
|
||||||
|
* Unpacked assets will be in `unpack` folder near with game's executable
|
||||||
|
* Enjoy!
|
12
RenPy-Unpacker/unpack.rpy
Normal file
12
RenPy-Unpacker/unpack.rpy
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
init 4 python:
|
||||||
|
import os
|
||||||
|
|
||||||
|
for asset in renpy.list_files():
|
||||||
|
if os.path.splitext(asset)[1] != ".rpa":
|
||||||
|
output = "unpack/game/" + asset
|
||||||
|
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()
|
Loading…
Add table
Add a link
Reference in a new issue