Problem saving data with trackable icons.

Hello guys! Sorry if it's a newbish question but maybe someone will give me an idea because I'm stuck at the moment. I'm trying to track what's equipped on the main character and show corresponding icons in the info section of Yanfly's SaveCore . Tracking is done with severable variables, each of them for its own slot and equals to something like $gameActors.actor(1).equips()[0].iconIndex; for a weapon and so on. The common event with this check fires on menu close.

Problem is - it tracks the currently equipped items and while I want it to show which items were active (equipped) at the time of saving. So, if I swap a weapon all of the saves show up as if this weapon was equipped even if it's not the case. Yanfly's plugin is capable of tracking the numbers without changing them like it does with gold or total playtime with Yanfly.Util.toGroup.

What do I need to do in case of icons? Or the function is simply not there for such options? Sorry, I'm not the code guy and can't figure it out myself 🙁

Thanks for your time!
That has nothing to do with icons, it is the result of how the data is stored and handled.

You're using game variables - that is the current value of those variables - to determine which icons to display, and that will never work the way you planned it.

You'll have to define your own data structures for storing that icon data, and save it independently from the save files themselves. Because the game variables will always be defined by the loaded game itself, ignoring the stored game data of those files.
There is absolutely no need to track icons with game variables. Just like @Andar said, it has to do with saved info (the game separates save info and save data). My savecore plugin saves equip icons, so if you want, you can check out its code. If I remember correctly, it's in DataManager.makeSavefileInfo.
There is absolutely no need to track icons with game variables. Just like @Andar said, it has to do with saved info (the game separates save info and save data). My savecore plugin saves equip icons, so if you want, you can check out its code. If I remember correctly, it's in DataManager.makeSavefileInfo.

Found it and will definitely try to use it. Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/problem-saving-data-with-trackable-icons.94402/