Skip to content

Can't figure out how I broke my kit for chr creation in ToB but not SoA

Title pretty much sums it up. I had a few different custom kits all working perfectly, now only one of them isn't working, and only for ToB. Character creation in SoA works as intended, in ToB it crashes every time after allocating proficiencies and before getting to pick spells. I really can't think of what I changed that would cause this, but maybe it's a problem someone has come across before and can see what I did wrong.
BEGIN Bladesinger
REQUIRE_PREDICATE GAME_IS ~bgee bg2ee iwdee~ @25

INCLUDE ~Bladesinger/lib/fl#add_kit_ee.tpa~

ADD_KIT ~BLADE_SINGER~ /* this is the "internal" name of your kit, like BERSERKER or LATHANDER */
~BLADE_SINGER 1 1 1 1 1 1 1 0~ /* this line is appened to CLASWEAP.2DA */
~BLADE_SINGER 5 5 1 0 5 5 5 1 5 5 5 5 0 5 5 5 5 5 0 0 5 5 0 1 1 1 1 1 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~ /* this string is appened column-wise to WEAPPROF.2DA, starting with the third line*/
~BLADE_SINGER 13 15 13 15 0 0~ /* this line is appened to ABCLASRQ.2DA */
~BLADE_SINGER 0 0 0 0 0 0~ /* this line is appened to ABCLSMOD.2DA */
~BLADE_SINGER 17 17 17 17 0 0~ /* this line is appened to ABDCDSRQ.2DA */
~BLADE_SINGER 15 15 15 15 0 0~ /* this line is appened to ABDCSCRQ.2DA */
~BLADE_SINGER 1 0 0 1 0 0 1 0 0~ /* this line is appened to ALIGNMNT.2DA */
~BLADE_SINGER 0 0 0 0 0 0~ /* this line goes to DUALCLAS.2DA */
~Bladesinger/2DA/emclabfm.2da~ /* this is the name of your abilities 2DA file, in the style of clabrn02.2da */
~K_B_H K_B_D K_B_G K_B_E K_B_HE K_B_HL K_B_HO~ /* These are the 2da files listed in KITTABLE.2DA that you want your kit to be a part of. List as many as you like. */
~0x00200000 5~ /* This is the "unusable" value you want for your kit and also the class value. These would normally appear at the end of KITLIST.2DA */
~EM0~ /* This is the High Level Ability Abbreviation (see LUABBR.2DA) Normal values are Fi0, Pa0, etc. */
~CHAN16 * EMPSION BAG29 RING46 * CLCK06 BOOT01 AMUL21 BRAC16 BELT10 * * * POTN52,5 POTN04,2 POTN14,5 * * SW1H73~
SAY ~bladesinger~
SAY ~Bladesinger~
SAY @100

// Bard GETS_PROF_APR
COPY_EXISTING ~clswpbon.2da~ ~override~
COUNT_2DA_ROWS 4 rows
FOR (row = 0 ; row < rows ; ++row) BEGIN
READ_2DA_ENTRY row 0 4 entry
PATCH_IF ("%entry%" STRING_COMPARE_CASE "BARD" = 0) BEGIN
FOR (col = 1; col < 2 ; ++col) BEGIN
SET_2DA_ENTRY row col 4 1
END
END
END
PRETTY_PRINT_2DA
BUT_ONLY

// Enables elven bards
COPY_EXISTING ~clsrcreq.2da~ ~override~
COUNT_2DA_ROWS 8 rows
FOR (row = 0 ; row < rows ; ++row) BEGIN
READ_2DA_ENTRY row 0 8 entry
PATCH_IF ("%entry%" STRING_COMPARE_CASE "BARD" = 0) BEGIN
FOR (col = 2; col < 3 ; ++col) BEGIN
SET_2DA_ENTRY row col 8 1
END
END
END
PRETTY_PRINT_2DA
BUT_ONLY

// Bard -> Fighter PROFS, FIRST_LEVEL & RATE
COPY_EXISTING ~profs.2da~ ~override~
COUNT_2DA_ROWS 3 rows
FOR (row = 0 ; row < rows ; ++row) BEGIN
READ_2DA_ENTRY row 0 3 entry
PATCH_IF ("%entry%" STRING_COMPARE_CASE "BARD" = 0) BEGIN
FOR (col = 1; col < 2 ; ++col) BEGIN
SET_2DA_ENTRY row col 3 4
END
FOR (col = 2; col < 3 ; ++col) BEGIN
SET_2DA_ENTRY row col 3 3
END
END
END
PRETTY_PRINT_2DA
BUT_ONLY

// Bard -> Fighter PROFSMAX, FIRST_LEVEL & OTHER_LEVELS
COPY_EXISTING ~profsmax.2da~ ~override~
COUNT_2DA_ROWS 3 rows
FOR (row = 0 ; row < rows ; ++row) BEGIN
READ_2DA_ENTRY row 0 3 entry
PATCH_IF ("%entry%" STRING_COMPARE_CASE "BARD" = 0) BEGIN
FOR (col = 1; col < 2 ; ++col) BEGIN
SET_2DA_ENTRY row col 3 2
END
FOR (col = 2; col < 3 ; ++col) BEGIN
SET_2DA_ENTRY row col 3 5
END
END
END
PRETTY_PRINT_2DA
BUT_ONLY

