YEP Battle Status Window Extension

● ARCHIVED · READ-ONLY
Started by DreamX 218 posts Page 6 of 11 View original ↗
  1. DreamX said:
    Try setting the opacity of the windows to 0.

    That worked, thanks! Now I just have to mess around with stuff until I can get it the way I want it, haha! Thanks, DreamX :)  
  2. Waterguy said:
    https://www.dropbox.com/s/f22c0f4uvrnrg37/DreamXBattleStatusFPS.rar?dl=0


    I used the came configuration I used on my own game, save for not adding animated enemies and state animations. That rose the fps, but it still falls about 20fps when your plugin is turned on compared to when it is turned off...

    I did some testing with the demo and the lowest fps I got with the plugin turned on was 46 compared to 50 when the plugin was turned off. It would help a lot if you provided a demo that caused "1-2 fps constantly" like you mentioned, but I will try to look for ways to optimize anyway.
  3. @kovak that helps, a LOT. Not the reason for the problem, but it helps even without the plugin on.


    @DreamX I think I found the main problem... It is because I had my console open.


    I have no idea why, but the fps went from 3 tops (after using kovak's link) to 40 at the lowest after I closed it.
  4. Waterguy said:
    @kovak that helps, a LOT. Not the reason for the problem, but it helps even without the plugin on.


    @DreamX I think I found the main problem... It is because I had my console open.


    I have no idea why, but the fps went from 3 tops (after using kovak's link) to 40 at the lowest after I closed it.

    Great to hear that solved your problem.
  5. Glad it helped, my pc is kinda dying so i know how to save memory, It can't even be called of low-end anymore so i have to figured that your machine must be really "stressed".
  6. DreamX, sorry for the trouble.
  7. Waterguy said:
    DreamX, sorry for the trouble.

    No problem.
  8. DreamX said:
    1. Sure, I'll look into that.


    2. Fixed in latest update



    Once again, thanks a lot DreamX!


    I've confirmed your fix does work :)


    (That was fast btw)
  9. Hi DreamX, I'm having two small issues here that are probably easy fixes, but after a couple hours fiddling with the plugin parameters, I can't figure out:


    1. I finally got the dummy windows spaced correctly, but for some reason the third window is getting oddly cut off (not displaying the HP/MP). The column spacing is set to 36 and the window width is Graphics.boxWidth - 72 (to offset the spacing between the windows). If I set the width to Graphics.boxWidth, the dummy windows go out of the right side of the screen because of the spacing.


    2. I am using the front view battle system base, but I have the actor sprites shown in battle (Yanfly Battle Engine Core). However, when I turn your script on, it displaces the sprites underneath the HUD, and I just cannot for the life of me figure out how to return them to their rightful places (see screenshots).


    BONUS 1: How would I display the nickname and class in the window in addition to the name? For example, it might read: "Fred the Clumsy Knight" - with name "Fred", nickname "the Clumsy", and class "Knight".


    BONUS 2: How would I display the actor's map sprite in the window instead of the face? My workaround here is to use the sprite as the face and set the face width/height - so only answer this if there is an easy solution :)


    P.S. Great script! I'm using a couple of your scripts and they make things a lot easier and more customizable!

    Spoiler
    FLR-HUD Test.png


    HUD-noScript.png


    HUD-script.png
  10. I'm having an issue with state icons. I have them disabled from above head in yanflys state core. I get missing icons when applying states to enemies. Some show the number of turns left but no icon :(  I tried to mess with anything with states but no luck. Disable this ext and state icons and such work fine :(
  11. Gigaloth said:
    Hi DreamX, I'm having two small issues here that are probably easy fixes, but after a couple hours fiddling with the plugin parameters, I can't figure out:


    1. I finally got the dummy windows spaced correctly, but for some reason the third window is getting oddly cut off (not displaying the HP/MP). The column spacing is set to 36 and the window width is Graphics.boxWidth - 72 (to offset the spacing between the windows). If I set the width to Graphics.boxWidth, the dummy windows go out of the right side of the screen because of the spacing.


    2. I am using the front view battle system base, but I have the actor sprites shown in battle (Yanfly Battle Engine Core). However, when I turn your script on, it displaces the sprites underneath the HUD, and I just cannot for the life of me figure out how to return them to their rightful places (see screenshots).


    BONUS 1: How would I display the nickname and class in the window in addition to the name? For example, it might read: "Fred the Clumsy Knight" - with name "Fred", nickname "the Clumsy", and class "Knight".


    BONUS 2: How would I display the actor's map sprite in the window instead of the face? My workaround here is to use the sprite as the face and set the face width/height - so only answer this if there is an easy solution :)


    P.S. Great script! I'm using a couple of your scripts and they make things a lot easier and more customizable!

    Spoiler
    View attachment 50139


    View attachment 50140


    View attachment 50141

    1. Please use this to create a demo showcasing this problem and I'll try to fix or address the issue. Upload to dropbox.com


    2. See update


    Bonus 1/2: I might make one or both of these parameters but since this is the first time it's been requested I'll just make a small script suggestion for you:


    Make a plugin, paste this code in and adjust it if you want, then turn the plugin on. You'll want to also set Draw Name to false in the parameters and turn off anything else that would cover where you want the text and character image to be, like the face. You need to edit the code a bit to get the x and y values the way you want.


    alias_Window_BattleStatus_drawItem = Window_BattleStatus.prototype.drawItem;
    Window_BattleStatus.prototype.drawItem = function (index) {
    alias_Window_BattleStatus_drawItem.call(this, index);
    var actor = $gameParty.battleMembers()[index];
    var rect = this.itemRect(index);

    // adjust the text as you wish
    var text = actor.name() + " " + actor.nickname() + " " + actor.currentClass().name;

    // adjust the x position of text by changing 0 to something else
    var textX = rect.x + 0;

    // adjust the y position of text by changing 0 to something else
    var textY = rect.y + 0;

    this.drawTextEx(text, textX, textY);


    // adjust the x position of map character by changing 0 to something else
    var charX = rect.x + 0;
    // width of character sprite (single frame)
    var charWidth = 48;

    // adjust the y position by map character changing 0 to something else
    var charY = rect.y + 0;
    // height of character sprite (single frame)
    var charHeight = 48;

    this.drawCharacter(actor.characterName(), actor.characterIndex(), charX + 24, charY + 48);
    };



    mrdankles said:
    I'm having an issue with state icons. I have them disabled from above head in yanflys state core. I get missing icons when applying states to enemies. Some show the number of turns left but no icon :(  I tried to mess with anything with states but no luck. Disable this ext and state icons and such work fine :(

    Please use this to create a demo showcasing this problem and I'll try to fix or address the issue. Upload to dropbox.com


    v1.6:


    Fixed frontview actors not appearing above windows when "Frontview Animations On Top" is not on. Remember to set the parameters in YEP Battle Engine Core and YEP Battle Status Window that show actor sprites in frontview to true.


    Added parameter to prevent this plugin from changing frontview actor sprite position @Gigaloth
  12. DreamX said:
    ...


    v1.6:


    Fixed frontview actors not appearing above windows when "Frontview Animations On Top" is not on. Remember to set the parameters in YEP Battle Engine Core and YEP Battle Status Window that show actor sprites in frontview to true.


    Added parameter to prevent this plugin from changing frontview actor sprite position @Gigaloth



    Hey DreamX,


    The update worked great! My actors now appear in the correct spot! In addition, your plugin to add the name/nickname/class worked great as well. I just need to change the size of the name font to 20...I tried using this.contents.fontSize = 20 but it didn't work...I KNOW this is a simple line of code but I'm still picking up JS >:/


    As for the window issue, it is DEFINITELY being caused by the window width being set at Graphics.boxWidth - 72. After I reduced the spacing to 0 and returned the width to Graphics.boxWidth, the contents don't get cut off any more. HOWEVER, the dummy windows overlap and don't get drawn correctly (see screenshot). Adding any amount of spacing causes the windows to bleed out the right edge of the screen (see screenshot).


    Sorry about not having a DEMO ready, but hopefully I explained this well enough!
     

    Spoiler
    Without spacing (overlapping windows):


    DummyWindows.png


    With spacing (window goes out the right edge of the screen):


    withspacing.png
  13. v1.5b - Fixed an issue with the plugin causing an error when being used outside of battle.

    Gigaloth said:
    Hey DreamX,


    The update worked great! My actors now appear in the correct spot! In addition, your plugin to add the name/nickname/class worked great as well. I just need to change the size of the name font to 20...I tried using this.contents.fontSize = 20 but it didn't work...I KNOW this is a simple line of code but I'm still picking up JS >:/


    As for the window issue, it is DEFINITELY being caused by the window width being set at Graphics.boxWidth - 72. After I reduced the spacing to 0 and returned the width to Graphics.boxWidth, the contents don't get cut off any more. HOWEVER, the dummy windows overlap and don't get drawn correctly (see screenshot). Adding any amount of spacing causes the windows to bleed out the right edge of the screen (see screenshot).


    Sorry about not having a DEMO ready, but hopefully I explained this well enough!
     

    Spoiler
    Without spacing (overlapping windows):


    View attachment 50236


    With spacing (window goes out the right edge of the screen):


    View attachment 50237



    Use Graphics.boxWidth for the width and then edit the spacing and item width/item height. The dummy windows are basically placed where the item rect is. So change the item width/height for the battle status window and you should be fine. Let me know if you still have issues.
  14. DreamX said:
    Use Graphics.boxWidth for the width and then edit the spacing and item width/item height. The dummy windows are basically placed where the item rect is. So change the item width/height for the battle status window and you should be fine. Let me know if you still have issues.



    Yup, this was it. I think I got it working now. Thank you!
  15. Some suggestions for when you decide to update:

    • Change opacity of party and actor command windows.
    • Change windowskin background into dim message background. This is something I've taken an interest in.
  16. @Waterguy Glad I read your post, because I have the same fps issues, not that low fps drops but it is noticable in comparison to not enable this plugin. Although, I use the console lot for debugging stuff, but I can work around I hope.
  17. BloodletterQ said:
    Some suggestions for when you decide to update:

    • Change opacity of party and actor command windows.
    • Change windowskin background into dim message background. This is something I've taken an interest in.

    The opacity of party and actor command windows already added


    v1.6:


    Added dim window parameter options (you should also set the opacity of the windows to 0 probably) @BloodletterQ


    Added parameters for functionality of directional and cancel buttons @masterlobo
  18. Sorry to be asking such a simple question but as a complete beginner to this I am utterly lost. I read through this thread and saw DreamX helping others and they completely


    understood what he was saying and I'm just not savvy enough to pick it up.


    I'm trying to just mess with the gauges at the moment, it seems like anything I change just doesn't actually do anything. I'm not sure I completely understand what I should be changing, in fact.


    I'll post a screenshot of what I've been playing with to see if it's right.

    Spoiler
    v8vLqri.png



    So that's the section I've been trying to edit with the hope it would let me make the gauges smaller.


    So far the only thing I've been able to noticeably change was when I changed gaugeRect.y to rect.y (because I saw it mentioned and wanted to know what it did) and it just made the gauge disappear while the ATB meter was filling, then when it filled up, the HP meter would pop up right under the atb meter.


    My problem is that I just don't know what I should actually be changing to modify the values.


    EDIT: I should edit this to say that I got a bit of help from Waynee95 so huge thanks to him. I'm still trying to figure some stuff out though, like making gauges thinner.


    EDIT 2: Just another edit to say that Waynee95 helped me out even further and I'm now basically set in terms of HP gauges and stuff.