Bug Closed · Resolved

Boss regains full health after unloading the chunk it is in.

#3487 opened by Unknown 3 years ago

Unknownreported this bug

Summary

Players on the server have reported that if you start fighting a boss and then teleport to a different world and then back, the boss will regain full health.

Steps to reproduce

Monster:
  Type: Slime
  Display: '<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8]'
  Damage: 10
  Health: 5000
  Faction: boss
  DamageModifiers:
  - ENTITY_ATTACK 0.60
  - PROJECTILE 0.50
  - MAGIC 1
  # Stop farms
  - DROWNING 0
  - BLOCK_EXPLOSION 0
  - POISON 0
  - WITHER 0
  - FALLING_BLOCK 0
  - THORNS 0
  - LAVA 0
  - FIRE_TICK 0
  - FIRE 0
  - HOT_FLOOR 0
  - FALL 0
  - SUFFOCATION 0
  - CONTACT 0
  Options:
    PreventSunburn: true
    AlwaysShowName: true
    PreventOtherDrops: true
    PreventMobKillDrops: true
    MovementSpeed: 0.5
    Silent: true
    Glowing: false
    Despawn: false
    ShowHealth: false
    # Slime specific
    KnockbackResistance: 1
    PreventSlimeSplit: true
    Size: 3
  BossBar:
    Enabled: true
    Title: '<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8]'
    Range: 40
    Color: PURPLE
    Style: CLEAR
  Skills:
  # Self destruct/despawn
  - remove{delay=24000} @self ~onSpawn
  - setvariable{var=caster.timer;type=INTEGER;value=1200} @self ~onSpawn
  - delay 20
  - variableadd{var=caster.timer;amount=-1} @self ~onTimer:20
  # On spawn
  - message{m="<#FF7D20>&l>&r &7A <#FF7D20>&lOminous Ooze&r &7has been summoned nearby"} @PlayersInRadius{r=30} ~onSpawn
  # On timer
  - setname{name="<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8] &7<caster.var.timer>s"} @self ~onTimer:10
  - glow{d=20;color=GOLD} @self ~onTimer:20
  # On damaged
  # - skill{s=MonsterBow} ~onDamaged 0.5 # Stop bows
  - throw{velocity=5;velocityY=4} @EIR{r=4} ~onDamaged 0.1
  # - skill{s=MonsterGoo} ~onDamaged 0.8
  # On Attack
  # - skill{s=MonsterGoo} ~onAttack
  # On death
  - message{m="<#FF7D20>&l>&r <#FF7D20>&lOminous Ooze &r&7dissolved"} @PlayersInRadius{r=30} ~onDeath
  # Skills activated at health
  # - skill{s=MonsterRandom} =4500
  # - skill{s=MonsterRandom} =4000
  # - skill{s=MonsterRandom} =3500
  # - skill{s=MonsterRandom} =3000
  # - skill{s=MonsterRandom} =2500
  # - skill{s=MonsterRandom} =2000
  # -----------] Counter Exploits [--------
  # Stop players from putting the boss in a boat
  - dismount ~onDamaged 1
  # Help with water
  - potion{t=DOLPHINS_GRACE;d=2000;l=2;force=true} @self ~onTimer:100

Intended correct behavior

The boss should keep the same health

Log snippet

This could be a reason why as its not able to process the hp when players teleport away!

