Hokan-Ashir / SFGameDataEditor

SpellForce game GameData.cff file editor, for modification and fixes creation
8 stars 1 forks source link

Spell names #48

Closed krateng closed 7 months ago

krateng commented 7 months ago

Hi, this isn't an issue with the application but I thought this would be the best way to ask. The original forum threads are no longer online, so would you mind explaining how the spell names work? E.g. Fireball Level 9 has a spell name id of 13 (0D); but the localisation row "Fireball Level 9" has the text id 3200 (80 0C) which is matched with the item of type spell. I don't really understand the mapping here - I see SpellNameObject.java and SpellNameTableService.java, but they don't seem to have byte offsets. How is the actual spell object (that is e.g. referenced in HeroSpells) mapped to its name or the spell item?

krateng commented 7 months ago

Found it with some experimentation, it's at 0x3fd20 with 235 rows, 75 bytes each