Issue with initial Item count when starting New games

Whenever I do a playtest in RMMV for purposes of testing (using the playtest Icon, and then selecting 'New Game') , for some reason I always start off with 10 of each "regular item" that is programmed into my database. I do not start off with any Key Items in my database. I want to start the game with 0 items each time, I am playtesting.

Does anyone know why I end up starting with 10 of each item?
For instance, when I load a new game I will start with 10 potion, magic water, dispel herb, etc. If I add a new item and collect it, the next time I start a new game, I will start off the new game with 10 of that item as well.
I never went through this, by default items appear only in the battle test.
Maybe you are using a debug plugin, that is setting those items.
best guess is one of your plugins does that because it is not configured correctly.

there are several plugins that cause unwanted effects with the wrong settings - for example in yanfly's item core the equipment values are randomized by default, if you forgot to switch that off it becomes problematic during testing.
I had an issue similar to this spring up with Yanfly's Item Core and another of her plugins...I don't recall which, but I narrowed it down to a specific combination of the two and couldn't figure out how to get rid of it. There are a number of other threads on the subject dating back a couple of years, but I haven't seen a solution.

I don't see anything as simple as a missed option in the Item Core, as @Andar suggests (but please point it out if I'm wrong!).
@Zero_G I do not have any debug plugins running as far as I can tell. On the flip side, could you recommend a debug plugin that could be used to detect when these items are being set to 10? Like when the variable controlling the item count is being set to 10?

@Andar and @ATT_Turan, I tried turning Yanfly's Item Core and the problem still persisted. I read through the Item Core documentation and it does mention something about a variance setting, but turning off the Item Core didn't solve the problem.

@ATT_Turan , have you tried any work arounds?

I am using Yanfly's plugins along with Iriana Atelier, MogHunter, Galv, and SRD plugins . It seems that some item counts appear to have the wrong item count while in the Item Menu. But when I go to actually use the items in the game, without going through the menu, the item count for some items is correct, which is strange since it displays incorrectly in the main menu which is where the items are frequently used from.

So I am not sure if the issue is more of a GUI issue in how items are being displayed in the menu, or if it is also something in the code, or both. As I do not know where or when these variables are being set to 10.
@Zero_G I do not have any debug plugins running as far as I can tell. On the flip side, could you recommend a debug plugin that could be used to detect when these items are being set to 10? Like when the variable controlling the item count is being set to 10?

@Andar and @ATT_Turan, I tried turning Yanfly's Item Core and the problem still persisted. I read through the Item Core documentation and it does mention something about a variance setting, but turning off the Item Core didn't solve the problem.

@ATT_Turan , have you tried any work arounds?

I am using Yanfly's plugins along with Iriana Atelier, MogHunter, Galv, and SRD plugins . It seems that some item counts appear to have the wrong item count while in the Item Menu. But when I go to actually use the items in the game, without going through the menu, the item count for some items is correct, which is strange since it displays incorrectly in the main menu which is where the items are frequently used from.

So I am not sure if the issue is more of a GUI issue in how items are being displayed in the menu, or if it is also something in the code, or both. As I do not know where or when these variables are being set to 10.
Also be cognizant of your common events. I think yanfly's core plugin automatically triggers one of the common events on-start of a newgame (I know it does in MZ, I'd have to look for MV). If such a thing is happening, maybe that is what is causing it?
I tried turning Yanfly's Item Core and the problem still persisted.
Item core was mentioned as an example, NOT as the solution.
What I wanted you to do is to check the configuration of every plugin you have installed to see if it has something that gives default items.

also, if you have that many plugins you should check if their order is correct and post a screenshot of the complete list here to help us guess possible causes.
@Jragyn , None of the common events I am using is setting variables or items to 10. I do not think I am setting the count of items to 10 anywhere.

Item core was mentioned as an example, NOT as the solution.
What I wanted you to do is to check the configuration of every plugin you have installed to see if it has something that gives default items.

also, if you have that many plugins you should check if their order is correct and post a screenshot of the complete list here to help us guess possible causes.
@Andar , I have attached screenshots of the complete list of plugins. I only turn ON a plugin if I am using it or believe I will use it in the future.

Capture001.PNG
Capture002.PNG
Capture003.PNG
Capture004.PNG
Capture005.PNG
Capture006.PNG
Capture007.PNG
Capture008.PNG
Capture009.PNG
Capture010.PNG
Capture011.PNG
Holy god.
I only turn ON a plugin if I am using it or believe I will use it in the future.
that is a very bad idea. If you don't use a plugin, it should not be in the plugin manager.
the on/off is for testing purposes, not to allow you to have a titanic list of unused plugins "just in case".

