Here's a quick fix for that.
Plz find the following block in TDD and/or CtB TP2:
COPY_EXISTING ~TOOLTIP.2DA~ ~override~ SET required_columns = 10 //10 for CtB, 6 for TDD SET rows=2 SET rows_prev=0 SET col_cnt=0 WHILE "%rows%">1 BEGIN col_cnt = col_cnt + 1 rows_prev = rows COUNT_2DA_ROWS col_cnt rows END col_cnt = col_cnt - 1 SET ccc = col_cnt - 1 PATCH_IF 1 BEGIN SPRINT str_add "" SPRINT str "%ccc%" FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN SPRINT str "%str%"^" %cnt%" SPRINT str_add "%str_add%"^" -1" END PATCH_IF("%ccc%"<"%required_columns%") BEGIN SET_2DA_ENTRY 0 ccc ccc "%str%" FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN READ_2DA_ENTRY j ccc col_cnt "last" SPRINT str "%last%"^"%str_add%" SET_2DA_ENTRY j ccc col_cnt "%str%" END END END BUT_ONLY_IF_IT_CHANGES
and make modifications:
COPY_EXISTING ~TOOLTIP.2DA~ ~override~
SET required_columns = 10
SET rows=2
SET rows_prev=0
SET col_cnt=0
WHILE "%rows%">1 BEGIN
col_cnt = col_cnt + 1
rows_prev = rows
COUNT_2DA_ROWS col_cnt rows
END
col_cnt = col_cnt - 1
SET ccc = col_cnt - 1
PATCH_IF 1 BEGIN
SPRINT str_add ""
SPRINT str "%ccc%"
FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN
SPRINT str "%str%"^" %cnt%"
SPRINT str_add "%str_add%"^" -1"
END
READ_2DA_ENTRY 0 0 3 "test"
PATCH_IF( "%test%"=1 ) BEGIN
SET_2DA_ENTRY 0 0 3 "0 1"
END
PATCH_IF("%ccc%"<"%required_columns%") BEGIN
SET_2DA_ENTRY 0 ccc ccc "%str%"
FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN
READ_2DA_ENTRY j ccc col_cnt "last"
SPRINT str "%last%"^"%str_add%"
SET_2DA_ENTRY j ccc col_cnt "%str%"
END
END
END
BUT_ONLY_IF_IT_CHANGES
Edited by King Diamond, 24 March 2006 - 04:28 AM.