Bug Closed · Resolved

target deviation at higher coordinates and viewing direction W/E/S/N

#5233 opened by Unknown 2 years ago

Unknownreported this bug

Summary

Describe the bug encountered in detail.

I observed a deviation in the targets of skills such as projectile, shoot,..., etc. These target deviations are revealed at higher coordinates. This deviation is a bit strange, while mobs facing the East direction exhibit perfect shooting, this deviation occurs when looking in other directions. So it is absurd that it works towards the East direction and deviates towards other directions.

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

ZOMBIE_2:
  Type: ZOMBIE
  Display: '&8[&fLvl | <caster.level>&8] &a&lAtıcı Zombi &8(&f<caster.hp{round=1}>&c<&heart>&8)'
  Health: 15
  Damage: 12
  Faction: Normal
  Equipment:
  - CLAY_BALL HAND
  Options:
    Silent: false
  LevelModifiers:
    Health: 4
    Damage: 4
    KnockbackResistance: 0.01

  Skills:
  - setname{name=<caster.name>;delay=-1} @self ~onDamaged
  - setname{name=<caster.name>;delay=-1} @self ~onDeath
  - setname{name=<caster.name>;delay=-1} @self ~onCombat

  - skill{s=aticizombi} @Self ~onTimer:100




aticizombi:
  TargetConditions:
  - distance{d=<15}
  Cooldown: 0
  Skills:
  - projectile{bulletType=ITEM;material=CLAY_BALL;onTick=aticizombi-Tick;onHit=aticizombi-Hit;onEnd=aticizombi-End;i=1;v=15;mr=20;} @Forward{f=15;uel=true}
  - sound{s=entity.arrow.shoot;v=2} @Self

aticizombi-Tick:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=reddust;color=#FFFFFF;a=5;hs=0.02;vs=0.02} @origin
aticizombi-Hit:
  Conditions:
  Cooldown:
  Skills:
  - damage{a=7;pkb=true;ia=true} 
aticizombi-End:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=cloud;a=3;hs=0.3;vs=0.3;s=0.1} @origin
  - sound{s=block.basalt.hit;p=1.5}

Describe what happens currently, while the bug is affecting your server.

The error is that skills such as shoot, projectile, etc., written on defualt mobs like skeleton, miss their targets and become ridiculous.

Describe what you think should happen instead of the bug.

If deviations appear in higher coordinates. It can take the location of the mob itself, such as x = 0, z = 0, and run it properly as if it were at the center of the world.

Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

https://pastebin.com/X9wdvavE

Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

Describe what you think the issue or any potential fixes may be.

This error deals with target deviation at high coordinates. It works perfectly only when facing East in high coordinates. In other directions, it shows target deviation. There is a problem that it cannot find the target in the other 3 directions and high coordinates.

(1 month for gif) https://ibb.co/47ydQ2p

[Legacy attachment omitted]

Unknowncommented

@JasperRuiz96 Have you tried setting the "faulty" attribute (both in the mechanic and on the targeter) to false? Also, i tried to look at your config to figure that out myself, but it seems you sent the latest.log two times instead of sending both that and the skill configuration

Unknowncommented

first of all I apologize. I shared the log twice without realizing it. I fixed the my mistake and pasted the config below the question.

The skill I wrote is a very simple skill, but since we use random teleport in survival, it can throw very far.

of this world When I use the skills at x:100 y:70 z:100 coordinates, there is no problem. I had already tried the skills at these coordinates and thought they worked without any problems.

When I turned on randomspawn and this mob spawned in distant coordinates, I suddenly noticed something unusual in its skill.

ZOMBIE_2:
  Type: ZOMBIE
  Display: '&8[&fLvl | <caster.level>&8] &a&lAtıcı Zombi &8(&f<caster.hp{round=1}>&c<&heart>&8)'
  Health: 15
  Damage: 12
  Faction: Normal
  Equipment:
  - CLAY_BALL HAND
  Options:
    Silent: false
  LevelModifiers:
    Health: 4
    Damage: 4
    KnockbackResistance: 0.01

  Skills:
  - setname{name=<caster.name>;delay=-1} @self ~onDamaged
  - setname{name=<caster.name>;delay=-1} @self ~onDeath
  - setname{name=<caster.name>;delay=-1} @self ~onCombat

  - skill{s=aticizombi} @Self ~onTimer:100

-----------


aticizombi:
  TargetConditions:
  - distance{d=<15}
  Cooldown: 0
  Skills:
  - projectile{bulletType=ITEM;material=CLAY_BALL;onTick=aticizombi-Tick;onHit=aticizombi-Hit;onEnd=aticizombi-End;i=1;v=15;mr=20;} @Forward{f=15;uel=true}
  - sound{s=entity.arrow.shoot;v=2} @Self

aticizombi-Tick:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=reddust;color=#FFFFFF;a=5;hs=0.02;vs=0.02} @origin
aticizombi-Hit:
  Conditions:
  Cooldown:
  Skills:
  - damage{a=7;pkb=true;ia=true} 
aticizombi-End:
  Conditions:
  Cooldown:
  Skills:
  - effect:particles{particle=cloud;a=3;hs=0.3;vs=0.3;s=0.1} @origin
  - sound{s=block.basalt.hit;p=1.5}
Unknowncommented

Closing due to inactivity - it is likely that the faulty=false attribute should be used for this; if not, re-open with configs using this attribute and logs outlining the modern issue.

Sign in to join the discussion.