// Includes Bladesinger's High-Level Abilities
ACTION_IF (NOT FILE_EXISTS_IN_GAME ~LUEM0.2da~) BEGIN
COPY ~Bladesinger/2DA/LUEM0.2da~ ~override~
END

// Changes bard's spell progression to wizard's, sets Bladesinger's thac0 to that of F/M.
COPY ~Bladesinger/2DA/mxsplbrd.2da~ ~override~
COPY ~Bladesinger/2DA/thac0.2da~ ~override~

// Adds Bladesinger's custom CLAB spells.
COPY ~Bladesinger/Spells/emac1.spl~ ~override~
COPY ~Bladesinger/Spells/emsee.spl~ ~override~
COPY ~Bladesinger/Spells/emblsr.spl~ ~override~

// Bladesinger's HLA at level 14
COPY_EXISTING ~lunumab.2da~ ~override~
COUNT_2DA_ROWS 3 rows
FOR (row = 0 ; row < rows ; ++row) BEGIN
READ_2DA_ENTRY row 0 3 entry
PATCH_IF ("%entry%" STRING_COMPARE_CASE "BARD" = 0) BEGIN
FOR (col = 1; col < 2 ; ++col) BEGIN
SET_2DA_ENTRY row col 3 14
END
END
END
APPEND lunumab.2da ~BLADE_SINGER 14 1 99 1~

// SWS Grand Mastery
COPY_EXISTING ~stylbonu.2da~ ~override~
APPEND stylbonu.2da ~SINGLEWEAPON-3 0 0 0 0 -2 0 -1 1~
APPEND stylbonu.2da ~SINGLEWEAPON-4 0 0 0 0 -2 0 -2 1~
APPEND stylbonu.2da ~SINGLEWEAPON-5 0 0 -1 0 -2 0 -2 1~


// Bladesongs
COPY ~Bladesinger/Spells/embs1.spl~ ~override~
SAY 0x8 @124
SAY 0x50 @125
COPY ~Bladesinger/Spells/embs1g.spl~ ~override~
SAY 0x8 @126
SAY 0x50 @127
COPY ~Bladesinger/Spells/embs2.spl~ ~override~
SAY 0x8 @132
SAY 0x50 @133
COPY ~Bladesinger/Spells/embs2g.spl~ ~override~
SAY 0x8 @134
SAY 0x50 @135
COPY ~Bladesinger/Spells/embs3.spl~ ~override~
SAY 0x8 @128
SAY 0x50 @129
COPY ~Bladesinger/Spells/embs3g.spl~ ~override~
SAY 0x8 @130
SAY 0x50 @131
COPY ~Bladesinger/Spells/embsong.spl~ ~override~

ACTION_IF GAME_IS ~bgee~
THEN BEGIN
STRING_SET 25046 @150
COPY ~Bladesinger/ITM/clck09.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck10.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck11.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck12.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck13.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck14.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck15.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck18.itm~ ~override~ //
COPY ~Bladesinger/ITM/clck19.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm01.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm02.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm03.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm04.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm05.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm06.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm07.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm08.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm09.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm10.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm11.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm12.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm13.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm14.itm~ ~override~ //
COPY ~Bladesinger/ITM/helm15.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn03.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn04.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn05.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn06.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn07.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn09.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn11.itm~ ~override~ //
COPY ~Bladesinger/ITM/potn12.itm~ ~override~ //
COPY ~Bladesinger/ITM/ring08.itm~ ~override~ //
END

ACTION_IF GAME_IS ~bg2ee~
THEN BEGIN
STRING_SET 34174 @150
END

LAF fl#add_kit_ee
INT_VAR
biography = ~-1~
briefdesc = 102499 // Normal briefdesc for fighter/mages
fallen = 0
fallen_notice = ~-1~
STR_VAR
kit_name = BLADE_SINGER
clswpbon = ~1 0 3~
numwslot = ~2~
clascolr = ~57 58 122 1 43~
clasiskl = ~0 0 0 0 0 0 0~
clasthac = ~0~
thiefscl = ~0 0 0 0 0 0 0 0~
hpclass = ~HPFM~
clsrcreq = ~0 1 0 0 0 0 0~

END

Comments

  • The user and all related content has been deleted.
  • Abdel_AdrianAbdel_Adrian Member Posts: 430
    edited August 2015
    @subtledoctor That's really odd, but I had considered that. At 2.5M xp, my kit will only be at lvl 13 and lvl 12 is the first time he gets new spells, but when leveling up in SoA, they work perfectly as intended. Everything past that is gaining an item like clerics at 25, and those all work too.
    I recently changed all my file names to have the right prefix, but as far as I can tell I changed everything dependent on that. I'm really stumped.

    edit: using the blank clabfi01 works, meaning you're right. Turns out it was the spell at level 12 that removes 3 of the level 1 spells making room for the 3 improved ones at lvl 12. Worked fine in game, but not upon character creation because I somehow changed the target from self to creature. One little fix and it works like a charm now.

    Like always, you've been a big help. Thanks!
    Post edited by Abdel_Adrian on
Sign In or Register to comment.