[12:32:43 ERROR]: [MythicMobs] Failed to process placeholder <caster.hp> in xPlaceholderString{'<#FF7D20>Wandering Minion [<caster.hp>/<caster.mhp>]'}
[12:32:43 ERROR]: [MythicMobs]     null (java.lang.NullPointerException)
[12:32:43 WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord.
[12:32:43 ERROR]: [MythicMobs] Failed to process placeholder <caster.mhp> in xPlaceholderString{'<#FF7D20>Wandering Minion [<caster.hp>/<caster.mhp>]'}
[12:32:43 ERROR]: [MythicMobs]     null (java.lang.NullPointerException)
[12:32:43 WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord.
[12:32:43 WARN]: [MythicMobs] ✗ Config Error for Mob 'RandomSpawn' in 'RandomSpawn.yml': Error processing skills for mob RandomSpawn. Mob type may no longer exist, or may have become corrupted by a server crash, and will be removed.
Unknowncommented

Found another error when this occurs

[20:52:55 ERROR]: Could not pass event EntityDamageByEntityEvent to MythicMobs v5.1.4-3aa1b5d2
java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.api.adapters.AbstractEntity.getMetadata(String)" because the return value of "io.lumine.mythic.core.mobs.ActiveMob.getEntity()" is null
        at io.lumine.mythic.bukkit.adapters.BukkitSkillTriggers.onDamagedTrigger(BukkitSkillTriggers.java:360) ~[MythicMobs 5.1.4.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor404.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:git-Purpur-1814]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:249) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1162) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1011) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:962) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1196) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.world.entity.LivingEntity.damageEntity0(LivingEntity.java:2191) ~[?:?]
        at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1409) ~[?:?]
        at org.bukkit.craftbukkit.v1_19_R1.entity.CraftLivingEntity.damage(CraftLivingEntity.java:365) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.advancedplugins.ae.enchanthandler.effectsreader.RunnableEffect.damage(RunnableEffect.java:2708) ~[AdvancedEnchantments_8.11.8.jar:?]
        at net.advancedplugins.ae.enchanthandler.effectsreader.RunnableEffect.damage(RunnableEffect.java:2672) ~[AdvancedEnchantments_8.11.8.jar:?]
        at net.advancedplugins.ae.enchanthandler.effectsreader.RunnableEffect.run(RunnableEffect.java:668) ~[AdvancedEnchantments_8.11.8.jar:?]
        at net.advancedplugins.ae.enchanthandler.effectsreader.RunnableEffect.init(RunnableEffect.java:244) ~[AdvancedEnchantments_8.11.8.jar:?]
        at net.advancedplugins.ae.enchanthandler.ProcessEnchantment$1.run(ProcessEnchantment.java:277) ~[AdvancedEnchantments_8.11.8.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1500) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:486) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1814]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Unknowncommented

Anouther error that occurs

java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.api.adapters.AbstractEntity.getMaxHealth()" because the return value of "io.lumine.mythic.api.skills.SkillCaster.getEntity()" is null
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.PlaceholderExecutor.lambda$load$16(PlaceholderExecutor.java:97)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.types.MetaPlaceholder.apply(MetaPlaceholder.java:20)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.PlaceholderParser.parse(PlaceholderParser.java:103)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.parsers.PlaceholderStringImpl.get(PlaceholderStringImpl.java:37)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.parsers.PlaceholderStringImpl.get(PlaceholderStringImpl.java:29)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.placeholders.parsers.PlaceholderStringImpl.get(PlaceholderStringImpl.java:51)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.mobs.ActiveMob.getDisplayName(ActiveMob.java:262)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.TriggeredSkill.<init>(TriggeredSkill.java:58)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.skills.TriggeredSkill.<init>(TriggeredSkill.java:31)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.mobs.ActiveMob.setDespawnedSync(ActiveMob.java:502)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.core.mobs.ActiveMob.lambda$getEntity$3(ActiveMob.java:232)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
	at MythicMobs 5.1.4.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1500)
	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:486)
	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1424)
	at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1194)
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310)
	at java.base/java.lang.Thread.run(Thread.java:833)

MythicMobs version: 5.1.4-3aa1b5d2
Bukkit version: git-Purpur-1814 (MC: 1.19.2)


Unknowncommented

New error that glitches the bos

java.lang.NullPointerException

MythicMobs version: 5.1.4-3aa1b5d2 Bukkit version: git-Purpur-1845 (MC: 1.19.2)

[06:34:45] [Server thread/ERROR]: [MythicMobs] Failed to process placeholder <caster.hp> in xPlaceholderString{'<#FBAB79>Wandering Minion [<caster.hp>/<caster.mhp>]'} [06:34:45] [Server thread/ERROR]: [MythicMobs] null (java.lang.NullPointerException) [06:34:45] [Server thread/WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord. [06:34:45] [Server thread/ERROR]: [MythicMobs] Failed to process placeholder <caster.mhp> in xPlaceholderString{'<#FBAB79>Wandering Minion [<caster.hp>/<caster.mhp>]'} [06:34:45] [Server thread/ERROR]: [MythicMobs] null (java.lang.NullPointerException) [06:34:45] [Server thread/WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord. [06:34:45] [Server thread/WARN]: [MythicMobs] ✗ Config Error for Mob 'RandomSpawn' in 'RandomSpawn.yml': Error processing skills for mob RandomSpawn. Mob type may no longer exist, or may have become corrupted by a server crash, and will be removed.

Sign in to join the discussion.