Dan's Daring Debugs & Discoveries

(Clearly not inspired by this thread by @ATT_Turan what are you talking about :LZSangel::LZSangel:)

Think of this thread as the accumulation and distribution of the knowledge I've gained messing around and adapting my projects into RPG Maker MV.

A lot of this is information that was curated to me while asking for help (the inverse of Turan's thread) and from me scrabbling through the depths of javascript hell, so I figured... why not make a thread for it to help other people. No man is an island, after all, and honestly it just makes me feel good to be useful in some small way.

I also see this as being a huge help for centralizing this information so things aren't just hidden in some obscure "help me!" threads of mine that nobody is ever going to look up.

Warning, though: I don't really do requests to fix scripts outright, since I'm quite a busy guy and I'm not terribly competent at making new javascript features - just lucky most of the time.

I also can't upload full scripts for Yanfly or anybody else behind a paywall due to their terms of service, so I can only put up the snippets I myself have modified and instructions on how to put them in to your version of the script.

I recommend these general tips:
  • Always make a backup of the original script in case something goes wrong
  • CTRL + F is your best friend, as it saves time when finding sections of the script you're editing.

This is also the prime place I will shout out relevant people who have helped me with certain issues, since those tweaks will be posted here too even if I didn't have a hand in editing the code personally.

-- BUGFIXES--​

Spoiler: TSR PopUp & Yanfly_X_ExtDoT Element Text Fix
(Discovered by: @TSR and Me)

An... interesting bug with TSR_Popup is that if you inflict elemental damage (weak/resist/immune) to a character who is currently suffering from a damage over time status, the elemental damage pop-up will stay attached to the damage numbers and will only get fixed by taking regular damage again.

This strange little visual bug can be very confusing for your players as it makes them think your poison states are somehow dealing elemental damage.

Here are two fixes, depending on if you are using Yanfly_X_ExtDoT or not.

If you do have Yanfly_X_ExtDoT installed, attach this code to the processDamageOverTimeStateEffect section, underneath if (value !== 0) {:
JavaScript:
this.result()._haveElementEffect = false

If you don't have Yanfly_X_ExtDoT installed:
JavaScript:
if (!Imported.YEP_X_ExtDoT) {
        //this.checkElementalPopup(preValue, value);   <<< THIS PART HERE
      }

Comment out this code in TSR_Popups to achieve the same result.

Spoiler: Victor Engine Action Dodge / Action States 'action.item is not a function' Fix
(Credit goes to @Poryg for this one)

This is a pretty severe fundamental bug that prevents Victor Engine's extremely useful Action Dodge/States function from working.

How do you fix it? Well...

JavaScript:
VictorEngine.getAllElements(subject, item).reduce...etc

CTRL + F to find this line, then change the "item" to:

JavaScript:
VictorEngine.getAllElements(subject, this).reduce...etc

Problem solved! If you see any of Victor's scripts shoot up this error with getAllElements, just change "item" to "this".

Spoiler: Victor Event Conditions Unusable Events Issue Fix
(Discovered by: @ATT_Turan )

Victor's Event Conditions has a catastrophic oversight in its coding that makes it useless.

To be precise, it only checks if the custom condition of its comment calls are true while ignoring database applied ones (and even blank conditions, so events with no checks don't appear either) - to quote Turan, the logic is completely wrong.

This renders map and troop events unusable unless you put in identifying code (eg. result = true or something like that - it ignores database applied conditions) for EVERY SINGLE EVENT ON EVERY MAP. This is a huge shock coming off of VX Ace, where it only adds extra conditions to events.

However, there is one easy step to completely fix it! Just save the following code as a JS file and put it below Event Conditions on your plugin set-up:

JavaScript:
Game_Event.prototype.meetsConditions = function(page) {
    var c = page.conditions;
    if (c.switch1Valid) {
        if (!$gameSwitches.value(c.switch1Id)) {
            return false;
        }
    }
    if (c.switch2Valid) {
        if (!$gameSwitches.value(c.switch2Id)) {
            return false;
        }
    }
    if (c.variableValid) {
        if ($gameVariables.value(c.variableId) < c.variableValue) {
            return false;
        }
    }
    if (c.selfSwitchValid) {
        var key = [this._mapId, this._eventId, c.selfSwitchCh];
        if ($gameSelfSwitches.value(key) !== true) {
            return false;
        }
    }
    if (c.itemValid) {
        var item = $dataItems[c.itemId];
        if (!$gameParty.hasItem(item)) {
            return false;
        }
    }
    if (c.actorValid) {
        var actor = $gameActors.actor(c.actorId);
        if (!$gameParty.members().contains(actor)) {
            return false;
        }
    }
    var condition = VictorEngine.EventConditions.getCustomCondition(page);
    if (condition)
        return eval(condition[1]);

    return true;
};

This wonderful little scriptlet by Turan will solve the issue with Event Conditions and make it function the same as in VX Ace.

-- MODS--
(Don't expect much here.)​

Spoiler: State Popup for TSR Popups

Spoiler: Vertical Order for Yanfly Turn Order Display
(Made by: Myself)

The default horizontal bar for Yanfly's Turn Order Display is pretty cumbersome. It's more forgivable for sideview battles, but as someone who uses a front-facing battle system it was getting in my way quite a bit.

So I made a mod to make it both vertical and auto-aligned it so it never shows more than 8 icons on the screen at once, as a way to prevent it from overlapping certain windows (I use Moghunter's Battle HUD, for reference.)

I should mention that this was designed to be used with Yanfly's Battle Core omitting battle log messages, as the turn order totem will overlap messages if you have traditional battle log messages turned on or not centered.

This also contains a bonus quick-and-dirty method of hiding certain icons for "object" enemies.

WARNING: This fix only works for DTB (default) battle systems. If you use any other type of battle system, it will not work. Not interested in fixing it, sorry.

IF YOU CANNOT FIND THE EXACT LINES IN PARTICULAR, PLEASE CTRL+F THE PARTS I HAVE DIRECTLY BROUGHT UP.

Spoiler: Step 1
STEP 1:

Change these specific lines of code -

Line 654
JavaScript:
    this._turnOrderDisplay[i].updateDestinationX(); // Replace the X with a Y.

Line 780
JavaScript:
this.updateDestinationX();  // Replace the X with Y.

Line 782
JavaScript:
this.x = this._destinationX;  // Replace the X with Y.

Line 812
JavaScript:
this.y = this._destinationY;  // Replace this Y with X.

Line 991 through 997
JavaScript:
// Change all the X's to Y, INCLUDING THE HEADER
Window_TurnOrderIcon.prototype.updateDestinationX = function() {
  if (!this.battler()) return;
  if (this.battler().isDead()) return;
  this._destinationX = 0;
  this.calculateDestinationXAlign(); // Except for this one!!
  this.calculateDestinationXIndex();

Line 1036 through 1044
JavaScript:
// Replace every X with a Y
Window_TurnOrderIcon.prototype.calculateDestinationXIndex = function() {
  var size = this.aliveMembersSize() - this.turnOrderDisplayIndex();
  var distance = this.width * size;
  if (this._direction === 'left') {
    this._destinationX -= distance;
  } else if (this._direction === 'right') {
    this._destinationX += distance;
  }
};

Spoiler: Step 2 (Big replacing chunks)
STEP 2 (Big replacing chunks):

Line 1128 through 1141, replace this:
JavaScript:
Window_TurnOrderIcon.prototype.destinationY = function() {
  var value = Yanfly.Param.TODPositionY;
  if (this._helpWindow && this._helpWindow.visible) {
    var cap = this._helpWindow.height;
    this._selectHeight = this._selectHeight ||
      Math.round(this.contents.height / 4);
    value = Math.max(value, cap + this._selectHeight);
  }
  if (!this.battler()) return value;
  if (this.battler().isSelected()) {
    value -= this._selectHeight;
  }
  return value;
};

with this instead:

JavaScript:
Window_TurnOrderIcon.prototype.destinationX = function() {
  var value = 20;
  if (this._helpWindow && this._helpWindow.visible) {
    var cap = this._helpWindow.height;
    this._selectHeight = this._selectHeight ||
      Math.round(this.contents.height / 4);
    value = Math.max(value, cap + this._selectHeight + 1200);
  }
  if (!this.battler()) return value;
  if (this.battler().isSelected()) {
    value += this._selectHeight + 5;
  }
  return value;
};

(Value 20 is the X position of the turn order totem. You can truthfully make it whatever number you want, as it shifts the location to another spot on the screen.)

--

Line 1143 through 1161, replace this:

JavaScript:
Window_TurnOrderIcon.prototype.updatePosition = function() {
  if (BattleManager._escaped) return;
  if (this._destinationX !== this.x) {
    var desX = this._destinationX;
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x > desX) this.x = Math.max(this.x - moveAmount, desX);
    if (this.x < desX) this.x = Math.min(this.x + moveAmount, desX);
    var cap1 = this.destinationY() - this.contents.height / 2;
    var cap2 = this.destinationY() + this.contents.height / 2;
    var moveAmount = Math.max(1, Math.abs(cap2 - this.y) / 4);
    if (this.x > desX) this.y = Math.max(this.y - moveAmount, cap1);
    if (this.x < desX) this.y = Math.min(this.y + moveAmount, cap2);
  } else if (this.destinationY() !== this.y) {
    var desY = this.destinationY();
    var moveAmount = Math.max(1, Math.abs(desY - this.y) / 4);
    if (this.y > desY) this.y = Math.max(this.y - moveAmount, desY);
    if (this.y < desY) this.y = Math.min(this.y + moveAmount, desY);
  }
};

with this instead:

JavaScript:
Window_TurnOrderIcon.prototype.updatePosition = function() {
  if (BattleManager._escaped) return;
  if (this._destinationY !== this.y) {
    var desY = this._destinationY;
    var moveAmount = Math.max(1, Math.abs(desY - this.y) / 4);
    if (this.y > desY) this.y = Math.max(this.y - moveAmount, desY);
    if (this.y < desY) this.y = Math.min(this.y + moveAmount + 70, desY);
    var cap1 = this.destinationX() + this.contents.height / 2;
    var cap2 = this.destinationX() - this.contents.height / 2;
    var moveAmount = Math.max(1, Math.abs(cap2 - this.y) / 4);
    if (this.y > desY) this.x = Math.max(this.x - moveAmount, cap1);
    if (this.y < desY) this.x = Math.min(this.x + moveAmount, cap2);
  } else if (this.destinationX() !== this.x) {
    var desX = this.destinationX();
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x < desX) this.x = Math.max(this.x + moveAmount, desX);
    if (this.x > desX) this.x = Math.min(this.x - moveAmount, desX);
  }
};

(Likewise, if you're editing the X position to be something other than 20, you should change the last bit to be something like:

Code:
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x > desX) this.x = Math.max(this.x - moveAmount, desX);
    if (this.x < desX) this.x = Math.min(this.x + moveAmount, desX);

As it'll look pretty goofy swinging through the screen when you bring up skill/item menus.

Spoiler: Step 3 (Limiting Icons)
STEP 3 (Limiting Icons):

In Window_TurnOrderIcon.prototype.aliveMembersSize, change:

JavaScript:
  var length = members.length;

to:

JavaScript:
  var length = 6;

Or whatever number you want, really. What changing the number does is limit the amount of icons on screen by scrolling the extras up offscreen. They'll scroll down then their turn has come and scroll offscreen when they're finished.

Spoiler: Step 4 (Dummy Enemy State)
STEP 4 (Dummy Enemy State - OPTIONAL):

Go into Game_Temp.prototype.battleTurnOrderAddActionActors and add this condition beneath if (battler.isHidden()) :

JavaScript:
    if (battler.isStateAffected(163)) continue;

And then do the same thing under AddPerformedActors 's if (battler.isHidden()):

JavaScript:
    if (battler.isStateAffected(163)) continue;

Replace 163 with your dummy state ID of choice.

Let's say you don't want a certain actor/enemy to show up on the Turn Order for any reason (they're a background object prop or are meant to be a non-physical extension of the player). This check will remove them from the Order lineup, provided you tag said enemy with the state before the fight starts / via a Passive States plugin.

-- Demos--
(Small mini-demos that I use to show off mechanics.)
​
Spoiler: Common Event Showcase

This shows off a few common event functions that I use in my games, such as:
  • Quick Swap​
  • Move Specific Actor to Leader Position​
  • Auto-facing towards specific actor in your follower caterpillar​
  • Input Check (ex. [Z] becomes [Enter] if you changed your keyboard, etc.)​
  • Rare Candy​
  • Escape Rope​
really nice addition to set this up 🙂

I try to watch this page of yours as it might come in handy 🙂
Updated the Victor Event Conditions section with Turan's tweak, since the original fix wasn't actually working lmao.
(Clearly not inspired by this thread by @ATT_Turan what are you talking about :LZSangel::LZSangel:)

Think of this thread as the accumulation and distribution of the knowledge I've gained messing around and adapting my projects into RPG Maker MV.

A lot of this is information that was curated to me while asking for help (the inverse of Turan's thread) and from me scrabbling through the depths of javascript hell, so I figured... why not make a thread for it to help other people. No man is an island, after all, and honestly it just makes me feel good to be useful in some small way.

I also see this as being a huge help for centralizing this information so things aren't just hidden in some obscure "help me!" threads of mine that nobody is ever going to look up.

Warning, though: I don't really do requests to fix scripts outright, since I'm quite a busy guy and I'm not terribly competent at making new javascript features - just lucky most of the time.

I also can't upload full scripts for Yanfly or anybody else behind a paywall due to their terms of service, so I can only put up the snippets I myself have modified and instructions on how to put them in to your version of the script.

I recommend these general tips:
  • Always make a backup of the original script in case something goes wrong
  • CTRL + F is your best friend, as it saves time when finding sections of the script you're editing.

This is also the prime place I will shout out relevant people who have helped me with certain issues, since those tweaks will be posted here too even if I didn't have a hand in editing the code personally.

-- BUGFIXES--​

Spoiler: Victor Engine Action Dodge / Action States 'action.item is not a function' Fix
(Credit goes to @Poryg for this one)

This is a pretty severe fundamental bug that prevents Victor Engine's extremely useful Action Dodge/States function from working.

How do you fix it? Well...

JavaScript:
VictorEngine.getAllElements(subject, item).reduce...etc

CTRL + F to find this line, then change the "item" to:

JavaScript:
VictorEngine.getAllElements(subject, this).reduce...etc

Problem solved! If you see any of Victor's scripts shoot up this error with getAllElements, just change "item" to "this".

Spoiler: Victor Event Conditions Unusable Events Issue Fix
(Discovered by: @ATT_Turan )

Victor's Event Conditions has a catastrophic oversight in its coding that makes it useless.

To be precise, it only checks if the custom condition of its comment calls are true while ignoring database applied ones (and even blank conditions, so events with no checks don't appear either) - to quote Turan, the logic is completely wrong.

This renders map and troop events unusable unless you put in identifying code (eg. result = true or something like that - it ignores database applied conditions) for EVERY SINGLE EVENT ON EVERY MAP. This is a huge shock coming off of VX Ace, where it only adds extra conditions to events.

However, there is one easy step to completely fix it! Just save the following code as a JS file and put it below Event Conditions on your plugin set-up:

JavaScript:
Game_Event.prototype.meetsConditions = function(page) {
    var c = page.conditions;
    if (c.switch1Valid) {
        if (!$gameSwitches.value(c.switch1Id)) {
            return false;
        }
    }
    if (c.switch2Valid) {
        if (!$gameSwitches.value(c.switch2Id)) {
            return false;
        }
    }
    if (c.variableValid) {
        if ($gameVariables.value(c.variableId) < c.variableValue) {
            return false;
        }
    }
    if (c.selfSwitchValid) {
        var key = [this._mapId, this._eventId, c.selfSwitchCh];
        if ($gameSelfSwitches.value(key) !== true) {
            return false;
        }
    }
    if (c.itemValid) {
        var item = $dataItems[c.itemId];
        if (!$gameParty.hasItem(item)) {
            return false;
        }
    }
    if (c.actorValid) {
        var actor = $gameActors.actor(c.actorId);
        if (!$gameParty.members().contains(actor)) {
            return false;
        }
    }
    var condition = VictorEngine.EventConditions.getCustomCondition(page);
    if (condition)
        return eval(condition[1]);

    return true;
};

This wonderful little scriptlet by Turan will solve the issue with Event Conditions and make it function the same as in VX Ace.

-- MODS--
(Don't expect much here.)​

Spoiler: State Popup for TSR Popups

Spoiler: Vertical Order for Yanfly Turn Order Display
(Made by: Myself)

The default horizontal bar for Yanfly's Turn Order Display is pretty cumbersome. It's more forgivable for sideview battles, but as someone who uses a front-facing battle system it was getting in my way quite a bit.

So I made a mod to make it both vertical and auto-aligned it so it never shows more than 8 icons on the screen at once, as a way to prevent it from overlapping certain windows (I use Moghunter's Battle HUD, for reference.)

I should mention that this was designed to be used with Yanfly's Battle Core omitting battle log messages, as the turn order totem will overlap messages if you have traditional battle log messages turned on or not centered.

This also contains a bonus quick-and-dirty method of hiding certain icons for "object" enemies.

Spoiler: Step 1
STEP 1:

Change these specific lines of code -

Line 654
JavaScript:
    this._turnOrderDisplay[i].updateDestinationX(); // Replace the X with a Y.

Line 780
JavaScript:
this.updateDestinationX();  // Replace the X with Y.

Line 782
JavaScript:
this.x = this._destinationX;  // Replace the X with Y.

Line 812
JavaScript:
this.y = this._destinationY;  // Replace this Y with X.

Line 989 through 993
JavaScript:
// Change all the X's to Y
Window_TurnOrderIcon.prototype.updateDestinationX = function() {
  if (!this.battler()) return;
  if (this.battler().isDead()) return;
  this._destinationX = 0;
  this.calculateDestinationXAlign(); // Except for this one!!
  this.calculateDestinationXIndex();

Line 1036 through 1044
JavaScript:
// Replace every X with a Y
Window_TurnOrderIcon.prototype.calculateDestinationXIndex = function() {
  var size = this.aliveMembersSize() - this.turnOrderDisplayIndex();
  var distance = this.width * size;
  if (this._direction === 'left') {
    this._destinationX -= distance;
  } else if (this._direction === 'right') {
    this._destinationX += distance;
  }
};

Spoiler: Step 2 (Big replacing chunks)
STEP 2 (Big replacing chunks):

Line 1128 through 1141, replace this:
JavaScript:
Window_TurnOrderIcon.prototype.destinationY = function() {
  var value = Yanfly.Param.TODPositionY;
  if (this._helpWindow && this._helpWindow.visible) {
    var cap = this._helpWindow.height;
    this._selectHeight = this._selectHeight ||
      Math.round(this.contents.height / 4);
    value = Math.max(value, cap + this._selectHeight);
  }
  if (!this.battler()) return value;
  if (this.battler().isSelected()) {
    value -= this._selectHeight;
  }
  return value;
};

with this instead:

JavaScript:
Window_TurnOrderIcon.prototype.destinationX = function() {
  var value = 20;
  if (this._helpWindow && this._helpWindow.visible) {
    var cap = this._helpWindow.height;
    this._selectHeight = this._selectHeight ||
      Math.round(this.contents.height / 4);
    value = Math.max(value, cap + this._selectHeight + 1200);
  }
  if (!this.battler()) return value;
  if (this.battler().isSelected()) {
    value += this._selectHeight + 5;
  }
  return value;
};

(Value 20 is the X position of the turn order totem. You can truthfully make it whatever number you want, as it shifts the location to another spot on the screen.)

--

Line 1143 through 1161, replace this:

JavaScript:
Window_TurnOrderIcon.prototype.updatePosition = function() {
  if (BattleManager._escaped) return;
  if (this._destinationX !== this.x) {
    var desX = this._destinationX;
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x > desX) this.x = Math.max(this.x - moveAmount, desX);
    if (this.x < desX) this.x = Math.min(this.x + moveAmount, desX);
    var cap1 = this.destinationY() - this.contents.height / 2;
    var cap2 = this.destinationY() + this.contents.height / 2;
    var moveAmount = Math.max(1, Math.abs(cap2 - this.y) / 4);
    if (this.x > desX) this.y = Math.max(this.y - moveAmount, cap1);
    if (this.x < desX) this.y = Math.min(this.y + moveAmount, cap2);
  } else if (this.destinationY() !== this.y) {
    var desY = this.destinationY();
    var moveAmount = Math.max(1, Math.abs(desY - this.y) / 4);
    if (this.y > desY) this.y = Math.max(this.y - moveAmount, desY);
    if (this.y < desY) this.y = Math.min(this.y + moveAmount, desY);
  }
};

with this instead:

JavaScript:
Window_TurnOrderIcon.prototype.updatePosition = function() {
  if (BattleManager._escaped) return;
  if (this._destinationY !== this.y) {
    var desY = this._destinationY;
    var moveAmount = Math.max(1, Math.abs(desY - this.y) / 4);
    if (this.y > desY) this.y = Math.max(this.y - moveAmount, desY);
    if (this.y < desY) this.y = Math.min(this.y + moveAmount + 70, desY);
    var cap1 = this.destinationX() + this.contents.height / 2;
    var cap2 = this.destinationX() - this.contents.height / 2;
    var moveAmount = Math.max(1, Math.abs(cap2 - this.y) / 4);
    if (this.y > desY) this.x = Math.max(this.x - moveAmount, cap1);
    if (this.y < desY) this.x = Math.min(this.x + moveAmount, cap2);
  } else if (this.destinationX() !== this.x) {
    var desX = this.destinationX();
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x < desX) this.x = Math.max(this.x + moveAmount, desX);
    if (this.x > desX) this.x = Math.min(this.x - moveAmount, desX);
  }
};

(Likewise, if you're editing the X position to be something other than 20, you should change the last bit to be something like:

Code:
    var moveAmount = Math.max(1, Math.abs(desX - this.x) / 4);
    if (this.x > desX) this.x = Math.max(this.x - moveAmount, desX);
    if (this.x < desX) this.x = Math.min(this.x + moveAmount, desX);

As it'll look pretty goofy swinging through the screen when you bring up skill/item menus.

Spoiler: Step 3 (Limiting Icons)
STEP 3 (Limiting Icons):

In Window_TurnOrderIcon.prototype.aliveMembersSize, change:

JavaScript:
  var length = members.length;

to:

JavaScript:
  var length = 6;

Or whatever number you want, really. What changing the number does is limit the amount of icons on screen by scrolling the extras up offscreen. They'll scroll down then their turn has come and scroll offscreen when they're finished.

Spoiler: Step 4 (Dummy Enemy State)
STEP 4 (Dummy Enemy State - OPTIONAL):

Go into Game_Temp.prototype.battleTurnOrderAddActionActors and add this condition beneath if (battler.isHidden()) :

JavaScript:
    if (battler.isStateAffected(163)) continue;

And then do the same thing under AddPerformedActors 's if (battler.isHidden()):

JavaScript:
    if (battler.isStateAffected(163)) continue;

Replace 163 with your dummy state ID of choice.

Let's say you don't want a certain actor/enemy to show up on the Turn Order for any reason (they're a background object prop or are meant to be a non-physical extension of the player). This check will remove them from the Order lineup, provided you tag said enemy with the state before the fight starts / via a Passive States plugin.
Something may of changed since the last time you viewed turn order display, cause i cannot get your mod working. unless i am totally doing alot of things wrong..
Something may of changed since the last time you viewed turn order display, cause i cannot get your mod working. unless i am totally doing alot of things wrong..

Out of all of the edits I have done to this thread, none of them were with the vertical mod for Yanfly's Turn Order. Far as I remember, anyway.

Please elaborate what your problem is (not just for here, in general - because "it's not working!" and nothing else is very unhelpful to the people you're asking help from).

I have a few possible ideas of what might be happening, just based on what I've dealt with:
  • Are the icons not showing up?
  • Are the icons shifted to the side awkwardly?
  • Did you replace only the parts that I mentioned? It's extremely particular.
Out of all of the edits I have done to this thread, none of them were with the vertical mod for Yanfly's Turn Order. Far as I remember, anyway.

Please elaborate what your problem is (not just for here, in general - because "it's not working!" and nothing else is very unhelpful to the people you're asking help from).

I have a few possible ideas of what might be happening, just based on what I've dealt with:
  • Are the icons not showing up?
  • Are the icons shifted to the side awkwardly?
  • Did you replace only the parts that I mentioned? It's extremely particular.
Only the parts you mentioned. Just their lines with new strings of code. But after doing so now nothing displays on the screen when using turn order display, so I had to restore my backup
Only the parts you mentioned. Just their lines with new strings of code. But after doing so now nothing displays on the screen when using turn order display, so I had to restore my backup

Nothing... what? The icons or your entire battle screen? Can I have a screenshot of what it looks like to you?

I should mention that if you're changing the actual name of the JS file to not be YEP_X_TurnOrderDisplay exactly, that makes it stop functioning because the code inside actually references the filename.
Nothing... what? The icons or your entire battle screen? Can I have a screenshot of what it looks like to you?

I should mention that if you're changing the actual name of the JS file to not be YEP_X_TurnOrderDisplay exactly, that makes it stop functioning because the code inside actually references the filename.
I know that I'm not supposed to change the name. But I'll show you in the morning. After making all these changes shown it just didn't have the turn order display on screen anymore. Meaning I just didn't see it at all in battles
@TheRealFame the mod does work as I modified it as his, also creating
the mod to work with the original so it would be easier to use.

the only problem it does work with the modifieded way, I hope to get it
to work for the horizontal as well, so setting it up is far easier by than.

but following it correctly should make the vertical turn order display work 🙂
@TheRealFame the mod does work as I modified it as his, also creating
the mod to work with the original so it would be easier to use.

the only problem it does work with the modifieded way, I hope to get it
to work for the horizontal as well, so setting it up is far easier by than.

but following it correctly should make the vertical turn order display work 🙂
Got it! I'll try running these changes by a few more times, if they don't work I'll probably try contacting him on discord if he doesn't mind, it's probably the best solution to figure out what I'm doing wrong..
Alright, census check!

Peeps who have Yanfly plugins, can y'all look at Turn Display Order to see how many lines your copy of that plugin has? I bring this up because I want to see if the maximum of 1245 lines is the standard amount for this plugin out of the box, since that's the amount my instructions are based around.

I dunno if older versions have less or not, hence why I'm asking.
It's 1245 lines for me.
can y'all look at Turn Display Order to see how many lines your copy of that plugin has?
The copy I have from Yanfly's bundle is version 1.03 and has 1245 lines. I suspect the first thing is the more important of them - I can't imagine Yanfly released two different files both labeled as 1.03.

But many people have older versions of the Yanfly plugins from before they became paid products.

The version is easily visible at the top of the plugin, line 11.
Thank you so so much for this! I followed your steps and got it working no problem!
This is so much nicer for my front view battler.

One question:
What if I wanted to adjust the Y location and move the whole thing down a bit? What code would I need to change?
Added in a new section to the original post: demos!

This section contains demos that show off tricks like common events and plugin combinations that I use in my games (well, free ones - I can't put up demos with plugins that you normally have to pay for).

The one I just posted was a common event showcase that has the following:
  • Quick Swap
    • (Switch characters on the map with the press of a button)
  • Move Specific Actor to Leader Position
  • Auto-facing towards specific actor in your follower caterpillar
  • Input Check (ex. [Z] becomes [Enter] if you changed your keyboard, etc.)
    • (Be careful though, this one is NOT beginner friendly. You'll have to change like a million variables to fit your game and potentially add new common events if your game has more hotkeys than the default.)
  • Rare Candy
  • Escape Rope
You are free to copy and use the common events directly into your game. 🙂
the vertical turn order one does not work, i have 1245 lines of code and v1.03

after doing all steps, the turn order does not display anymore. Do i need another plugin or just turn order alone? I'm using SysSTB
the vertical turn order one does not work, i have 1245 lines of code and v1.03

after doing all steps, the turn order does not display anymore. Do i need another plugin or just turn order alone? I'm using SysSTB

I did not design the modified turn order to work with anything but the default battle system.
I did not design the modified turn order to work with anything but the default battle system.
I found out what the problem was.

Line 992: this._destinationY = 0;

I changed 0 to like... 400, now it shows up correctly
A quick, hello, excuse me.

I've used the tweaks you historically requested from TSR for his damage popups and they work great (on MOG battlehud).

Except one strange quirk: for some really weird reason, it always puts a space before the last letter of the displayed state, as seen here, +Venom is printed as +Veno m. This also applied when changing the name (i.e. I changed it Envenomed and you guessed it, it become +Envenome d). Did you come across this when you added that? TSR is unfortunately unable to assist so I thought I'd at least try to ask yourself:
1762903401971.png
A quick, hello, excuse me.

I've used the tweaks you historically requested from TSR for his damage popups and they work great (on MOG battlehud).

Except one strange quirk: for some really weird reason, it always puts a space before the last letter of the displayed state, as seen here, +Venom is printed as +Veno m. This also applied when changing the name (i.e. I changed it Envenomed and you guessed it, it become +Envenome d). Did you come across this when you added that? TSR is unfortunately unable to assist so I thought I'd at least try to ask yourself:
1762903401971.png

That's... interesting. It does not happen for me.

I can't replicate your issue no matter how I mess with the text string, so I don't really know what to say other than "test with all of your plugins on vs. testing with only TSR Pop-up and MOG Battle HUD."

It's like something is being overwritten somewhere. If it still happens even TSR Pop-ups alone, then... I dunno, sorry!

Original thread: https://forums.rpgmakerweb.com/threads/dans-daring-debugs-discoveries.156398/