Open burner1024 opened 3 years ago
Man, weidu is too smart for its own good... +
seems easy enough to add, but for the life of me I can't figure out how to make it parse pst's animate.ids.
Edit: actually, there's special code for animate.ids already, but it looks like for some reason parentheses or comma in ids symbol confuses d/baf action parser.
D action looks like this
Polymorph(24647)
SetAnimState("Vhail", ANIM_MIMEATTACK1)
The relevant weidu code is just
COPY_EXISTING_REGEXP GLOB ~^.+\.dlg$~ ~override~
DECOMPILE_AND_PATCH BEGIN x = 0 END
BUT_ONLY
This happens because Dlg.save_dlg invokes Dlg.convert_raw_text on the action, which replaces the final space in "(cl 1) " with a newline, which cases the future Hashtbl lookup to fail, resulting in the parse warning. The D file is created fine, with Polymorph(123)
in the action list. It appears to be the compiler that expands the IDS code into its symbol.
And this should be fixed in 65964c284be95ce6f22c78c49934213e32ad4e03.
This is back on because regexps suck.
So, uhm, any examples of strings that should and should not be caught by the regex? Maybe I'll think of one.
animate.ids looks like this
Error