DoubleX RMMV Popularized ATB Core

Updates
JavaScript:
 *      v1.03d(GMT 0500 20-5-2020):
 *      1. Fixed the party escape command being selectable even when it won't
 *         be effective
Updates
JavaScript:
 *      v1.03d(GMT 0500 20-5-2020):
*      1. Fixed the party escape command being selectable even when it won't
*         be effective

Thanks for the update! I've tried the plugin, and it works, but... the Party Window does something strange with the commands when selecting the Escape one, during the action taking place in battle (I think it blinks?). I've uploaded a video:
It's normal, because when the party escape command becomes unavailable when it's selected, the party command window has to be reset and select among available commands, so the blinks are caused by the party command window automatically selecting the fight command in this case 🙂
It's normal, because when the party escape command becomes unavailable when it's selected, the party command window has to be reset and select among available commands, so the blinks are caused by the party command window automatically selecting the fight command in this case 🙂

I see, it is the only way to make the player unable to select the Escape command while the action is taking place, and since the enemies on the video are attacking one by one in the same turn, the cursor blinks...

I was thinking... could it be possible, when opening Party Window, to pause the battle entirely? Even when the ATB options are setup to be "full", "act", "target", and "item"? That way, the user will have some kind of "Pause" in the middle of the battle, and also, it will allow to select the commands without problems without actions taking place in the background.
Updates
JavaScript:
 *      v1.04a(GMT 1200 20-5-2020):
 *      1. Added wait_party_cmd
Updates
JavaScript:
 *      v1.04a(GMT 1200 20-5-2020):
*      1. Added wait_party_cmd

Thank you so much, Double X, it works pretty well! This is a big improvement, and now the Party Window and the commands inside it will work better than ever!
Hello DoubleX, I have a question.
I have a skill that increase selected target ATB to max, and I tried using these plugin calls :
target.patb_val.atb = target.max_patb_val

Yes, targets ATB is filled but it stuck at max, forever, unable to pick a command.
Any solution for this ?
Updates
JavaScript:
* v1.04b(GMT 1400 15-6-2020):
* 1. Added battler manipulation plugin call fill_up_patb_val()

Hello DoubleX, I have a question.
I have a skill that increase selected target ATB to max, and I tried using these plugin calls :
target.patb_val.atb = target.max_patb_val

Yes, targets ATB is filled but it stuck at max, forever, unable to pick a command.
Any solution for this ?
You'll have to use the new fill_up_patb_val() instead:
JavaScript:
* 4. patb_val.atb = val
* - Set the battler's atb value as val
* (v1.04b+)Use fill_up_patb_val() instead if val = max_patb_val in
* non-delay fill code and val = 0 in delay fill code, or the
* battler would never be ale to input or execute actions
I've to admit that patb_val.atb = val is a poorly designed plugin call, and the only way for me to fix it quickly without breaking something else is to make a new plugin call for the special case of using max_patb_val as val 🙂
@DoubleX

Sorry for bothering again,
It seems atb reset feature isn't working? (Both Core and Add-on plugin)

