Armor Type Disappearing?

In the game I'm making, there's an armor type called "Magic Armor" which I added, y'know, via the types list like normal.
The character Lars comes pre-equipped with armor that is considered Magic Armor and that works like normal.
Spoiler: Reveal screenshot
Screenshot 2023-11-10 at 1.49.24 PM.png

Magic Armor is represented by the icon of a cloak with ears.
However, when I am supposed to receive any other armor of that type in game (buying or finding it) they just... don't get added to your inventory?
In these screenshots I'm showing how it disappears when you find something in a chest, but it happens when you buy it from a shop too:
Spoiler: Reveal several screenshots
Screenshot 2023-11-10 at 1.53.33 PM.png

Screenshot 2023-11-10 at 2.00.14 PM.png

The armor that shows up are both Light Armors that were already in the party's inventory.
Screenshot 2023-11-10 at 2.02.00 PM.png
I do have Vizustella's Items/Equips Core and Battle Core installed and turned on, which are the only plugins I have that I could imagine would be affecting it, but none of the settings seem to be causing this from what I can tell. No other armor type is like this in the game, all the others work like normal, and I didn't do anything different between the types or between the Oversized Cloak and the other armors of this type. Does anyone know why this might be happening?

Oh, also, I've been a lurker for a while but this is my first post here sooo ^^ hi
If you turn off all plugins, save your project, start a new game, does it still happen?

If yes, please show...I dunno, the Dark Cloak entry in your database and your Types tab?
Oh, also, I've been a lurker for a while but this is my first post here sooo ^^ hi
Hiya!
However, when I am supposed to receive any other armor of that type in game (buying or finding it) they just... don't get added to your inventory?
you might have to go configure the item categories in the plugin parameters for the item core. if you added that new type manually youll have to add that to the list of displayable item types for armor there i think.
If you turn off all plugins, save your project, start a new game, does it still happen?

If yes, please show...I dunno, the Dark Cloak entry in your database and your Types tab?
So, turning off Items/Equips Core does allow the armor to appear in your inventory--possibly due to the item categories that Robro33 mentioned--but the armor still cannot be equipped by anyone who should be able to, even with every plugin turned off.

Here are the other screenshots you asked about:

Spoiler: reveal screenshots
Screenshot 2023-11-10 at 3.25.46 PM.png

Screenshot 2023-11-10 at 3.26.35 PM.png
And you've given actors the Trait to Equip Magic Armor?
And you've given actors the Trait to Equip Magic Armor?
Yes. The class also has the trait for good measure.
Spoiler: reveal screenshot
Screenshot 2023-11-10 at 3.34.21 PM.png
Hiya!

you might have to go configure the item categories in the plugin parameters for the item core. if you added that new type manually youll have to add that to the list of displayable item types for armor there i think.
Unfortunately I don't believe this is the case because Lars' starting armor does show up in every menu where it should and can be equipped. As well, Special Armor, which is fifth in the type list, above Magic Armor, works totally fine like it should. Every armor type is just stored in the normal Armor tab in the Items menu.

Regardless I tried it out and it didn't seem to help... unless I did it wrong. I added a new type to the category list "EType: 4" since it is fourth in the type list.
Regardless I tried it out and it didn't seem to help... unless I did it wrong. I added a new type to the category list "EType: 4" since it is fourth in the type list.
I haven't opened a VisuStella plugin in some time, but if EType is referring to what I assume it is, then it's talking about Equipment types, of which accessories are your fourth in that category.
I went out on a limb and tried writing "AType: 4" which created a whole separate tab for the Magic Armor, which is not what I want. I want all the Armor to just be in the Armor tab. The Magic Armor did appear in this new tab, but it still could not be equipped...

I may just make this stuff light armor at this point and not worry about it lol
I want all the Armor to just be in the Armor tab.
Spitballing here. How are the types for your item categories configured in the plugin parameters? if neither magic armor nor gems show up in your armor category, then its presumably not "AllArmor", which would mean its specific ATypes, no?
Spitballing here. How are the types for your item categories configured in the plugin parameters? if neither magic armor nor gems show up in your armor category, then its presumably not "AllArmor", which would mean its specific ATypes, no?
AllArmor was not a category before, it seems. Adding it does allow the Magic Armor to appear in the inventory, but it still can't be equipped for some reason.
I think you have to have the Equip Armor trait by Class in order to be shown in the equip menu, not just on the Characters traits. I didn't see that you added images of your Class tab configurations for the character, so I don't know how is your set up for that. Try to add the Equip Armor trait to the Class tab and check if it works.
I think you have to have the Equip Armor trait by Class in order to be shown in the equip menu, not just on the Characters traits. I didn't see that you added images of your Class tab configurations for the character, so I don't know how is your set up for that. Try to add the Equip Armor trait to the Class tab and check if it works.
It turns out it was not on every actor's class that it was meant to be, but it has always been on the primary one that I have been testing (the Monk class for the character Niall).
Spoiler: reveal screenshot
Screenshot 2023-11-11 at 9.42.12 AM.png
I think you have to have the Equip Armor trait by Class
That's not correct. Any time the game checks whether an actor can use a piece of equipment, it uses the traitsSet() method:
Code:
Game_BattlerBase.prototype.isEquipAtypeOk = function(atypeId) {
    return this.traitsSet(Game_BattlerBase.TRAIT_EQUIP_ATYPE).includes(atypeId);
};

That looks at all objects associated with the actor that can have traits. You could put the Equip Armor trait on a state or even on another piece of gear that has to be equipped first.

Original thread: https://forums.rpgmakerweb.com/threads/armor-type-disappearing.162810/