Yanfly's Sprite offset not working with Galv's Cam Control.

So, I use Galv's cam control quite a bit, but I've run into some issues while using that and Yanfly's Sprite Offset.

I'm using the sprite offset in two cases: one NPC brings the character closer in order to explain something to them, and another character moves in close and gives the player a kiss on the cheek.

Problem is when I try to playtest, it doesn't load at all and just says: this. spriteOffsetX is not a function.

I can't seem to find any other plugins besides the Yanfly one that does what I want.
It's always good to provide a screenshot of the error, console output if it's not the same as the error screen (press f8 while in game) and screenshot of the plugin list.
It's always good to provide a screenshot of the error, console output if it's not the same as the error screen (press f8 while in game) and screenshot of the plugin list.

My bad. Here's some better info:

I'm testing in a brand new project with no plugins loaded other than Galv's Cam Control and Yanfly's Sprite Offset. Here's how I set up the test:

upload_2019-1-18_18-0-5.png


My Plugins list:

upload_2019-1-18_18-1-7.png


As soon as I interact with the slime object thing, I can see it instantly doing the sprite offset, but then it goes immediately to this:

upload_2019-1-18_18-2-12.png
Looking around, you can swap the two plugins. If that doesn't fix the issue, I can safely say these two plugins are incompatible. And due to the way Galv's plugin is written, it would be a pain to fix the issue.
Looking around, you can swap the two plugins. If that doesn't fix the issue, I can safely say these two plugins are incompatible. And due to the way Galv's plugin is written, it would be a pain to fix the issue.

Ah, damn. I might see if I can get in contact with Galv and see if I can commission him to make it compatible.

Swap the two plugins? You mean use different ones, right? Nothing I've found does the same things I like as well as Galv's Cam so I want to keep that one for sure. I have found some alternatives to Yanfly's Sprite offset one, but they're more annoying. With Yanfly's one, I can change the offset through a script call during a Set Move Route. That way I could do any sprite offset stuff all in my cutscene events. With the others, I have to actually use a plugin command on the actual event I want to use. I suppose I can still do it, but I'd have to use switches or something to tell them when to offset each time.
I meant swap them inside the plugin manager, plugin order is sometimes vital.
I meant swap them inside the plugin manager, plugin order is sometimes vital.

Yeah, tried swapping them. No good. It's still doable with alternatives, but like I said, I'd need a switch for every time I use the offset and a new event page on each character that is then being offset. It's a bit annoying, but oh well, I guess.
I know this is the mother of all necros but if I make a new thread google will show you this one with no resolution.

Code:
(function () {
  Game_CharacterBase.prototype.screenX = function () {
    var value = Yanfly.EvSpOf.Game_CharacterBase_screenX.call(this);
    if (typeof this.spriteOffsetX === "function") {
      value += this.spriteOffsetX();
    }
    return Math.round(value);
  };
})();

This fixes it.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-sprite-offset-not-working-with-galvs-cam-control.104596/