ProcraftyNation's Weight Limit with Yanfly's Item Discard not updating weight.

Br0wnSyndrome

Drunk Programmer
Member
Joined
Dec 24, 2016
Messages
18
Reaction score
10
First Language
English
Primarily Uses
RMMV
The functionality is all there, as the item does get discarded, but the weight doesn't decrease instantly.
The updated weight is only shown when the scene is closed and re-opened.
Any way I could make it update instantaneously, without having to close and reopen the scene?
upload_2018-1-27_15-3-50.png
upload_2018-1-27_15-5-58.png

Any help for updating the "weight", even if its done within the actual .js files would be appreciated!
 

Attachments

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
604
Reaction score
1,421
First Language
English
Primarily Uses
RMMV
I would love to help with this, but I can't find ProcraftyNation's Weight Limit plugin. (The link from the forum page does not work.) Do you have a current link to a new ProcraftyNation site for this?

It should be a simple fix of putting a window refresh into Yanfly's Item Discard in the function Scene_Item.prototype.performDiscardItem. Without seeing ProcraftyNation's plugin, I'm not sure which window to refresh.
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
604
Reaction score
1,421
First Language
English
Primarily Uses
RMMV
Okay, I tested this with only YEP_ItemCore, YEP_X_ItemDiscard, and DEX_WeightLimit, and it worked in a blank project, regardless of if Weight Limit was above or below the Yanfly plugins in the Plugin Manager. (Though I noticed even before fixing that it looks nicer if Weight Limit is below the Yanfly plugins.)

In the YEP_X_ItemDiscard.js file, open it in your favorite text or code editor and look for "Scene_Item.prototype.performDiscardItem". The first line of the function reads "$gameParty.loseItem(item, quantity);". Add a new line below that (above the "if" statement) and type the following:
Code:
this._weightLimitWindow.refresh();
That should get you sorted out. If not, please provide your whole plugin list (a screenshot is preferred).
 

beibs

Warper
Member
Joined
Jan 1, 2013
Messages
2
Reaction score
0
First Language
Portugues
Primarily Uses
Hi,

I'm having some problems with your plugin.

If I add items to the storage using the mouse, I can add them and remove them without problems.
Now, if I go by the keyboard by adding one at a time, it hangs at 10 and does not add any more. Items not added are removed.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top