CensoredUsername / unrpyc

A ren'py script decompiler
Other
868 stars 157 forks source link

Monologue mode #99

Open jackmcbarn opened 4 years ago

jackmcbarn commented 4 years ago

Ren'Py supports monologue mode now: https://www.renpy.org/doc/html/dialogue.html#monologue-mode

We currently don't, so any uses of it will be turned into a bunch of individual say statements instead, which results in line numbers being wrong.

CensoredUsername commented 4 years ago

And it even comes along with the new "rpy monologue" statement which is actually a parser-only directive to just make things a bit more annoying.

This one's going to be jolly. Do all resulting say statements have their lineinfo set to the same line?

jackmcbarn commented 4 years ago

Yep. Although it doesn't all turn into say statements. It can also add an nvl clear user statement that way: https://www.renpy.org/doc/html/text.html#text-tag-clear

I do have an idea for this though.

CensoredUsername commented 9 months ago

The addition of rpy monologue none causes several additional complications. we'll likely have to scan all Say statement in the file, and see if any of those would normally trigger monologue mode, and if we detect that, explicitly disable it.