MV (EDIT:Solved!) RPGMaker MV modern algebra extra movement frames plugin help

Hello!

I am currently using modern algebra's Extra Movement Frames Plugin which works perfectly except due to me using a larger spritesheet, the save files look kinda wonky. How do I make sure that only one sprite appears here? Thank you in advance!

Screen Shot 2023-05-30 at 1.10.28.png


EDIT: I meddled with the code and figured it out so problem solved! Thank you!

Code fix adapted from Galv's Character Frames plugin, full credit to him!!!! I only used this plugin instead because it had a function I needed
😅
Code:
    // Draw Char in menus
    ModernAlgebra.EMF.ModernAlgebra_Window_Base_drawCharacter = Window_Base.prototype.drawCharacter;
    Window_Base.prototype.drawCharacter = function(characterName, characterIndex, x, y) {
        var setFrame = characterName.match(/\%\((.*)\)/i);

        if (setFrame) {
            this._cframes = Number(setFrame[1]);
            var f = this._cframes;

            var bitmap = ImageManager.loadCharacter(characterName);
            var big = ImageManager.isBigCharacter(characterName);
            var pw = bitmap.width / (big ? f : f * 4);
            var ph = bitmap.height / (big ? 4 : 8);
            var n = characterIndex;
            var sx = (n % 4 * 3 + 1) * pw;
            var sy = (Math.floor(n / 4) * 4) * ph;
            // Adjust sx to show the first frame
            sx = 0;
            this.contents.blt(bitmap, sx, sy, pw, ph, x - pw / 2, y - ph);
        } else {
            ModernAlgebra.EMF.ModernAlgebra_Window_Base_drawCharacter.call(this,characterName,characterIndex,x,y);
        };
    };

    ModernAlgebra.EMF.SpriteCharacter_setCharacterBitmap = Sprite_Character.prototype.setCharacterBitmap;
    Sprite_Character.prototype.setCharacterBitmap = function() {
        var setFrame = this._characterName.match(/\%\((.*)\)/i);
        if (setFrame) {
            this._cframes = Number(setFrame[1]);
            this._character._spattern = 0;
            var f = this._cframes;
            this._character._patSpd = eval(ModernAlgebra.EMF.y);

        } else {
            this._cframes = 3;
            this._character._spattern = 1;
            this._character._patSpd = 0;
        };
        this._character._cframes = this._cframes;
        ModernAlgebra.EMF.SpriteCharacter_setCharacterBitmap.call(this);
    };
Bump (if that's ok!) I still have yet to find a fix 🙁
Bump (if that's ok!)
Technically, we're supposed to wait 72 hours - you may want to review the forum rules.

To your point...have you checked whether the plugin author is still active on that other forum to address your question? This is quite an old plugin - older, actually, than the current version of MV, which broke quite a few plugins when it was released.

It might be easier to test out one of the other plugins with this functionality rather than ask for help scrutinizing a specialized and out of date plugin.

Just my two cents 🙂
Moved to: Plugin Support

[bump]@cirnoe[/bump]
EDIT: I meddled with the code and figured it out so problem solved! Thank you!
If you've managed to solve it, it would be nice if you could post your solution here - this will help anyone searching for this problem in the future.
If you've managed to solve it, it would be nice if you could post your solution here - this will help anyone searching for this problem in the future.
sorry for late reply, I've done so 🙂

Original thread: https://forums.rpgmakerweb.com/threads/edit-solved-rpgmaker-mv-modern-algebra-extra-movement-frames-plugin-help.157920/