Inserting something (let's say "agi", so battler has its ATB resetted to base agi) on atb_reset_code didn't do anything. Also putting something like <= patb reset: 50> to skill notetag doesn't do anything at all, even though add-on installed. Am I missing something?
@DoubleX

Sorry for bothering again,
It seems atb reset feature isn't working? (Both Core and Add-on plugin)

Inserting something (let's say "agi", so battler has its ATB resetted to base agi) on atb_reset_code didn't do anything. Also putting something like <= patb reset: 50> to skill notetag doesn't do anything at all, even though add-on installed. Am I missing something?
Unfortunately, right now atb_reset_code can't be used that way:
JavaScript:
 * @param atb_reset_code
* @desc Sets the code of the reset atb mechanism as atb_reset_code for
*       additional effects
*       It'll only be used with non-delay atb_reset_code
*       The atb refill will always be freezed while not movable
*       Available code for the atb reset mechanism for additional effects:
*       clear - The atb will be emptied when becoming unmovable as well
*       No additional effects will trigger if atb_reset_code doesn't return
*       an available code
* @default clear
It means that atb_reset_code only cares whether it's clear or something else.
If you want to use agi, you may want to place this snippet right before the core plugin(and especially above the reset addon):
Code:
Game_Battler.prototype.reset_patb_val = function() {
    if ($gameSystem.patb.atb_fill_code === "delay") {
        this._patb_val.atb += this._max_patb_val - this.agi;
    } else {
        this._patb_val.atb = this.agi;
    }
    this._patb_val_change.atb = true;
};

As for <= patb reset: 50>, I failed to reproduce the issue, as the ATB value of the actor after using such a skill is indeed about 50. I'm afraid that you'll have to give me your project(you can do so via pm) so I can know what's really going on 🙂

I think I'm going to expand the atb_reset_code in the reset addon(so things like agi can also be used), but first I want to ensure there's no issues in the reset notetags first 😀
Hello DoubleX!

I really love your ATB Plugin.
I'm suprised to see you're still active.

I know it's been a while, but I'm just wondering if you were interested in somehow making
a compatibility fix for YanFlys Actor Party Switch Plugin.

It looks like it works almost perfect, but once you actually Swap a party member out, all Actors ATB stops filling and freezes. The enemy still acts though. So the game softlocks.

I don't know how hard, or how easy it is to fix this, but I thought I'd mention it.

Thanks for the great plugin regardless!

EDIT: I didn't know you had new ATB Plugins up!
That's really cool. I will look into them, but what I'm really looking for is Actor Party Swap mid-battle. If you're interested in making that, I'd love to see it!

EDIT 2: WOW. Just found your github with compatibility of a differentp lugin that does exactly what I wanted. Nevermind my entire post, thank you!!
I know it's been a while, but I'm just wondering if you were interested in somehow making
a compatibility fix for YanFlys Actor Party Switch Plugin.

It looks like it works almost perfect, but once you actually Swap a party member out, all Actors ATB stops filling and freezes. The enemy still acts though. So the game softlocks.
I wanted to fix that, but as it's a commercial plugin and I'm not supposed to have accesses to it, I won't be able to fix that.

EDIT: I didn't know you had new ATB Plugins up!
That's really cool. I will look into them, but what I'm really looking for is Actor Party Swap mid-battle. If you're interested in making that, I'd love to see it!

EDIT 2: WOW. Just found your github with compatibility of a differentp lugin that does exactly what I wanted. Nevermind my entire post, thank you!!
I hope that ATB system plugin(still under development but is already working) can fulfill your needs, but be warned: That plugin's much, much harder to use than this PATB, as the former mainly addresses complicated and convoluted use cases for advanced users(even though I still have beginners in mind when designing the user sections and have tried to make it even more user-friendly), instead of the latter mainly addressing easy, simple and small use cases for most users(but thus a lot more limited) 🙂

P.S.: Btw, for those interested in that ATB system plugin, you can try this(it's a demo as it'd be too difficult to fathom this overengineered beast otherwise) 😉
Hello I'm kinda new to rpg maker, sorry to bother you guys but I can't figure out how to use this plugin. I put it in the plugins folder, I loaded it in the plugin manager, but the battle system is still the default one. Is there something I didn't do correctly ? Any help would be greatly appreciated thanks 🙂
There are several things to check:
Code:
* @param battle_system_code
* @desc Sets the code indicating if ATB or the default battle system will be
* used as battle_system_code
* Available codes for battle_system_code:
* atb - ATB will be used
* The default battle system will be used if battle_system_code doesn't
* return any available code
* battle_system_code must not be changed from the available codes to the
* unavailable ones during the same battle(the same for the vice versa) or
* this plugin will fail extremely badly
* @Default atb
Code:
* The default plugin file name is DoubleX RMMV Popularized ATB Core v104b
* If you want to change that, you must edit the value of
* DoubleX_RMMV.PATB_Core_File, which must be done via opening this plugin js
* file directly
If these things are set properly but the plugin still doesn't work, you may have to give me a video on how you setup the plugin, or even just give me your project via pm 🙂
I'm not sure to understand, once the plugin is loaded, do I need to edit some parameters ?
I'm not sure to understand, once the plugin is loaded, do I need to edit some parameters ?

Unless you have other plugins installed in your project that affects the battle scene (like Yanfly's Battle Core for MV), you shouldn't need to edit parameters on the ATB plugin, since it is set by default to work with ATB.

If you have other plugins like the one I mentioned, you should look for a parameter inside it to see if you can change the default battle system with the ATB system from DoubleX's plugin.

It could also be an incompatibility, but... there's no way to say if we don't know which plugins are you using.
I don't have any other plugin installed :/
I don't have any other plugin installed :/

Do you have the "battle_system_code" parameter like in this picture? It has to say "atb" to have the battle system working.

1622891195585.png
Yes I have here is a screenshot
Thanks to your screenshot, now I know the root cause of the problem, and it's on my side -
The v1.04b file you downloaded was actually having contents of v1.04a, and since the actual and expected file names don't match, the plugin just won't function.
So now you can just download the plugin js file again and everything should work fine now 🙂

Again, thanks to you, I've noticed my silly mistake, otherwise I might never realize that...

Original thread: https://forums.rpgmakerweb.com/threads/doublex-rmmv-popularized-atb-core.51219/