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
603
Reaction score
1,410
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
603
Reaction score
1,410
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

The most rewarding part of making custom body character parts is absolutely not making the masks work. Somebody please put me out of my misery.
Any commercial devs here ever mess with Gamejolt? Been contemplating making my games available there but don't know if it's worth the effort or not.
Social distancing taught me of how much of not a loner I am. Dammit, I miss seeing my friends...
Happy 4th of July all. Anybody have plans? Mine here is staying home away from the virus. Still a nice 3 day weekend.
The project I am working on is going great at the moment. I'm hoping everyone is having as successful a time as I am. :)

Forum statistics

Threads
99,258
Messages
963,571
Members
130,847
Latest member
Xephiers
Top