[MSX] Inventory Categories

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
MSX_InventoryCategories v2.0


Introduction
I asked for this previously but then I said "Meh, is better if I do this myself" and... ta-dah!! :)

Features
This plugin allow you to add new categories in your inventory. Also provide a notetag to set the correct category for items, weapons and armors.

Screenshots

How to Use
Parameters explanation

Two-Level Menu
Add a new layer in the Item Menu.
- Default Items command now contain the list of all categories related to Items.
- Default Weapons command now contain the list of all categories related to Weapons.
- Default Armors command now contain the list of all categories related to Armors.


TL Item/Weapon/Armor IDs
The ID (1 to 50) of each category you want in the relative sub menu.


Category X Name
The name of the category.
Use the following name to add default categories in list
- Items -> for default items list
- Weapons -> for default weapons list
- Armors -> for default armors list
- Key Item -> for default key item list


Category X Hide If Empty
Hide the category X if no items inside.

! X is the ID (1 to 50) of the category !

IMPORTANT NOTES
If default command are hidden or Two Level Menu is enabled all uncategorized item aren't shown in any list.

Notetag

Item/Weapon/Armor Notetag:

<Category: X>

Where X is the name of the category you want the item.
Example:
<Category: Cooking>

Demo
-

Plugin Download
MSX_InventoryCategories
(Right-click -> Save link as)

Changelog
v2.0
New:
  • Improved control of each category (up to 50).
  • Can hide category if is empty.
This new version change how the categories are read from the plugin.
Each category have is own setting for "Name" and "Hide if Empty" param.


v1.2
New:
  • Change the way the categories are read by the plugin. Can now have category names with more than one word.
v1.1.2
BugFix:
  • Game freeze caused by onSellCancel function.
v1.1.1
BugFix:
  • Game freeze caused by onItemCancel function.
  • Actor window now appear correctly over other windows.
v1.1
New:
  • Weapon and Armor categorization.
  • Enable/Disable two-level menu.

Credit and Thanks
- Melosx

Author's Notes
- Free for use with both Free and Commercial Projects.
- No problem with YEP_ItemCore.
 
Last edited:

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
Ah, I've been looking for something like this for awhile now. Thanks so much! What are your terms of usage by the way?

EDIT: Hm, it shows undefined when I go to the item menu with Yanfly's Item Core script. I even tried it on a blank project with just Yanfly's Engine and Item Core script and got the same thing.

 
Last edited by a moderator:

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Ah, I've been looking for something like this for awhile now. Thanks so much! What are your terms of usage by the way?

EDIT: Hm, it shows undefined when I go to the item menu with Yanfly's Item Core script. I even tried it on a blank project with just Yanfly's Engine and Item Core script and got the same thing.
...
That's weird. uhm...
Can I see a screenshot of your Plugin Manager config?

 


EDIT: Rename the plugin file as    MSX_InventoryCategories.js  , I think this is the problem. I forgot to say on the How to sue section, sorry ^-^
 
Last edited by a moderator:

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
EDIT: Rename the plugin file as    MSX_InventoryCategories.js  , I think this is the problem. I forgot to say on the How to sue section, sorry ^-^


Yep, that fixed it, thanks! In the future it might be a good idea to upload the plugin somewhere if it requires a specific name.
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Yep, that fixed it, thanks! In the future it might be a good idea to upload the plugin somewhere if it requires a specific name.
Edited first post.
Sorry again for the inconvenience
 

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
Sorry to bother you again, but I have another question. Would it be possible to make it so that you can categorize weapons and armors as well? It seems to only work with entries in the items tab.
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Plugin Update v1.1


Changelog


v1.1 

  • Weapon and Armor categorization.
  • Enable/Disable two-level menu.
  • Show/Hide default categories

New Parameters


- Two-Level Menu (v1.1) -


Add a new layer in the Item Menu. 
  - Default Items command now contain the list of all categories related to Items.
  - Default Weapons command now contain the list of all categories related to Weapons.
  - Default Armors command now contain the list of all categories  related to Armors.
  - Key Item command is now inside Item categories list, at the 
 


- Show/Hide Default Categories (v1.1) -



   - Default categories Items, Weapons, Armors can now be hidden.
   - Default category Key Items is is always shown, at the end of  all categories.
 

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
Encountered a bug with two level menu. The game freezes when you select a category and try to exit.
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Plugin Update v1.1.1

Changelog


BugFix:

  • Game freeze caused by onItemCancel function.
  • Actor window now appear correctly over other windows.
 

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
Thanks! Will keep you updated if I find any more bugs.
 

sol003

Villager
Member
Joined
Jun 28, 2016
Messages
13
Reaction score
5
First Language
Filipino
Primarily Uses
Is it possible to have the categories separated if they have an overlap with each other between items, weapon and armor?


