CensoredUsername / unrpyc

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

expected statement #129

Closed tooyangtoonaive closed 4 months ago

tooyangtoonaive commented 2 years ago

such as: File "game/core/screens/graph_anim.rpy", line 14: end of line expected. at transform:crop (0, 0, 0, config.screen_height) ^

File "game/defines/places/hot_springs/first_floor.rpy", line 69: expected statement. place place_hot_springs_first_floor ^

attachfile: py.zip

CensoredUsername commented 2 years ago

Seems like some stuff is being placed at the wrong line. I'll can look into it when I have time, but if you want to, the offending code is at https://github.com/CensoredUsername/unrpyc/blob/8edfc2711e7105c1ab3a1a25d1c3264b8a55cc16/decompiler/sl2decompiler.py#L365-L374

CensoredUsername commented 2 years ago

probably related to #115

CensoredUsername commented 4 months ago

The first should be fixed thanks to the SL2 keywords and children rewrite, as well as da61f2e (apparently nobody uses the transform displayable so we didn't know about that before. The latter expected statement issue isn't a unrpyc issue. The file records a renpy UserStatement with the name place which was likely defined in another .rpy[c] file.

CensoredUsername commented 4 months ago

Should be fixed in the current release (1.2.0), please reopen if it isn't.