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

ADD_KIT does not resolve kit name for 25STWEAP.2DA if it has been placed into a variable #106

Closed Argent77 closed 7 years ago

Argent77 commented 7 years ago

Example code:

<<<<<<<< .../inlined/table.2da
2DA V1.0
*
>>>>>>>>

OUTER_TEXT_SPRINT kit_name ~flrustle~
ADD_KIT ~%kit_name%~
        ~%kit_name%                1           1           1           1           1           0           0           0~
        ~%kit_name% 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
        ~%kit_name%                0       9       0       0       0       0~
        ~%kit_name%                0       0       0       0       0       0~
        ~%kit_name%                0       17      0       0       0       0~
        ~%kit_name%                0       15      0       0       0       0~
        ~%kit_name%                0       1       1       1       1       1       1       1       1~
        ~%kit_name%                1       1       1       0       0       0~
        ~.../inlined/table.2da~
        ~K_T_H    K_T_D   K_T_G   K_T_E   K_T_HE   K_T_HL   K_T_HO~
        ~0x00080000    4~
        ~fl1~
        ~LEAT14 * * BAG28 RING06 RING05,10 * BOOT02 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~
        SAY ~chickenrustler~
        SAY ~Chickenrustler~
        SAY ~CHICKENRUSTLER: kit description~

The column name for this kit in 25STWEAP.2DA results in %kit_name% in place of flrustle. Kit name is correctly evaluated for every other file modified by ADD_KIT.

FredrikLindgren commented 7 years ago

Yeah, tob_start uses TP_Set_Col whereas the other files are altered with APPEND (which performs its own variable evaluation).

OCaml 4.04 breaks the build. I'll sort this out after.

FredrikLindgren commented 7 years ago

Fixed.