Example: Both weapon and armor have a category called Common, which are vendor-obtained items. A Longsword is a Common, but it will show up in either categories regardless if it was an armor or not.


Additionally, it appears that while selling, if you enter the category to sell something and cancel out, the category list is not disposed properly, even overlapping over the Item, Weapon and Armor selection which makes it look like the game froze.

Game 2016-10-17 21-26-52-51.png
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Plugin Update v1.1.2

Changelog


BugFix:

  • Game freeze caused by onSellCancel function.
 

Vassim74

It's a Secret!
Veteran
Joined
Jan 7, 2014
Messages
115
Reaction score
83
First Language
English
Primarily Uses
RMMV
Seems the plugin doesn't like Yanfly's Shop Menu Core, as I get this error when I try to sell.


I've pasted the error log from the console in the spoiler below if that helps.

 

pixi.js:20314 Deprecation Warning: DisplayObjectContainer has been shortened to Container, please use Container from now on.
pixi.js:20096
    Pixi.js 4.0.0 - ✰ WebGL ✰      http://www.pixijs.com/ ♥♥♥



pixi.js:20314 Deprecation Warning: DisplayObjectContainer has been shortened to Container, please use Container from now on.
rpg_managers.js:1756 TypeError: Cannot read property 'setItemWindow' of undefined
    at Scene_Shop.onCategoryOk (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/plugins/MSX_InventoryCategories.js:402:34)
    at Window_ShopCategory.Window_Selectable.callHandler (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:896:31)
    at Window_ShopCategory.Window_Selectable.callOkHandler (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:1165:10)
    at Window_ShopCategory.Window_Command.callOkHandler (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:1422:51)
    at Window_ShopCategory.Window_Selectable.processOk (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:1150:14)
    at Window_ShopCategory.Window_Selectable.processHandling (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:1021:18)
    at Window_ShopCategory.Window_Selectable.update (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:978:10)
    at Window_ShopCategory.Window_ItemCategory.update (file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_windows.js:1877:41)
    at file:///D:/Pete/Games/PC/Games/Steam/steamapps/common/RPG%20Maker%20MV/Projects/Tower/js/rpg_core.js:6485:19
    at Array.forEach (native)rpg_managers.js:1756 SceneManager.catchException
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
@Vassim74Place the plugin below Yanfly's Engine plugins
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
690
Reaction score
205
First Language
English
Primarily Uses
@Melosx


Hi I really love this plugin so simple yet so need for simple customization. 


This may come of as bit rude however lines 139-141 which allow for the custom naming of categories are set up in a way that allows for only one word categories like "Food" or "Armor" but not for multi word categories like "Blacksmithing and Crafting".  I recommend rectifying that by simple changing the the array separator form " " to ", " this way multiple word categories can be made.
 

Maidlyn

Veteran
Veteran
Joined
Jun 9, 2016
Messages
354
Reaction score
114
First Language
English
Primarily Uses
RMMV
I agree with Zarsla on the being able to make category names more than one word. Overall, nice plugin though! :)  
 

Melosx

Master of Bananas
Veteran
Joined
Apr 10, 2012
Messages
50
Reaction score
27
First Language
Italian
Primarily Uses
Plugin Update v1.2

Changelog


Add:

  • Change the way the categories are read by the plugin. Can now have category names with more than one word.

!!IMPORTANT NOTE!!


After the update of the plugin edit Item Categories, Weapon Categories & Armor Categories and replace the space with a comma.
 

RhysO101

Veteran
Veteran
Joined
Mar 31, 2015
Messages
72
Reaction score
9
First Language
English
Primarily Uses
N/A
Nice and simple plugin.


Looks like something I would use.
 

Michael Caiola

The Stone Bull
Veteran
Joined
Sep 14, 2016
Messages
392
Reaction score
74
First Language
English
Primarily Uses
I love this plugin. The inventory screen has bothered me for a while now and I love the layout this gives.


I have a request. I'd like it so categories only show up if there are items in the inventory of that category. I have about 20 weapon types and the party will only start out with weapons from like 3 categories. Having 20 categories to sift through when there are only a few weapons would get really annoying for the player.
 

VesperCire

Veteran
Veteran
Joined
Feb 9, 2016
Messages
36
Reaction score
1
First Language
English
Primarily Uses
RMMV
Nice plugin! Is there a way for Key Items to not be a sub-category in items?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.

Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
World Of Final Fantasy Livestream~!
(Ft. Kaliga)
So my office building has 8 individually rented offices in it; 3 of which are social workers and 2 are marriage therapists... Unsurprisingly it always sound very angry out there. Glad I have my own private entrance. :LZSexcite: :thumbsup-right:
I wonder if there's ever been an art challenge that involves drawing faces from the generator.

Forum statistics

Threads
94,373
Messages
920,395
Members
124,142
Latest member
Vaporware_Studios
Top