L2JMobius

Public Development => Geodata => Topic started by: Noza on January 15, 2026, 02:39:52 AM

Title: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Noza on January 15, 2026, 02:39:52 AM
I ran into this issue, but I’m not sure whether it’s a geodata problem or an issue with the mobs’ AI. I generated the geodata using //ge, taking into account only the small wall that is before the cliff.

https://youtube.com/shorts/BX5lpF1OrDI?feature=share

Should I redo the entire node again, or should I look into the NPCs’ AI? As can be seen in the video, the player cannot cross the wall.

Has anyone else had this problem?
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Naker on January 15, 2026, 11:59:06 AM
Update the repo we fixe it 1 week ago
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Noza on January 18, 2026, 03:40:52 AM
Update the repo we fixe it 1 week ago

No, it still happens the same way, I already did a clean installation of everything.
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Mobius on January 18, 2026, 02:22:52 PM
How to replicate this with a non GM character?
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Naker on January 18, 2026, 03:03:30 PM
No, it still happens the same way, I already did a clean installation of everything.

Check the geodata if are some green area mob will see as a way to go even if is not
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Mobius on January 18, 2026, 03:28:19 PM
Not a geodata issue.
The player moves too far away and monster makes multiple turns.

Try this.
Code: (diff) [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Creature.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Creature.java (revision 19455)
+++ java/org/l2jmobius/gameserver/model/actor/Creature.java (working copy)
@@ -4834,7 +4834,7 @@
  }
 
  // Pathfinding checks.
- if (!directMove && ((originalDistance - distance) > 30) && !isAfraid() && !isInVehicle)
+ if (!directMove && (!isPlayer() || ((originalDistance - distance) > 30)) && !isAfraid() && !isInVehicle)
  {
  // Path calculation -- overrides previous movement check
  move.geoPath = PathFinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId(), isPlayer());
Title: Re: Mobs Ignoring Wall Collision – Geodata Problem?
Post by: Mobius on January 22, 2026, 12:12:30 AM
Committed with https://gitlab.com/MobiusDevelopment/L2J_Mobius/-/commit/f5e20d5183d73b32f038b212bc9d318291a34668