Thread:ヌヌハラ/@comment-46261745-20200811184042

Hi Nunuhara and RottenBlock if you see this.

I'm trying to mod a class to increase the assigned length of a public array by 1. I'm fairly confident that I've done the correct changes, but for some reason, when I try to comile the patch, AINDecompiler just ignores my updated class .jaf for the class - all other .jafs for functions and methods are patched, but not the class... which means the array was never expanded, which crashes everything...

In fact, to make this .jaf in the first place, I had to use a workaround and create a new document from scratch, since AINDecompiler just crashed when I tried to edit the class file...

So my question is... can I modify the class and recompile the .ain through another method? Is it possible maybe to do ths with your toolset, Nunuhara?

For reference, what I'm currently doing is adding a battle CG, very similar to 'ally guard'  but for animal commanders, called 'bloodlust'. It's a new, red rectangle type object that basically just says when the skill is active that I added into the .ald...

Tahrough the same method that ally guard cg is created in the code and overlayed on the commander who uses it in battle, I'm trying to do the same thng with this new skill- this is carried out in tagBattleStatus::create). But to do thiis, I need to increase the length of m_aspSp by 1, which seems fairly straightforward in the class (tagBattleStatus), where it defines the array: array@tagSprite m_aspSp[5]; which I want to change to array@tagSprite m_aspSp[6];

I can then associate this object with the FF status of a character in tagBattleStatus::setShow (case 21 - 23 are ally guard, so I have added a 24 value for the new skill bloodlust) (I then use the FF == 24 in the battle damage script to calculate its effect)

Please tell me if you've run into this or know of any way to apply this! 