Yanfly's Save Event Locations And Mog's Pickup & Throw Plugins [SOLVED]

Heyla, again!

So, I'm trying to use Yanfly's Save Event Location script (https://yanflyengineplugins.itch.io/save-event-locations) with Mog's Pickup & Throw script (https://atelierrgss.wordpress.com/rmv-pick-up-and-throw/). The version of RM I'm using is 1.6.2, but the project file is apparently 1.5.0. My goal is to be able to pickup and throw an object on the map, leave, then come back and find it where I left it. Except, instead of doing this, what's happening, instead, is that Yanfly's script will save where the player character was standing when the object was thrown, and move the object there. Here are screenshots of what I mean:

Here's the player character about to throw the object:

1576904219028.png


Here's the player character having tossed the boulder onto the sandy spot:

1576904266837.png


When I leave and come back, the boulder is moved to where the player character was standing when the boulder was thrown (ignore the second boulder towards the bottom; that's just Galv's Event Spawner working the way it's supposed to):

1576904330114.png


My hope is that someone with actual javascripting expertise (as opposed to me, who has none) could figure out what's causing this to happen and be able to figure out how to get Yanfly's script remember where the object was thrown to, rather than where it was thrown from.

Thanks in advance for any and all help,
TheKeeper
Please show some screenshots of your event so we can see how you are using each of the plugins.

I suspect your issue is that you are telling it to remember the event location at the time it is thrown, rather than at the time it lands. But I can't be sure without seeing your event.

Note - your images are a bit hard to see because you've captured your entire desktop. Use Alt+PrintScreen to create images of your events. This will capture the entire event window and nothing more, which makes the image large enough for us to read text easily, while excluding all the extra background stuff that is of no use. Do not crop the images any further, as when people do this, they often remove important information.
Thanks for the tip on taking screenshots! Didn't know about Alt + Print Screen command to only capture the current window. Here's the event:

1576914914108.png
I haven't tested this, but please try adding as a new plugin - call it SEL_PUT_Patch.js (name doesn't really matter, but that stands for Save Event Location / Pick Up Throw)

Code:
var _selput_Game_Event_updateJump = Game_Event.prototype.updateJump;
Game_Event.prototype.updateJump = function() {
  _selput_Game_Event_updateJump.call(this);
  if (this._jumpCount === 0) {
    this.saveLocation();
  }
};

This should cause the event's location to be saved at the end of the throw.

What I'm not certain about is if I've done the alias correctly, as there's no explicit Game_Event.prototype.updateJump function - but I think it should pick up the inherited function from Game_CharacterBase. If I've done it correctly, it should also work with any other plugins you have that have modified this function for events only.

If you get any errors, or if there are no errors but it still doesn't work, please open the console (F8 when playing, then head to Console tab) and grab a screenshot of that.
It worked! Thank you, so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-save-event-locations-and-mogs-pickup-throw-plugins-solved.116470/