And please keep in mind that you usually have to start new playtest whenever you change most plugins on/off, because that makes older savefiles incompatible.
With so many plugins in there, it would be a huge effort for someone else to try to troubleshoot your list.

You need to turn off all of your plugins, start your game, make sure you don't have the extra items. Then turn on one category - say, your gargantuan number of Yanfly plugins. Start it up. If you have the extra items then, turn the Yanfly plugins off one at a time until you find which one causes the problem.

If you don't have the extra items with all of the Yanfly plugins on, start turning on other plugins one group at a time, following that process until you determine which combination of plugins causes it.
that is a very bad idea. If you don't use a plugin, it should not be in the plugin manager.
the on/off is for testing purposes, not to allow you to have a titanic list of unused plugins "just in case".

And please keep in mind that you usually have to start new playtest whenever you change most plugins on/off, because that makes older savefiles incompatible.
I thought it is only when a plugin is ON that it is actually in use, because people mention turning OFF plugins and that resolves issues. When you turn OFF a plugin, is it not the equivalent of commenting out all the code that is in the plugin that is OFF?

It takes quite a while to load up all the plugins in the plugin list in order, since they have to be in the exact order suggested by Yanfly, Iriana, and other people, I am also not sure which plugins I will end up using in this or future projects.

Could you elaborate on what you mean by start a new playtest? Because I thought that whenever you run a playtest you are starting off with a brand new game? When I run playtests, I just push the green play icon button. I am not sure if there is a more advanced way of running the playtest.

I suspect there might be an issue with save files based on what you said, so maybe I am running the play test wrong. All the plugins I use are pretty well known and pretty much all of them have their own Youtube video and documentation, but when I try to Google search for people with the same problem there does not seem be many cases with the same exact problem.
Is there something I could try with deleting save files and creating new ones?


EDIT: I was looking through all the Plugins on the list and turning some off that I had not gotten around to using in my project yet. I found that there was a YEP_TestPlayAssit file that was ON. I checked inside the plugin and apparently there is a line of Startup Code that is preprogrammed in there and not commented out that basically creates a For loop which increments all items that you have in $dataItems to 10 and then gives them to your $gameParty. After turning the plugin off, the game was running.

If you (@Andar) or someone could still answer some of the question I posted above that would be helpful in better understanding how RPG Maker MV works though. Thanks for all the help everyone!
When you turn OFF a plugin, is it not the equivalent of commenting out all the code that is in the plugin that is OFF?
yes and no
The problem is that code execution is not the only thing you'll have to worry about.

Useless lines bloating up a list will always make it more problematic for the human to understand that list. The post #10 above is a very good example of that - that user needed time to even process that titanic list before giving a better answer in post #12.

Each of the OFF-lines makes it more problematic for you as a human to process what is included in the project, even if the code itself is not executed.
There are many reasons why we always say to only add plugins when you know you'll need them. Not only to keep a better overview but also so that you'll remember to do their configuration and why you need them and more.
Actually your solution is another perfect example - like I said the cause was a plugin you forgot you had and forgot to configure correctly. That would not have happened if you only added a plugin when you needed it instead of adding everything at the beginning even if you had no idea if you needed it.

yes, sorting plugins with later additions is more work - but it still prevents unwanted forgotten entries...


As for new playtest what I mean is selecting "new game" on the title of the screen in the playtest.
Because you can save in a playtest, and that saves the previous state of the plugin list inside that savefile.
playing a playtest, saving the current state of the test, then changing the plugins and loading the old savefile will result in data for the old plugins still be in the new playtest or missing data for the newly activated plugin because that data is only created on new game option.
Changing the plugin state and then trying to continue an older savefile from a different list of active plugins is still one of the common cause for "type-error" or "of unidentified" bugs because of that.
Whenever I do a playtest in RMMV for purposes of testing (using the playtest Icon, and then selecting 'New Game') , for some reason I always start off with 10 of each "regular item" that is programmed into my database. I do not start off with any Key Items in my database. I want to start the game with 0 items each time, I am playtesting.

Does anyone know why I end up starting with 10 of each item?
For instance, when I load a new game I will start with 10 potion, magic water, dispel herb, etc. If I add a new item and collect it, the next time I start a new game, I will start off the new game with 10 of that item as well.
I found the same issue on my game. It was the YEP_UtilityCommonEvent plugin responsible
@RangerD This thread is over two years old. Highly doubtful that user will notice.

@RangerD, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-initial-item-count-when-starting-new-games.136732/