Battle Overview

this thread is kind of old ? it's just 1 day old.

At the time the plugin meet issues with save load when the save is older than the plugin.
Obviously, this will be corrected in a further update, I'm currently working on it.

thanks for beeing interested in it <3
This thread is getting pretty long 😀

So here's more good news:
Whatever you did to fix these problems, it seems to have worked.
The notetags are looking to be working properly now.
I managed to hide the element icons and they did update when I hit them with the element.
And also only enemies with the notetag have their icons hidden now.

Excellent work and sorry for bugging you so often 😀

Just in case you did not see the message, Lay.
The problems that were present for me seem to have been fixed, thanks to you.
Normally if the problem is fixed, the state notetag that update the discovery of enemies weakness upon hit should work. Can you confirm ?

thanks again to you, you're the man !!
Yes it did work. The icon updates when I hit the enemy with a resist/weak element.
It even persists after battle, which I did not even think was part of the mechanic, very nice.

The only thing I found that the discovery of enemy weakness does not happen, if you kill the enemy with your attack. Like when I attack with a fire-attack and the enemy dies right away, the icon does not update.
It would be awesome to be able to turn off un-used feature such as element absord / resist ...
I didn't even think of that since I use all of these names, but I added your point to my suggestions anyways.
Yes it did work. The icon updates when I hit the enemy with a resist/weak element.
It even persists after battle, which I did not even think was part of the mechanic, very nice.

The only thing I found that the discovery of enemy weakness does not happen, if you kill the enemy with your attack. Like when I attack with a fire-attack and the enemy dies right away, the icon does not update.

This is because the notetag used don't trigger the code if the enemy die. could probably be better to use an other notetag. For this point, this is not because of my plugin ! ahah

It would be awesome to be able to turn off un-used feature such as element absord / resist ...

Thanks for the feedback, I will think about it for further updates 😉
Ahhh ok
Update

A new DataManager function as been added and run while loading a save file.
This function check if the data stored in gameParty for element weakness discovery are coherent with dataEnemies and dataSystem.
I will describe below what the function exactly does. If you are not familiar with JavaScript, consider that Element_Weakness_Discovery is a kind of table where columns are the elements and row are the enemies. When Battle overview have to draw an element Icon, he will search the icon to draw in Element_Weakness_Discovery for a given element and for a given enemy.
  • If gameParty doesn't contain the Element_Weakness_Discovery, then the function creates it. Thus, the plugin now support the load of save files that were created before the plugin has been added to your game.
  • If Element_Weakness_Discovery doesn't contain an enemy ID, the function create an extra line that will correspond to the enemy ID. Thus, the plugin now support the creation of new enemies while you're loading a save file older than the enemy creation.
  • If the number of elements in Element_Weakness_Discovery is different than the number of elements in dataSystem (the list you setup in the editor database > Types). Then the function will completely reset the Element_Weakness_Discovery. This has been implemented because, if you decided to delete an element in the database, there isn't any way for Element_Weakness_Discovery to understand which element has been deleted.
Note that all those checks were implemented only for game test using save files. For a game release, those conditions are never met because, since the game dev should be done, there is no reason for the database to be modified.

Note that this function still has some weaknesses that I can't tackle.
  • If you decide, for some reasons, to swap two elements in the database. There isn't any possibilities for the plugin to understand such a thing. As a consequence, if you per example swap element 2 and 3, the element 3 will be drawn with the icon of element 2 and vis versa for all monsters that were present in the database before you decided to swap those elements. Updating the elements icon plugin parameter will only be took into account for newly added monsters.
  • If you decide, for some reasons, to swap two monsters in the database or to change the index of a given monster. Same than before, impossible to understand it. As a consequence, all the element that has been discovered for a swaped monster will be replace by the discovered element of the other swaped monster.
  • All other manipulation that can create Element Index conflict or monster Index conflict I didn't think about are susceptible to make Element_Weakness_Discovery inconsistent with the updated database.
Because plugins can't communicate with the editor, if you want to do something similar to one of the database update cited above, you will need to reset the Element_Weakness_Discovery manually. To do so, open the console and enter the following command :

Code:
$gameParty.setUpDiscoEnemWeak()
if you are not familiar with console, you can also create a NPC and put this command in Script... Talking to this NPC will run the command.

This command will re-create the Element_Weakness_Discovery table according to the database statement. You will loose all the element you has discovered throught game advancement. However, since you will only have to use those things during game development, it shouldn't really break you're game testing.

This function print its job in the console. You can open the console, load a save file and see what changes has been made to Element_Weakness_Discovery.
Wonderful plugin.

Thanks a lot for the work and the sharing

I totally rebuild my battle UI to insert the overview command but it worths it.

