Pictures stuck on battle result screen - Moghunter's Battle Result with Yanfly Plugins - RMMV

Discussion in 'Javascript/Plugin Support' started by Accatosh, Jan 27, 2019.

Thread Status:
Not open for further replies.
  1. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    Hello!
    I am using RPG Maker MV and I've got a problem with Moghunter's Battle Result.
    I am also using these plugins:
    [​IMG][​IMG] [​IMG]

    And the problem is that some of the picture made with the plugins by Yanfly doesn't disappear when the battle result screen shows up. I have marked the pictures that I want to disappear with red rectangles. The pictures that are stuck are from the following plugins:
    Here's a screenshot:
    [​IMG]

    Can someone help me fix this problem please?

    Please tell me if I'm explaining things weird. I will try my best to explain it in another way.

    Thank you in advance
     
    Last edited: Feb 3, 2019
    #1
  2. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #2
  3. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #3
  4. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #4
  5. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #5
  6. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #6
  7. Johnboy

    Johnboy Veteran Veteran

    Messages:
    317
    Likes Received:
    104
    Location:
    Canadia
    First Language:
    English
    Could try placing Mog's plugins after all the yanfly ones. That has worked for some in the past.
     
    #7
  8. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    Thank you for your answer!

    I'm sorry, but that didn't work.
     
    #8
  9. Johnboy

    Johnboy Veteran Veteran

    Messages:
    317
    Likes Received:
    104
    Location:
    Canadia
    First Language:
    English
    Most likely you will need a compatibility patch to make them play nice with each other. Moghunter and Yanfly plugins are notorious for being incompatible.
    Sorry I couldn't be more help.
     
    #9
  10. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    Okay, thank you anyway.
    I might have a temporary solution though.
    But I would rather fix the problem with scripts.
     
    #10
  11. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #11
  12. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #12
  13. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #13
  14. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #14
  15. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #15
  16. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    bump
     
    #16
  17. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    103
    First Language:
    Danish
    Primarily Uses:
    RMMV
    Here use this plugin. Just place it after MOG_BattleResult, YEP_BattleEngineCore, and YEP_BattleStatusWindow if used.
    It makes the BattleManager enter the victoryPhase used by Yanfly's plugins. This makes most of Yanfly's stuff hidden.
    However, because of the way the BattleStatusWindow work, we have to hide that one ourselves beside the victoryPhase.

    Oh well everything is done in the plugin so just plug and play :)

    Code:
    //=============================================================================
    // MOG YEP Battle Result Hide
    // MRP_MOG_YEP_BattleResultHide.js
    // By Magnus0808 || Magnus Rubin Peterson
    //=============================================================================
    
    /*:
     * @plugindesc Compatibility between MOG_BattleResult and some of Yanfly's plugins.
     * @author Magnus0808
     *
     * @help This plugin should be placed after MOG_BattleResult, YEP_BattleEngineCore,
     * as well as YEP_BattleStatusWindow if used.
     *
     * This plugin makes adds so when the battle result window is created it makes
     * the battle manager enter the victoryPhase from Yanfly's Battle Engine Core.
     * If YEP_BattleStatusWindow is used then this plugin will also hide the status
     * window.
     */
     
    var Imported = Imported || {};
    Imported.MRP_MOG_YEP_BattleResultHide = true;
    
    (function() {
        var MRP_BATTLERESULTHIDE_SB_CREATEBRESULT_OLD = Scene_Battle.prototype.createBResult;
        Scene_Battle.prototype.createBResult = function() {
            MRP_BATTLERESULTHIDE_SB_CREATEBRESULT_OLD.call(this);
            
            if(Imported.YEP_BattleEngineCore) BattleManager._victoryPhase = true;
            if(Imported.YEP_BattleStatusWindow)
            {
                this._statusWindow.hide();       
            }       
        };   
    })();
     

    Attached Files:

    #17
    Accatosh likes this.
  18. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    @Magnus0808
    Thank you for the plugin! Unfortunaly a bug was encountered. Here it is:
    upload_2019-3-22_21-52-52.png

    This is how I placed the plugins:
    upload_2019-3-22_21-55-28.png

    I have tried placing Moghunter's battle result over and under yanfly's battle results.
     
    #18
  19. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    103
    First Language:
    Danish
    Primarily Uses:
    RMMV
    The error is caused because you use Yanfly's VictoryAftermath. I could probably find a way to make them compatible, however I am not sure exactly how it is supposed to work with MOG_BattleResult as they are both plugins that change how the battle results are presented.

    How do you imagine they interact? :)
     
    #19
  20. Accatosh

    Accatosh Veteran Veteran

    Messages:
    51
    Likes Received:
    2
    First Language:
    Swedish
    Primarily Uses:
    RMMV
    @Magnus0808
    I apologize for causing unneeded trouble! It works perfectly when i turned Yanfly's VictoryAftermath off.
    Thank you for the plugin!
     
    #20
Thread Status:
Not open for further replies.

Share This Page