Something didn't work for me.
According to the specified value, I have byte 97, and in your version, it's 98 (+1). It's not entirely clear why it's 97+, and not 353 - 354.
I've attached the added file that I used, changing the extension from zip to h5u. I was adding extra spells, but they didn't appear anywhere. Maybe you just need to replace the XML file in the date, and not add a new h5u file. Maybe I missed something, maybe it doesn't work, or maybe the byte is just incorrect???
It's better to use the .pak extension, and the file should be in the data folder.
By the way, which version did you modify the types.xml file from?! It's significantly different from the one in 3.1!
In general, you did something wrong - that's why it didn't work...
So, the .exe file reserves an array for 354 elements, and the types.xml file has an array defined for 353 elements!
Table_Spell_SpellID
00000000
<__ClassTypeID>270064327
<__ObjectData>
ref_table_is_pointer
04000000
true
ref_table
03000000
ref_table_num_objs
01000000
353 this should be 354and a little lower:
a80da3ef
objects
2
<__ClassTypeID>270062596
<__ObjectData>
353 also 354 here
353 and 354 here
00000000
00000000
In the .exe file, I only added +1, i.e., you need to conduct an experiment with one spell... for this, you need to replace 353 with 354 in these three places in the types.xml file.
I've added the correct version in the attachment... you need to unpack it... put the vasik_add_spells.pak file in the data folder and use the .exe file - H5_Game_vasik.exe
I added the uber-freeze spell to Kaspar... check it in the game, unfortunately, I can't, as I can't run the game at work!
In general, I added the SPELL_VASIK spell to Kaspar - I checked it on my laptop... in battle, this spell consumes mana, but nothing happens... absolutely nothing...
Conclusion - there is probably some handler in the .exe file that, based on the spell name, calls the necessary subroutine... the only hope is for spells like:
SPELL_ABILITY_CUSTOM1
SPELL_ABILITY_CUSTOM2
SPELL_ABILITY_CUSTOM3
SPELL_ABILITY_CUSTOM4
At least you can work with them somehow... because the respected comrade Dyrman in NHF successfully uses them!