MV How do I show more party members AFTER game start?

I need a way to increase the amount of followers shown in RPG Maker MV, after game start. I have already done:

EDIT: rpg_objects.js
Game_Party.prototype.maxBattleMembers = function() {
return 5; //return 4;
};

and read the posts like these:
and tried plugins like:

All these methods work fine for a NEW game, but don't affect previously saved games. I was hoping there is some way to force RPG Maker MV to change the visible followers from 4 to 5 (for example) when loading saved games as well. I read in some post that there is a way to do that, but it wasn't elaborated on...

It would be even better if it was possible to call the script every time an NPC joins your group and shows exactly the amount of followers you have, rather than only checking at game start.

Any ideas? I am hoping for code I can add myself, but a pre-made plugin is OK as well.
the game sets up the follower slots only when a new game starts afaik. instead of trying to change it midgame, why not start the game with the higher maximum? If the player doesnt have enough actors to fill the party, its not as if the game visibly fills them.
Yes, as I already stated, I know how to change followers at game start. The problem is 90% of my players don't want to restart a 20 hour long game every time I add some new feature... So, I want to "hack" the game using js to update the follower limit. Games are just code. There IS a way to do this, my coding level is just not high enough to figure it out from reading the js files. I am asking for help from js coders who do know where to change this.

Also, another issue is I am using YEP_savecore which adjusts the face images on the savefile based on followers, so if I set the limit to, say 10 followers, at game-start, YEP_savecore will jam 9 empty face images onto the screen... so, a better approach is just have the game update the follower limit when new followers are added.
Maybe (untested):
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Correct follower count when loading a save.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/posts/1523197/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (function() {
"use strict";
  const alias = DataManager.extractSaveContents;
  DataManager.extractSaveContents = function(contents) {
    alias.apply(this, arguments);
    const f = $gamePlayer.followers()._data;
    const m = $gameParty.maxBattleMembers() - 1;
    if (f.length > m) f.length = m;
    else while (f.length < m) f.push(new Game_Follower(f.length + 1));
  };
})();
Wow. Thanks! It works perfectly. As soon as I add a follower, it updates on the screen even in saved games. I tested as many variations as I could and all seem to work.

Just a note for others. This code requires changing
rpg_objects.js -> Game_Party.prototype.maxBattleMembers = function() { return 'x' }; //where 'x' is the max number of followers. It will not automatically adjust max followers.

Also, this issue is solved, so can be closed... but I cannot figure out how to do that.
Also, this issue is solved, so can be closed... but I cannot figure out how to do that.
Report your first post and request a thread closure due to the issue being solved.
Wow. Thanks! It works perfectly. As soon as I add a follower, it updates on the screen even in saved games. I tested as many variations as I could and all seem to work.
Great! Note that you can put the maxBattleMembers code in that same plugin file, if you prefer. Having stuff like this in a plugin, rather than as an edit to the core scripts, makes it easier to keep track of changes, turn them on/off, use them in other projects, etc. 👋

Also, this issue is solved, so can be closed... but I cannot figure out how to do that.
Like Sword_of_Dusk says, usually you would click the Report button on one of your posts in the thread, with a message like "problem solved" or "thread can be closed". That notifies the moderators, who can close the thread. Since I'm here now, though...

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-show-more-party-members-after-game-start.179045/