Hello! I think I found a bug. When we disable other than "items" categories in inventory, then after reaching item limit on visible window, there is something wrong, another items aren't visible. Can you guys fix that? Thanks.
Bug Item Window
RPG Maker MZ FeedbackYou look like you are using a custom script? Can you make a vanilla sample project? (<1 mb if you can please) emulating this issue.
I can also confirm this. I tested it using just a single category for both "item" and again with "Weapon" .
I also rolled back the core scripts to v1.0 just to be sure it wasn't something to do with a update somewhere.
But it looks like it's always been there.
I also rolled back the core scripts to v1.0 just to be sure it wasn't something to do with a update somewhere.
But it looks like it's always been there.
I can also confirm this. One method to reproduce:
The cause seems to be in
Suggested fix: add
Edit @Archeia, small demo: view/download bug-1ItemCat.zip (Google Drive) [984 KB].
- Make a new project.
- Disable the Item, Armor, and Key Item categories on the System 2 tab in the database.
- Give the party enough Weapons to scroll the inventory list, e.g.
$dataWeapons.forEach(item => { if (item?.name) $gameParty.gainItem(item, 1); });
- Open the inventory in-game and scroll to the bottom of the list.
The cause seems to be in
Scene_Item.prototype.createItemWindow: if there is only one category available, the category window is removed and the item list window has its height increased. However, the contents of the item list window are not recreated to match the new height, meaning that the bottom row-and-a-bit is cut off.Suggested fix: add
this._itemWindow.createContents(); immediately after the height change in Scene_Item.prototype.createItemWindow.Edit @Archeia, small demo: view/download bug-1ItemCat.zip (Google Drive) [984 KB].
Confirmed. We'll fix this bug on the next update!
Thank you @caethyril for the sample project too, that made it much faster!
Thank you @caethyril for the sample project too, that made it much faster!
Original thread: https://forums.rpgmakerweb.com/threads/item-window.138611/