Bug: Skills/ Timer Skills

Discussion in 'Bug Reports' started by blockhero, Feb 4, 2020.

  1. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    Enter a brief description of what is broken Skills/ Timer Skills

    What version of Minecraft are you using?
    1.12

    What server jar are you using? Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.7.2

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    MM spam in console:
    [MythicMobs] Plugin MythicMobs v4.7.2-FREE generated an exception while executing task 672976

    And

    [MythicMobs] Plugin MythicMobs v4.7.2-FREE generated an exception while executing task 68 java.lang.NullPointerException: null at io.lumine.xikage.mythicmobs.skills.SkillManager.runTimerSkills(SkillManager.java:330) ~[?:?] at io.lumine.xikage.mythicmobs.clock.MythicMobsAsyncClock.run(MythicMobsAsyncClock.java:21) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[server.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [server.jar:git-Spigot-dcd1643-e60fc34] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]

    Example Configurations

    https://pastebin.com/yKC4kjUY
     
    #1
    Last edited: Feb 6, 2020
  2. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    I disabled the timer skills in the config and the errors disappeared.
    Is there a way to fix it? since the timer skills is great potential.

    +1 spamming warn :

    Plugin MythicMobs v4.7.2-FREE generated an exception while executing task 70
    java.lang.NullPointerException: null
    at io.lumine.xikage.mythicmobs.skills.SkillManager.runTimerSkills(SkillManager.java:330) ~[?:?]
    at io.lumine.xikage.mythicmobs.clock.MythicMobsAsyncClock.run(MythicMobsAsyncClock.java:21) ~[?:?]
    at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[server.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [server.jar:git-Spigot-dcd1643-e60fc34]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
     
    #2
    Last edited: Feb 4, 2020
  3. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
  4. Seyarada

    Seyarada Member
    Quality Assurance

    Joined:
    Jun 16, 2019
    Messages:
    171
    Likes Received:
    24
    Hello, can you provide your MM config.yml?
     
    #4
  5. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    yes a can. it is here https://pastebin.com/2t19eYKJ
    P.S. in this config timer skills has off beacuse it was spamming in console.
     
    #5
  6. Seyarada

    Seyarada Member
    Quality Assurance

    Joined:
    Jun 16, 2019
    Messages:
    171
    Likes Received:
    24
    I missed this before

    Code:
    Skills:
      - skill{s=animals_hit} @target ~onTimer:10
      - remove @self ~onTimer:1200
    #### skills at skills.yml######
    animalshit:
      Conditions:
      - targetwithin 2
      Skills:
      - basedamage @target 
    The skill name in - skill{s=..} is different than the actual skill name so MM is trying to look up for that skill but not finding it
     
    #6
  7. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    Yes i know it, i rename skills after posting at pastebin (beacuse original name ... bad.) now (in skills.yml) this skill named animals_hit
     
    #7
  8. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    After renaming errors still spam in console.
     
    #8
  9. Seyarada

    Seyarada Member
    Quality Assurance

    Joined:
    Jun 16, 2019
    Messages:
    171
    Likes Received:
    24
    Does it still shows the error if you change

    Code:
    Conditions:
      - targetwithin 2
    to

    Code:
    Conditions:
      - targetwithin{d=2}
    ?
     
    #9
  10. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    Okay , man, i currently working with another server.... and i imported this mythical mobs folder and plugin for test...
    And this working.No errors no spam . WHAT THE.... Okay, i not have mythic mobs extension (or other addons with mm mechanics) . yes i have mcmmo vault but this not touching mechanics.... and at new server (mcmmo not installed) it s working.
    What?Why?!Where logic!?I can't comment this...i dont know what say...Mythical mobs's timer skills is (picture)
    [​IMG]
     
    #10
  11. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    I not touch skils - it was stopped working after some /reload.
    i imported broken code to another server - this is working.
    p.s. i not add new addons or something ... i dont know why mm start send errors. i not touch anything in mm folder .
     
    #11
  12. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    This errors still spamm in console.
    Anyone help me?Please!
     
    #12
  13. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
  14. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    47
    Likes Received:
    24
    Not sure if it will fix your issue, but try this (see below).

    Try changing this code:
    Code:
    Skills:
      - skill{s=animals_hit} @target ~onTimer:10
      - remove @self ~onTimer:1200
    #### skills at skills.yml######
    animalshit:
      Conditions:
      - targetwithin 2
      Skills:
      - basedamage @target
    To this:
    Code:
    Skills:
    - skill{s=animals_hit} @target ~onTimer:10
    - remove @self ~onTimer:1200
    #### skills at skills.yml######
    animals_hit:
      Conditions:
      - targetwithin{d=2}
      Skills:
      - basedamage @target
    I've had issues where I indented the lines under skills (on accident) and it messed up a ton of stuff.
     
    #14
    Last edited: Feb 18, 2020
  15. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    "The skill name in - skill{s=..} is different than the actual skill name so MM is trying to look up for that skill but not finding it" - seyarada , feb. 12th
    "Yes i know it, i rename skills after posting at pastebin (beacuse original name ... bad.) now (in skills.yml) this skill named animals_hit" - me, feb. 12th

    And , i change animals_hit flag to -targetwithin{d=2} , this no fix spaming in console.
    I think... error in zombie fire skill, beacuse it have timer 20 ticks (one sec) and spamm every second...But this is not correct, this is just my guess.
     
    #15
    Last edited: Feb 18, 2020
  16. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    Mythical mobs is magic, magic and madness....

    After looong testing (i delete all plugins + worlds.... e.t.c.) i find some files with errors...correctly "if i deleted this file - timer errors was disappear" ...
    Error file is.... level.dat in world folder

    I open this file with NBT explorer and deleted spawn x,y,z nbt and version....
    After this run server only with Mythical mobs - no errors...
    *Okay* , i do it again , at hosting, mm starting with other plugins and.... still not errors.

    I not joking.Really.I dont know how it working...It is really strange....
    P.S.
    A few days ago I thought the problem was in the Citizens 2 plugin - after remove this plugin errors stop spamming... now with this plugin errors stop if i delete level.dat...


    I completely stopped understanding what the problem is.
    Sometimes I think that mythical mobs just mocks me and gives errors where they just can't be.
    The worst thing is that after loading the server there are no errors but once I play 1 hour on the server they appear again ;( ...
     
    #16
  17. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    Errors stop spamm in console but skill zombie_fire still not working and not give any errors 0.0
    But:
    Skills is working (exeption Zombie fire)
    Timer skills also working normal (Pigs despawn after 1 minute normally)
    Zombies still not burning. What a?
     
    #17
  18. blockhero

    blockhero New Member

    Joined:
    Jun 18, 2018
    Messages:
    28
    Likes Received:
    0
    [UP]
    Please anyone help me? Why this skills generate errors and exeptions?
     
    #18

Share This Page