Avenger Posted May 1, 2007 Share Posted May 1, 2007 My sppr111.spl (armor of faith) spell has a spellbook icon of SPPR111B. It seems the correct value should be SPPR111A. Yet, in the spellbook it is displayed correctly. Link to comment
Nythrun Posted May 1, 2007 Share Posted May 1, 2007 Should be sppr111c.bam ( *a.bam is for spell scrolls) That's pretty weird if it's displaying the correct icon with the wrong reference in the spell header; I remember fixing the reference when I touched up the color balance on sppr111c.bam, but I don't remember if it displayed correctly or not. Link to comment
devSin Posted May 1, 2007 Share Posted May 1, 2007 I too don't recall spell icons ever displaying incorrectly in the spellbook... Link to comment
Guest Guest Posted May 1, 2007 Share Posted May 1, 2007 Uh yes, Nythrun Still would any of you take a peek at your own copy of sppr111.spl and tell me what you see in the spellbook icon field? Mine should be the official ToB version and it has definitely SPPR111B in the spellbook icon field. Link to comment
Avenger Posted May 1, 2007 Author Share Posted May 1, 2007 Here is what i see (after i extracted the file from spells.bif!!!) 0000h Signature SPL V1 0008h UnID name 00006401 000ch ID name 0098967f 0010h Completion CAS_P02 0018h Attributes 00000000 001ch Spelltype 0002 001eh Usability 00000000 0022h Casting glow 000c 0024h UNKNOWN 00 0025h School type 0001 0027h Sec. type 07 0028h UNKNOWN 00000000 002ch UNKNOWN 00000000 0030h UNKNOWN 00000000 0034h Level 00000001 0038h UNKNOWN 0001 003ah Book icon SPPR111B <------- this should be sppr111c 0042h UNKNOWN 0000 0044h UNKNOWN 004ch UNKNOWN 00000000 0050h UnID desc 00006403 0054h ID desc 0098967f 0058h UNKNOWN 0060h UNKNOWN 00000000 0064h Ext. offset 00000072 0068h Ext. count 0014 006ah Feat. offset 00000392 006eh CFB offset 0000 0070h CFB count 0000 0072h Ext. head 1 0072h Spelltype 01 0073h UNKNOWN 00 0074h Use location 0002 0076h Use icon SPPR111B 007eh Target type 05 Link to comment
Avenger Posted May 1, 2007 Author Share Posted May 1, 2007 Ok, this is what happens: the engine overwrites the last letter with a C. When i say last letter, it means it looks for the last letter in the resref, so if i set the bam as 'X', it will try to find C.BAM Link to comment
devSin Posted May 1, 2007 Share Posted May 1, 2007 ZOMG TEH HARDCODE!!!1! Does it also do this for the ability 'B' icons, do you think? EDIT: No, it doesn't. Link to comment
Avenger Posted May 1, 2007 Author Share Posted May 1, 2007 Shall we go into a speculation why they simply not prepare all .spl files with the correct resref? Nuances like this make gemrb coding a nightmare. Link to comment
devSin Posted May 1, 2007 Share Posted May 1, 2007 Or why they didn't just go all auto and always chop the last letter off all icon refs in spells... I don't understand it either. If you notice that you screwed up when assigning the icon, why not fix the spell instead of changing the engine? Hopefully, this was something from BG and all the engine variants will have it. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.