CensoredUsername / unrpyc

A ren'py script decompiler
Other
824 stars 149 forks source link

Could not load file ...un.rpyc on Ren'Py 8.0.2.22081402 #155

Closed befree12345 closed 4 months ago

befree12345 commented 1 year ago

Hi I know this was an issue a while back in 2018 and it was solved, but it seems to be back with games created with Ren'Py 8. Here is the traceback:

Full traceback: File "D:\Games\New folder\Lust_and_Power-0.46-pc\renpy\bootstrap.py", line 274, in bootstrap renpy.main.main() File "D:\Games\New folder\Lust_and_Power-0.46-pc\renpy\main.py", line 490, in main renpy.game.script.load_script() # sets renpy.game.script. File "D:\Games\New folder\Lust_and_Power-0.46-pc\renpy\script.py", line 297, in load_script self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode) File "D:\Games\New folder\Lust_and_Power-0.46-pc\renpy\script.py", line 801, in load_appropriate_file raise Exception("Could not load file %s." % lastfn) # type: ignore Exception: Could not load file D:\Games\New folder\Lust_and_Power-0.46-pc\game/un.rpyc.

Windows-10-10.0.19043 AMD64 Ren'Py 8.0.2.22081402 Lust and Power 0.46 Sun Sep 11 09:33:52 2022

azk66 commented 1 year ago

I can confirm that

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: Could not load file C:\Users\<...>\<GameRootDirectory>\game/un.rpyc.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\<...>\<GameRootDirectory>\renpy\bootstrap.py", line 274, in bootstrap
    renpy.main.main()
  File "C:\Users\<...>\<GameRootDirectory>\renpy\main.py", line 490, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "C:\Users\<...>\<GameRootDirectory>\renpy\script.py", line 297, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\<...>\<GameRootDirectory>\renpy\script.py", line 801, in load_appropriate_file
    raise Exception("Could not load file %s." % lastfn) # type: ignore
Exception: Could not load file C:\Users\<...>\<GameRootDirectory>\game/un.rpyc.

Windows-10-10.0.19044 AMD64
Ren'Py 8.0.2.22081402
<GameName>
Sat Sep 17 19:04:18 2022

I was able to decompile (rpyc to rpy) with an updated version of UnRen.bat, so there is a solution out there. I prefer the use of unrpyc thought. If you need to see how it work, I think the version is called UnRen-untrahack.bat

madeddy commented 1 year ago

Possible reason: Ren'Py 8 is depending on python 3 and unrpyc is so far officially not compatible. Perhaps related to #92

CensoredUsername commented 1 year ago

See above, Currently I don't support Ren'py 7.5 and above.

CensoredUsername commented 4 months ago

Closing this as there's no test cases attached, so it's just a duplicate of #92 .