Jump to content

"Remove Racial Restrictions for Single Classes" fails to install on default TobEx


the bigg

Recommended Posts

As per topic title; I'm reporting the error, although I find it strange that it hasn't been reported yet...

 

relevant debug.log:

Installing [Remove Racial Restrictions for Single Classes] [v16]
Copying 1 file ...
[./override/sw1h01.itm] loaded, 458 bytes
Copied [sw1h01.itm] to [override/cdt02360.g3]
Copying and patching 1 file ...
[./override/clsrcreq.2da] loaded, 3015 bytes
override/clsrcreq.2da copied to bg2_tweaks/backup/2360/clsrcreq.2da, 3015 bytes
Copied [clsrcreq.2da] to [override/clsrcreq.2da]
Copying and patching 1 file ...
[./override/mgsrcreq.2da] loaded, 319 bytes
ERROR: Cannot find 0 rows with at least 9 columns.ERROR: [mgsrcreq.2da] -> [override] Patching Failed (COPY) (Failure("Cannot Set 2DA Entry"))
Stopping installation because of error.
relevant code:

COPY_EXISTING ~mgsrcreq.2da~ ~override~
  FOR (col = 2; col < 9 ; ++col) BEGIN
    SET_2DA_ENTRY 0 col 9 1
  END
  PRETTY_PRINT_2DA
  BUT_ONLY
relevant mgsrcreq.2da (notice it has 1 title + 7 data = 8 columns, vs. the 9 referenced in the code):

2DA V1.0							
0							
	HUMAN	ELF	HALF_ELF	DWARF	HALFLING	GNOME	HALFORC
MAGE	1	1	1	0	0	0	0
ABJURER	1	0	0	0	0	0	0
CONJURER	1	0	1	0	0	0	0
DIVINER	1	1	1	0	0	0	0
ENCHANTER	1	1	1	0	0	0	0
ILLUSIONIST	1	0	0	0	0	1	0
INVOKER	1	0	0	0	0	0	0
NECROMANCER	1	0	0	0	0	0	0
TRANSMUTER	1	0	1	0	0	0	0
WILDMAGE	1	1	1	0	0	0	0
Relevant version information: I'm using BG2 + TOB "classic" (not BG2EE), bg2_tweaks v16, tobex v26; --change-log reports no other file touching mgsrcreq.2da.

 

The component "open all kits to all races" assumes 9 columns as well, but performs a COUNT_2DA_ROWS before patching, resulting in no error being raised and the file not being changed by SET_2DA_ENTRY (it is changed by PRETTY_PRINT_2DA).

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...