- Dec 2, 2022
- 111
- 442
It was to translate a game into my language and then port it to Android, but I already used another advanced methodUnRen has never searched and passed this type of files for decompilation. Are you sure you really need them?
It was to translate a game into my language and then port it to Android, but I already used another advanced methodUnRen has never searched and passed this type of files for decompilation. Are you sure you really need them?
Your script passes this type of files for decompilation? I just haven't figured out exactly how it looks for and defines files for decompilation.unrpyc support decompiling .rpymc files to .rpym
@mazinogamer, perhaps tell why we shouldn't decompile rpymc on that game? was there an error? it might help VepsrP to troubleshoot and fix any error (... right, VepsrP? )
[[ $1 ]] && opt=("${opt[@]}" "$1")
OK, I'll add them to the list. It's strange that Sam didn't add them initially.
Yeah... So, if you just pass a folder to unrpyc, then unrpyc will find all *.rpyc and *.rpymc recursively in that folder. And My bash script does this (these why, I think you said about I pass all files into single unrpyc).Your script passes this type of files for decompilation? I just haven't figured out exactly how it looks for and defines files for decompilation.
"$python" "$unrpyc" "${opt[@]}" .
On shell script, the code[[ $1 ]] && opt=("${opt[@]}" "$1")
Probably this line of code, but it's not very clear for me how it works.
$1
, is the first positional argument of a function or the main script it self if it invoked out of a function. ($1
, $2
, $3
, until $9
: positional arguments) [[ ]]
checks, you can omit the "if
" keyword and the &&
will run the right hand code if the [[ ]]
evaluates to true
opt
variable), where I set it on local opt=(--init-offset)
. opt
variable. That is all.thank you, everything workedTry this one.
Strange, the old version worked better than the new one.Try this one.
Hm... It might be worth trying to do the same. For some reason, this idea did not occur to me.Yeah... So, if you just pass a folder to unrpyc, then unrpyc will find all *.rpyc and *.rpymc recursively in that folder. And My bash script does this (these why, I think you said about I pass all files into single unrpyc).
You can see theres a dot, on this code:"$python" "$unrpyc" "${opt[@]}" .
this is telling unrpyc to look on this current folder. the dot is an alias of current folder.
The OP has instructions for each version of the instrument.Which version of powershell do I need? When I try to run the powershell script version it just opens for a second then closes .
same issue using the UnRen-forall.bat fileAny help with https://f95zone.to/threads/indecent-wife-hana-v0-16-5-public-fallen-eros.106980/post-9582275
Has header cmVucHk=00000000100a4ff4 42424242 and fails on
zlib.error: decoding with 'zlib' codec failed (error: Error -3 while decompressing data: incorrect header check)
It's strange, in fact my rpatool takes the header from the engine itself, so there should be no mistakes with this. I'll check in about 7 hours when I get home from work.Any help with https://f95zone.to/threads/indecent-wife-hana-v0-16-5-public-fallen-eros.106980/post-9582275
Has header cmVucHk=00000000100a4ff4 42424242 and fails on
zlib.error: decoding with 'zlib' codec failed (error: Error -3 while decompressing data: incorrect header check)
Again: Always cite error messages completely! We don't sit on your should and see whats going on for you....
zlib.error: decoding with 'zlib' codec failed (error: Error -3 while decompressing data: incorrect header check)
This last error isn't from the header anymore. There's also something else done who zlib doens't agree with. Seeing in your custom rpatool that you do not use all of renpys loader internals, i guess they fucked with index or the stored format of the actual file data. Your rpatool doesn't account for such.It's strange, in fact my rpatool takes the header from the engine itself, so there should be no mistakes with this. I'll check in about 7 hours when I get home from work.
Updated the unpacking script. Now unpacked, but probably only up to the new version of the game.Any help with https://f95zone.to/threads/indecent-wife-hana-v0-16-5-public-fallen-eros.106980/post-9582275
Has header cmVucHk=00000000100a4ff4 42424242 and fails on
zlib.error: decoding with 'zlib' codec failed (error: Error -3 while decompressing data: incorrect header check)
Extracting _decomp.cab...
Searching for rpyc files...
+ Searching for rpyc files in C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\game\
File not found: C:\renpy-8.0.3-sdk.0.
File not found: Proj\GoodbyeEternity-0.6.1-pc\game\
No script files to decompile.
Decompiling C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\game\chiaki_dress_without_jacket.rpyc to C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\game\chiaki_dress_without_jacket.rpy...
Error while decompiling C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\game\chiaki_dress_without_jacket.rpyc:
Traceback (most recent call last):
File "C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\unrpyc.py", line 171, in worker
tag_outside_block=args.tag_outside_block, init_offset=args.init_offset, try_harder=args.try_harder)
File "C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\unrpyc.py", line 135, in decompile_rpyc
ast = read_ast_from_file(in_file)
File "C:\renpy-8.0.3-sdk.0. Proj\GoodbyeEternity-0.6.1-pc\unrpyc.py", line 108, in read_ast_from_file
raw_contents = raw_contents.decode('zlib')
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/encodings/zlib_codec.py", line 43, in zlib_decode
error: Error -3 while decompressing data: incorrect header check
In these two lines lies the solution. Python didn't like the space in the path (at least in my code. if so, I will try to handle this case later) and he divided it into two. Just remove the space and it should work.File not found: C:\renpy-8.0.3-sdk.0.
File not found: Proj\GoodbyeEternity-0.6.1-pc\game\
Thanks for the reply.In these two lines lies the solution. Python didn't like the space in the path (at least in my code. if so, I will try to handle this case later) and he divided it into two. Just remove the space and it should work.