MV Can't save in game if a plugin is ON...

Yeah, I'm using a CT_Bolt small plugin that allows you to "attach" pictures to any event. Everything was working right, I even made a popup system that uses the plugin, then I realized that I cant save the game anymore cause this plugin. I open the save menu and choose save but the thing only plays the buzzer sound effect, if the plugin is OFF I can save normally, this's really weird tbh.

CT_Bolt Plugin
Sounds like it's running into an error when trying to save. You could open the dev tools window (F8 or F12 during playtest) and check the Console tab for any error messages.

I would guess it's related to storing the sprite reference on the character:
JavaScript:
		this._character._sprite = this;
RMMV requires all save data to be stringifiable, which I think disqualifies sprites? However, it looks to me like that code only ever references _sprite to check its height. So you may just be able to do this instead (untested):
Spoiler: edited code
JavaScript:
	$_$['Sprite_Character.prototype.updateBitmap'] = Sprite_Character.prototype.updateBitmap;
	Sprite_Character.prototype.updateBitmap = function() {
		var changed = this.isImageChanged();
		$_$['Sprite_Character.prototype.updateBitmap'].apply(this, arguments);
		if (changed)
			this.bitmap.addLoadListener(onLoad.bind(this));
	};

	$_$['Sprite_Picture.prototype.updatePosition'] = Sprite_Picture.prototype.updatePosition;
	Sprite_Picture.prototype.updatePosition = function() {
		var picture = this.picture();
		if (!picture._character){
			$_$['Sprite_Picture.prototype.updatePosition'].apply(this, arguments);
		}else{
			$gameMap.zoom = $gameMap.zoom || {};
			$gameMap.zoom.x = $gameMap.zoom.x || 1;
			$gameMap.zoom.y = $gameMap.zoom.y || 1;
			this.x = (Math.floor(picture._character.screenX())+Math.floor(picture.x()))*$gameMap.zoom.x;
			this.y = (Math.floor(picture._character.screenY() - picture._character._spriteHeight)+Math.floor(picture.y()))*$gameMap.zoom.y;
		}
	};

	var onLoad = function(bmp) { this._character._spriteHeight = this.height; };
Hi @caethyril. I made that edit but then Visual Studio Code is throwing this error.
Did you try it in the actual game? You can clearly see there's one open and one close brace there - maybe your editor doesn't like them being on the same line, but it wouldn't affect the code running.

It's hard to tell from your screenshot, did you place caethyril's code inside of the existing plugin's function and it still has at the bottom
Code:
})(CTB.PictureFollowsMV, this);
?
Did you try it in the actual game? You can clearly see there's one open and one close brace there - maybe your editor doesn't like them being on the same line, but it wouldn't affect the code running.

It's hard to tell from your screenshot, did you place caethyril's code inside of the existing plugin's function and it still has at the bottom
Code:
})(CTB.PictureFollowsMV, this);
?
Ah, Sorry, I am incredibly stupid. I thought I had to replace everything, including that last line of code. Now is working fine and I can save again. Thanks guys!

EDIT: Okay, with @caethyril edit the save problem was fixed, but sadly the plugin is not working properly. If a event has a picture attached to it, when you open and close the menu the picture just disappear, not matter if you are showing the pic in a parallel process.
My guess is the sprite doesn't save so it won't be back if you load a save or go to another scene.
You'll need a script that constantly checks and adds the sprite.
MOGHunter has a plugin that works perfectly for this, the problem is that the indicators Z buffer is too low, so the indicators pictures are affected by things like tint screen and that looks terrible imho.

Original thread: https://forums.rpgmakerweb.com/threads/cant-save-in-game-if-a-plugin-is-on.171265/