okay I made this change in a party ai script I made for IWD. converted it to use in BG (well what I could anyway)COPY_EXISTING ~scrlev.ids~ ~override~
SET_2DA_ENTRY 4 0 2 ~3~
SET_2DA_ENTRY 5 0 2 ~4~
SET_2DA_ENTRY 6 0 2 ~5~
SET_2DA_ENTRY 7 0 2 ~6~
BUT_ONLY_IF_IT_CHANGES
It runs perfectly fine under weidu version 210 (the version that the IWD script had)
it changes this:0 OVERRIDE
1 AREA
2 SPECIFICS
4 CLASS
5 RACE
6 GENERAL
7 DEFAULT
into this:0 OVERRIDE
1 AREA
2 SPECIFICS
3 CLASS
4 RACE
5 GENERAL
6 DEFAULT
but when it updates to version 230 I receive this error:ERROR: Cannot find 7 rows with at least 2 columns.ERROR: [scrlev.ids] -> [override] Patching Failed (COPY) (Failure("Cannot Set 2DA Entry"))
If I change the code to this:COPY_EXISTING ~scrlev.ids~ ~override~
SET_2DA_ENTRY 3 0 2 ~3~
SET_2DA_ENTRY 4 0 2 ~4~
SET_2DA_ENTRY 5 0 2 ~5~
SET_2DA_ENTRY 6 0 2 ~6~
BUT_ONLY_IF_IT_CHANGES
it will process but changes it incorrectly to this:0 OVERRIDE
1 AREA
3 SPECIFICS
4 CLASS
5 RACE
6 GENERAL
7 DEFAULT
So it obviously isn't an issue where it is counting from 0 instead of 1 since telling it to change line 3 instead of 4 changed the third line. The issue seems to be that it isn't recognizing the last line (in this case the 7th). I've even tried it with a column count of 1 and it still errors out on line 7.
the reason I correct the script level numbers is because I actually assign scripts via script to the class and race levels on the party members and if the numbers are not correct they get assigned incorrectly... (tempted to drop it into the fixpack but can't cause of this...)
I don't know which version since 210 it crapped out on, but can we get this to work properly again?