Keep me informed of any updates!
Excellent work once again. I am looking forward to further updates.
You're doing great so far! I am so happy that you made this plugin since
I really did not want to use Yanflys Battle Engine Core (YEP) because I would
have to overhaul most of my game.







I don't know your to-do list, but
Here are a few suggestions for improvements:


#1 Notetags to make certain states not be displayed in the overview window Thank you !

#2Notetags to make certain enemies not be displayed in the overview window.
This is useful to make boss battles more tense because you don't have much information,
or if you have some kind of "dummy" enemy that is not supposed to be shown.

#3 A way to choose what to display in the overview for each character (like hiding the HP/MP of a boss or making the elements affinity bar disappear for specific enemies)
For example you may not want to show a bosses HP/MP or Parameters.

#4 Configuring the elements affinity bar to show/hide "absorb / resist / natural / weak"
so that for example the bar only goes from weak to resist (If you don't use absorb) (@ravenhood)

#5 perhaps some way to increase the amount of rows for the names of the battlers for better visibility.
Having too many names in a single row makes it kind of chaotic to navigate.

Of course these are merely suggestions that I think will add a lot of flexibility to your plugin.
thanks @ScorchedGround.

My todo list is update at the end of my first post. I didn't include all the features you asked because I don't want to make the plugin too much complex. Keeping a low complexity is always better for adding new big features for further big updates.

notetags to make certain enemies not displayed in the overview window, per example, will not be implemented (at least soon). However, I've planned to introduce a way to hide every parameters individually. I will try to implement a way to show parameters in an unknown state too. It looks better to me to still show all the graphical content, the player will better understand that he can't have access to the parameters. If things are just not shown, the player can feel puzzled about a putative bug.

About the number of rows in the battler selection window, I will implement it very easly. But it could raise a navigation issue. While the up and down control is locked for the state list, the right and left controls are dedicated to the battler selection window. If there are many rows, the player can feel confused with up and down controls. Any way, it's nothing to implement, you can even try to do it by yourself at the time. Find the line below :

JavaScript:
Window_BattleOverview_SelectBattler.prototype.numVisibleRows = function(){return 1};

replace by the following for 2 rows :

JavaScript:
Window_BattleOverview_SelectBattler.prototype.numVisibleRows = function(){return 2};
Update

Notetags have been implemented to allow more gauge display control.

Classes & Enemies

Code:
<Overview Param Gauge: TYPE>

Param might be HP, MP or TP.
TYPE could be 'hide' or 'unk'
If type is 'hide', then the gauge corresponding to the specified param will not be drawn.
if type is 'unk', then the gauge corresponding to the specified param will be drawn in the unknown state.

here an example of notetags :

Code:
<Overview Hp Gauge: unk>
<Overview Mp Gauge: unk>
<Overview Tp Gauge: unk>

Capture d’écran de 2020-05-14 15-55-47.png


The colors and the text "???/???" of unknown gauges can be customize by the corresponding plugin parameters. See in Gauges > UNK.

Code:
<Overview Param Gauge N: EVAL>

Replace Param by HP, MP or TP.
Replace N by X, Y or Width.
Replace EVAL by a string that can be interpreted as a javaScript code line.
This notetag allow you to adjust the position of gauges for specific enemies and classes.
You can use the same keywords that could be used in the plugin parameters for HP,MP and TP position.

example :

Code:
<Overview TP Gauge: hide>
<Overview MP Gauge Width: hpGaugeWd>
Taken together, those two notetags will hide the TP gauge and will fit the MP gauge width to the HP gauge width.

Capture d’écran de 2020-05-14 16-03-46.png
Awesome update! Thanks as always.

notetags to make certain enemies not displayed in the overview window, per example, will not be implemented (at least soon). However, I've planned to introduce a way to hide every parameters individually. I will try to implement a way to show parameters in an unknown state too. It looks better to me to still show all the graphical content, the player will better understand that he can't have access to the parameters. If things are just not shown, the player can feel puzzled about a putative bug.

I mean to be honest, being able to hide every parameter individually is very similar to
just hiding the battler completely.
So I don't mind if you don't implement it later or not at all.

About the number of rows in the battler selection window, I will implement it very easly. But it could raise a navigation issue. While the up and down control is locked for the state list, the right and left controls are dedicated to the battler selection window. If there are many rows, the player can feel confused with up and down controls. Any way, it's nothing to implement, you can even try to do it by yourself at the time.

Yeah now that I think about, you're right. One way could be to instead of using down controls you just use left/right controls and when you get to the end of the row, you just continue in the next row.
Maybe you can find a more attractive solution though, as I am not well versed with JavaScript.

There is one thing I noticed when I installed the new version of the plugin:
The elements affinity bar suddenly displays elements that are not supposed to be displayed,
see the attachment. I don't have an icon set for them in the plugin parameters, but since
I hid the icons, these extra elements are also hidden with the icon. This was not the case in earlier
versions of your plugin.
I've modified a bit how the icon list is used by the plugin because, in some specific cases, if the plugin try to draw an icon that is not present in the plugin parameter, it could raise an error.

If I understand your problem well, you don't want to draw all of the elements you specified in the Editor right ? And to hide the elements you're not interested in, you managed to set no icon in the plugin parameter right ?
That's right.
I use the element ID's from 1 to 11. These should be visible on the affinity bar.
So i set their icons in the plugin parameters.

However I have some more elements in the database, but these are background elements the player
should not know about. So they have no icon set in the plugin parameter.

But the <Hide Elem Icons: X> Notetag also marks these extra elements with the X Icon.
When they get hit with the element, the icon disappears (because they have not icon set originally)
well, in doing so, you are lucky that your game didn't crash xD

I've edited the script. From now, when you use the notetag <Hide Elem Icons: X>, all the elements Icons will be replaced by X except for element Icon 0.

And notice that, if the element icon list you provide in the plugin parameter is shorter than the element list you specified in the database, the list provided to the plugin will be extend by icon 0 until it reach the same size than the database element list. This is why the notetag did this thing.
Great! It works as intended now.
Thanks for the quick fix. 🙂

Edit: I updated my suggestion list with some Quality of Life improvements.
Update

The plugin parameters has been intensively revised for the element rate plot. If you are already using this plugin, it is strongly recommended to delete the plugin from the plugin manager and reload it. All parameters will be set to default values. If you want to just replace the file in your plugin folder, some parameters will be set to values of bad format and you will need to re-adjust all of them manually.

Element Affinity Diagram

The Element Affinity Diagram has been fully re-wrote into a more flexible format in order to propose a complete set of parameters allowing a full customization. The help section of the plugin has been updated in consequence. You will be able to read a description of each parameter in it. I will describe the most important parameters below. If you want to go deeper in customization, first refer to the plugin help section or ask your request in this thread.

Gradient Color

The parameters for weak, natural, resist and absorb colors have been replaced by this unique parameter. This parameter take a list of color you want to use for the diagram gradient. You are now able to choose the number of colors you want.

Gradients Interval Ratio

While the number of colors is now flexible, you must indicate to the plugin where you want to draw those colors along the diagram Height. This parameter takes a list of ratio that must be as long as the number of colors. The ratio at position 1 correspond to the color at position 1 and so on. Those ratios are values between 0 and 1. 0 corresponds to the top of the diagram and 1 corresponds to the bottom of the diagram.

Max Element Rate Threshold
Min Element Rate Threshold


The maximal and minimal element rate ploted is no longer fixed to 2 and -2 respectively. Those parameters are used to define the maximal and minimal values you want to show. This is especially usefull if your game focus on a specific interval of element rate.
If you are using YEP_ElementCore, remember that the use of the notetag <Element Absorb: x> decrease the element rate by 200% allowing a minimal element rate value close to -2.

Element Rate Scaling Script

If you want to custom the scaling of element rate, you can enter in this parameter a script to do it. If you are only interested in a linear scaling you can just enter the keyword "linear".

Legend Names

The previous parameters for legend has been replaced by this parameter. It takes a list of names, allowing you to choose the number of legend you want for the plot.

Legend Elemental Rate

Those legend names might correspond to a specific element rate you must indicate here.


example of what you can do with the scaling parameter.

left : the diagram from -1 to 2 element rate with a linear scaling. The standard value is not at the middle of the plot.
right : the diagram from -1 to 2 element rate with a non linear scaling. The standard value of 1 is now at the middle of the plot. As a consequence, note that the Icons are compressed for element rate lower than 1 and spaced for element rate higher than 1.
the legend correspond to the following rate : weak = 2, natural = 1, resist = 0, absorb = -1
CustomScalling.png


Notetags

Classes and Enemies :
JavaScript:
<Overview Param: hide>
<Overview Param: no pie>
<Overview Param: unk>

Those notetags modify the parameter diagram for a specific enemy or classe.

hide will not display anything.
no pie will draw the diagram background but nothing else.
unk will draw all the parameters at their maximal value and replace the legend by "???".

Miscellaneous

fixed bugs related to conflicting notetags.
If some parameters are not given properly, the plugin print a warning message in the console.
the function that update the icon x coordinate for the element affinity diagram has been improved.
Euh... You still continue to perform an excellent work. Thanks a lot.

As an improvement, may I suggest an option where the overview of the active battler is displayed without the help of a command ? Maybe a shorter overview ? I show you an example in Eremidia (at the bottom left)

zk4jFh.png

Original thread: https://forums.rpgmakerweb.com/threads/battle-overview.121408/