Level-based experience gain with YEP

Discussion in 'Javascript/Plugin Support' started by Alphaistimz, Jun 12, 2019.

  1. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    102
    First Language:
    Danish
    Primarily Uses:
    RMMV
    I did discover a bug in my regex that I have fixed and updated my reply with the plugin.
    However, I was not able to reproduce the bugs you encountered.
    It seems like the exp is NaN which makes it not able to be drawn.
    Could you attach an image of your plugin order?
     
    #21
  2. Alphaistimz

    Alphaistimz AlphaDio Production Veteran

    Messages:
    69
    Likes Received:
    4
    Location:
    Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    As far as I know, this is why Yanfly stops making new plugins since the real tedious work comes from compatibility issues...
    I also think that with your plugin installed, the YEP victory aftermath should display the EXP gain individually too to make it look organized.
     

    Attached Files:

    Last edited: Jun 14, 2019
    #22
  3. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    102
    First Language:
    Danish
    Primarily Uses:
    RMMV
    I have looked through pretty much every plugin you use and did not find anything that should cause the error.
    However, I did discover some general potentional compatibility issues within the plugin, so I have fixed those.
    I have updated my reply with the fixes.

    The problem might actually still be a regex problem. Could you show me the notetags you use? Btw, it seems like you did not download the updated version I posted yesterday with the initial regex fix, which was the most likely cause of the problem.
     
    #23
  4. Alphaistimz

    Alphaistimz AlphaDio Production Veteran

    Messages:
    69
    Likes Received:
    4
    Location:
    Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    Code:
    <Default Row: 1>
    <Sideview Battler: Aurian Soldier F>
    <Static Level: 1>
    <Passive State: 13, 70>
    <Custom Parameter exp Formula>
    var lvlDiff = (a.level - level + 6).clamp(0, 11);
    var mult = [5, 4.3, 3.7, 3.2, 2.8, 2.4, 2, 1.8, 1.6, 1.4, 1.2, 1][lvlDiff];
    value = 80 * mult;
    </Custom Parameter exp Formula>
    This is the tags for the ones I tested with, but as I make more progress today (in the original game file), I add more:

    Code:
    <Default Row: 2>
    <Sideview Battler: Enemy_Archer_C>
    <Passive State: 71>
    
    <AI Priority>
    Troop Alive Members > 4: Skill 7
    Random 75%: Skill 62
    </AI Priority>
    
    <Enemy Drops>
    Armor 292: 100%
    Armor 310: 60%
    Armor 286: 60%
    Armor 316: 30%
    Item 37: 100%
    </Enemy Drops>
    I use tags for YEP Animated SV Enemies, Auto passive states, battle AI core, Extra Enemy Drops, and lastly your plugin's tags (in that order).
    I haven't tried your tags in my updated enemy database though.
     
    #24
  5. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    102
    First Language:
    Danish
    Primarily Uses:
    RMMV
    Okay, it seems like it is the bug I did fix yesterday. Please download the FIXED version and try again. I updated the reply with the plugin, so you have to download it again please. :)
     
    #25
  6. Alphaistimz

    Alphaistimz AlphaDio Production Veteran

    Messages:
    69
    Likes Received:
    4
    Location:
    Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    Tried the new version (I can tell since there's a parameter there), and the victory aftermath won't appear at all, but no error is thrown. Also, I've done quick math and the exp doesn't seem right. I have 1 lv3 enemy and 2 lv2 enemies. I have 4 active actors, so my lv3 actor should get 112 exp instead of 108. and even I use 2 lv1 actors and they get different amount of EXP. Btw victory aftermath is vital in my game since the enemies drop 5 different things each...
     
    #26
  7. Magnus0808

    Magnus0808 Software Developer Veteran

    Messages:
    111
    Likes Received:
    102
    First Language:
    Danish
    Primarily Uses:
    RMMV
    That sounds really weird. Could you send me a copy of your project or another project with the problems? Since I cannot recreate it in my own project :/
     
    #27
  8. Alphaistimz

    Alphaistimz AlphaDio Production Veteran

    Messages:
    69
    Likes Received:
    4
    Location:
    Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    So guys, the problem is solved, thanks to @Magnus0808
    You should post the plugin in the right thread and probably put a link after this...
     
    #28

Share This Page