Issue with Yanfly Message Backlog

Hi, I am having an Issue with Yanfly's message backlog.
It seems that no matter how I try to change the scroll speed in the plugin params, it refuses to apply changes.
Also, the scroll bar isn't scrolling properly.

http://yanfly.moe/2018/06/08/yep-167-message-backlog-rpg-maker-mv/

i'm using mv 1.6.1 and current version of this plugin.
please show us a screenshot of your plugin manager
most likely you have either renamed the plugin file or have the wrong order or an incompatibility with other plugins.
Sure, here's a video I made demonstrating the scrolling speed. I tried to change it to 0 to make the scrolling faster, but still it gives me the same scrolling speed as the default, I can't set it to lower than 0 though.
@cedr777, I thought higher number mak it goes faster. Why do you need backlog to go faster? I thought you intended players to read them.
Why? To make it easier for the player to backread a specific dialogue, that's why.
Okay from playing around a little bit with it this is what I found out:
  • The speed seems only to affect the scroll speed from when you press on either the top or bottom of the log
  • Using the scroll on the mouse or the arrows seems to always move it by about one line each tick
  • The scroll bar only seems to appear/update when using the arrow keys
EDIT: I just looked at the code a bit and the speed argument is indeed only used in the "processTouch"-function. The plugin does not make any changes to the "processWheel"-function at all.
Nice find @Magnus0808 !

With that in mind, couldn't you just extend the processWheel function in Yanfly's MessageBacklog window to take the speed argument into account when you scroll, like this?

Code:
/*:
 * @plugindesc Updates Yanfly's MessageBacklog script by adding logic to consider Scroll Speed settings under scroll wheel
 * @author Traveling_Bard
 *
 * @help This plugin does not provide plugin commands.
 */
(function() {
Window_MessageBacklog.prototype.processWheel = function() {
    if (this.isOpenAndActive()) {
        var threshold = 20;
        if (TouchInput.wheelY >= threshold) {
            this.scrollDown();
            this._touchHold = Yanfly.Param.MsgBacklogScrollSpd;
        }
        if (TouchInput.wheelY <= -threshold) {
            this.scrollUp();
            this._touchHold = Yanfly.Param.MsgBacklogScrollSpd;
        }
    }
};
})();

Edit: Magnus' is way cooler & far more complete of an answer 🙂
I made some fixes for YEP_X_MessageBacklog.
It fixes the following two things:
  • Now updates the scrollbar everytime you scroll
  • The 'Scroll Speed' now also affects scrolling with the arrow keys
Code:
//=============================================================================
// Fixes for Yanfly's Message Backlog
// MRP_YEP_X_MessageBacklog_Fixes.js
// By Magnus0808 || Magnus Rubin Peterson
//=============================================================================

/*:
 * @plugindesc Fixes for YEP_X_MessageBacklog.
 * @author Magnus0808
 *
 * @help Place after YEP_X_MessageBacklog. This fixes the following things:
 *         * Now updates the scrollbar everytime you scroll
 *         * The 'Scroll Speed' now also affects scrolling with the arrow keys.
 */
 
 var Imported = Imported || {};
 Imported.MRP_YEP_X_MessageBacklog_Fixes = true;
 
 var MRP = MRP || {};
 MRP.YEP_X_MessageBacklog_Fixes = MRP.YEP_X_MessageBacklog_Fixes ||{};
 
(function() {
       
    //-----------------------------------------------------------------------------
    // Window_MessageBacklog
    //
    // Changes to Window_MessageBacklog
    MRP.YEP_X_MessageBacklog_Fixes.Window_MessageBacklog_scrollUp = Window_MessageBacklog.prototype.scrollUp;
    Window_MessageBacklog.prototype.scrollUp = function() {
        MRP.YEP_X_MessageBacklog_Fixes.Window_MessageBacklog_scrollUp.call(this);
        if (this._scrollSprite) this._scrollSprite.updatePosition();
    };
   
    MRP.YEP_X_MessageBacklog_Fixes.Window_MessageBacklog_scrollDown = Window_MessageBacklog.prototype.scrollDown;
    Window_MessageBacklog.prototype.scrollDown = function() {
        MRP.YEP_X_MessageBacklog_Fixes.Window_MessageBacklog_scrollDown.call(this);
        if (this._scrollSprite) this._scrollSprite.updatePosition();
    };
   
    Window_MessageBacklog.prototype.processCursorMove = function() {
        var longPressed = false;
        if (this.isCursorMovable()) {
            var lastIndex = this.index();      
            if (Input.isLongPressed('down')) {
                if(this._touchHold <= 0) {
                    longPressed = true;
                    this._touchHold = Yanfly.Param.MsgBacklogScrollSpd;
                    this.cursorDown(Input.isTriggered('down'));
                }
            } else if (Input.isRepeated('down')) {
                this.cursorDown(Input.isTriggered('down'));
            }
           
            if (Input.isLongPressed('up')) {
                if(this._touchHold <= 0) {
                    longPressed = true;
                    this._touchHold = Yanfly.Param.MsgBacklogScrollSpd;
                    this.cursorUp(Input.isTriggered('up'));
                }
            } else if (Input.isRepeated('up')) {
                this.cursorUp(Input.isTriggered('up'));
            }
           
            if (Input.isRepeated('right')) {
                this.cursorRight(Input.isTriggered('right'));
            }
            if (Input.isRepeated('left')) {
                this.cursorLeft(Input.isTriggered('left'));
            }
            if (!this.isHandled('pagedown') && Input.isTriggered('pagedown')) {
                this.cursorPagedown();
            }
            if (!this.isHandled('pageup') && Input.isTriggered('pageup')) {
                this.cursorPageup();
            }
            if (this.index() !== lastIndex && !longPressed) {
                SoundManager.playCursor();
            }
        }
    };
})();

EDIT: @Traveling Bard Oh you also replied at the same time 😛 Just from looking at your solution it does not seem to actually do anything. The
this._touchHold is used to limit how fast you can scroll. (which is way a higher number -> slower speed) It is pretty much a countdown. In your solution you do not make a check to see if it is 0 or less, so it does nothing.

The thing about the wheel is that is checks how much you have moved the wheel and if it is above the threshold then it will scroll. So the speed depends on how much you scroll with the wheel, so I do not really think it needs to be affected by the Scroll Speed tbh 😂
Umm, forgive me but I tried it with the new plugin fix active but I can't seem too notice a difference with the scrolling speed. (it still advances/forwards it by one line each time.)
I have the scrolling speed set to 0 which i think is the fastest.
however i do notice that the scrollbar now follows the scrolling movent each time i move the mouse wheel now, which is vert good.
EDIT: btw, my maximum entriesis set to 20 in the plugin parameters which is the default i think.
How do you scroll? The "Scroll Speed" does NOT affect scrolling with the mouse wheel. It affects the scrolling with the arrowkeys and mouse clicks.
Ah I see. I tried both the mouse wheel to scroll and the arrow keys as well. I have set the scrolling speed to 0, but they both seem to advance or back the log by one line each.
Did you hold down the arrow key? Just clicking it once while still only advance the log by one line. (as it should right?)
Ah, i see. yeah it does advance the text by several lines when i press and hold the arrow key.
Anyway it's no big deal, as I can also use the PgUp and PgDn key to get to where I want to in the backlog fast.
Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-yanfly-message-backlog.108103/