"Change item" adding 0 item to inventory?

Once more, for some reason, whenever i try to use "change items" to give an item to the player, it adds 0 of it, making the item appear in the inventory, but with an "x0", making it impossible to use.

Images:
Spoiler
sem_ty24.jpg

211.png

sem_ty18.png
In the default game engine, items are capped at 99. Having said that, when you try to add 100 potions, it should add 99 potions.

First, I see you're having some errors there with files not loading. Try renaming your folder to conform to networking rules (i.e., no spaces in the folder name) and try again.
In the default game engine, items are capped at 99. Having said that, when you try to add 100 potions, it should add 99 potions.

First, I see you're having some errors there with files not loading. Try renaming your folder to conform to networking rules (i.e., no spaces in the folder name) and try again.
I tried first using 1, then using 100. Both give the same result, so i posted the second one.
I also renamed the folder... but without sucess.

Last time it happened, it was because of a code i added to scene_onmapload(a simple reserve common event). But it's totally clear now, using the default scripts, so can't be that.
Does renaming the folder at least remove the errors?

What version of MV are you using? Open up the rpg_core.js file and it should have a version number at the top. If it doesn't, that will tell us it's an early version.

Any plugins? (A screenshot of your plugin manager is preferred to a verbal accounting.)
Renaming apparently removed them. I'm using 1.5.1 and about plugins...well... 46...
But things were working a few days ago.I don't know when it started happening.
most likely one of your plugins broke the engine, that is why we need a screenshot of the plugin manager (or several if the list is longer) to even start searching for the cause. No way around that.
Spoiler
111.png

212.png

(Yes i notice that there're 2 mog pixifilters. Both the same file. I removed one and also that old "update switch" plugin that was useless.)
Also, when exactly did you change your PIXI version to 4.6.2? That's almost certainly responsible for the deprecation errors (and possibly it looking for .js.map files) in your console. I suspect this might have happened if you have the steam version and opted in to the MV v1.6.0 beta test. Otherwise you'd have to have updated or changed the PIXI library yourself...possibly while installing one of the many graphics plugins you have? Getting those errors to go away is actually a pretty big deal, in my book. While it's hard to see how PIXI errors could be affecting items, you never know...always start with fixing the obvious.

After that, I'd suggest checking the max item limit parameter in YEP_CoreEngine (and check for stray notetags regarding individual item limits in the Items tab of your database).

After that, you're back to the standard "shut down all your plugins and see if it still does it; if not, turn them back on one-by-one to figure out which one is causing the problem".

As a stray thought, have you verified the items in fact can't be used, and that it's just not showing the wrong number? You can verify how many of an item the party has by typing this command into your console (replace itemId with the valid number):
Code:
$gameParty.numItems($dataItems[itemId]);
I downloaded pixi 4.6.2 and installed by myself, but even using the normal version it doesn't work.
I checked YEP_core and it's limit is 50 here. I also used that command in console and it's saying that player has 0 of both items.

I will try to turn off some plugins and see if something happens.

EDIT: For some weird reason, seems that javahut particles plugin was causing this problem, and once i moved it all the way to the top, things got back to normal.

Since it's the second time it happens(First it was because of a code in scene_onmapload to turn on a switch and so trigger a common event), can someone tell me what does that?
[...] can someone tell me what does that?

Honestly, with that many plugins, probably not. Your code has been rewritten so many times by so many people it's hard to say WHAT's going on in there. But maybe you'll get lucky and someone knows exactly which plugin is the culprit and why.
It seems strange that any kind of particle plugin would make ANY changes to inventory.

Are you changing the core scripts, or are you creating plugins to override/alias the methods?

Original thread: https://forums.rpgmakerweb.com/threads/change-item-adding-0-item-to-inventory.90795/