WeiDUorg / weidu

WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine.
http://www.weidu.org
GNU General Public License v2.0
90 stars 20 forks source link

DECOMPILE_AND_PATCH fails inside INNER_PATCH_FILE for bcs #168

Closed burner1024 closed 4 years ago

burner1024 commented 4 years ago
COPY_EXISTING ~sw1h01.itm~ ~override~
  INNER_PATCH_FILE ~ar0602.bcs~ BEGIN
    DECOMPILE_AND_PATCH BEGIN END
  END
BUT_ONLY
ERROR: [sw1h01.itm] -> [override] Patching Failed (COPY) (Failure("Unknown extension for DECOMPILE_AND_PATCH: bcs\""))
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
4Luke4 commented 4 years ago

The same holds for DLG files...

FredrikLindgren commented 4 years ago

Yeah, INNER_PATCH_FILE works with the internal filename \"$INTERNAL_STUFF filename.ext\" and DECOMPILE_AND_PATCH treats it like it's a normal filename and hacks it up into res and ext, and complains there is no valid ext of the type bcs\".

burner1024 commented 4 years ago

found a workaround

SPRINT orig_file ~%SOURCE_FILE%~
  INNER_ACTION BEGIN COPY_EXISTING ~other_file~ overrride
  ...
  END
INNER_ACTION BEGIN COPY_EXISTING ~%orig_file%~ override BUT_ONLY END
FredrikLindgren commented 4 years ago

Fixed in c62c81e98074e04bed677be72bcc3f55f33d9732