Jump to content

Adding New Spell Effect Icon on Portrait


Recommended Posts



In regards to adding new spell effect icons (modifying States2.bam) can this be done in weidu in a manner that would not cause mod conflicts with other spell mods (Like Revisions)?

The tutorials i have read suggest to create a modified copy of States2.Bam with your .bam added in the sequence, but that seems like it would not be compatible with any other mod that has States2.Bam.
Basically does weidu have any functionality to append to .bam?
Link to comment

Modifying STATES.BAM (and STATES2.BAM) is doable, but a very complicated task. I don't think WeiDU provides a function for this. If you don't have to consider backwards compatibility with original games you can simply create your own BAM file with the portrait icon and add it together with a description to STATDESC.2DA.

Link to comment

if this mod is for EE games only (patch 2.x) than modifying STATES.BAM is no longer needed. You can reference new icons as standalone BAM files via STATDESC.2DA. Examples:

188        25904           SPWI417D
189        103062          SPPR150D
190        103078          SPPR750D
191        103117          SPSH004D

edit: didn't notice the reply.

Link to comment

Oops one other question, i'm currently using weidu to add an entry into this statdesc.2da


I'm trying to figure out a dynamic way of doing it so that the first column of the entry i add has the correct next incremented value (ie 192 off the game without mods).


Or should i not bother and just put in a number and hope no other mod is going to use that number?

Link to comment

COUNT_2DA_ROWS cols rows
SET max = 0
FOR (i = 0; i < rows; ++i) BEGIN
READ_2DA_ENTRY i 0 cols num
PATCH_IF num > max BEGIN max = num END
SET max += 1
INSERT_2DA_ROW rows cols ~%max% %strref% %filename%~


Link to comment

Your a champ.


One more question :p How do i put in a TRA string symbol in INSERT_2DA_ROW?


Basically i want to do something like INSERT_2DA_ROW rows cols ~%max% %@19% %filename%~


Where @19 is from the TRA file, but i'm not sure how to do it properly.


I do already have a workaround by doing


INSERT_2DA_ROW rows cols ~%max% 9999 %filename%~

COPY_EXISTING ~statdesc.2da~ ~override~

REPLACE ~9999~ @19


Just wondering if i can do it more cleanly.

Link to comment


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

  • Create New...