L2JMobius

Free Users => Geodata => Topic started by: Stary on June 18, 2020, 04:02:28 AM

Title: NPC on Roof's
Post by: Stary on June 18, 2020, 04:02:28 AM
Hello guys/girls.

I have found a quiet big problem related to geoengine. I been check few geodatas available through google for h5, and after conversion to l2d its same issue with same npc's. As on pic below you can see their on roof's.
Spawn type: fixed, spawn loc 17999 144484 -3046, location: 17999 144484 -2768.
Any idea why those npc getting y higher than set, any any possible fix or ifnromation how to find solution to fix it?

Regards,
Hizi

https://cdn.discordapp.com/attachments/722874805573124116/722941441701314631/Shot00002.jpg
Title: Re: NPC on Roof's
Post by: Mobius on June 18, 2020, 09:00:55 AM
Do you use the latest free version files?
What you post cannot happen on latest version.
Title: Re: NPC on Roof's
Post by: Stary on June 18, 2020, 01:53:07 PM
Yes, been compiled 2 days ago.

I been double checked. I download again, compile, and it's same.
Title: Re: NPC on Roof's
Post by: Stary on June 18, 2020, 04:43:05 PM
Yes, been compiled 2 days ago.

I been double checked. I download again, compile, and it's same.

As i can see its been fix for interlude:
https://l2jmobius.org/forum/index.php?topic=4898

But it's not for H5.
Title: Re: NPC on Roof's
Post by: Stary on June 18, 2020, 05:17:18 PM
Code: [Select]
@ -398,8 +398,8 @@ public class Spawn extends Location implements IIdentifiable, INamable
}
}

// Do not correct z of flying NPCs.
if (!npc.isFlying())
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
// Do not correct Z distances greater than 300.

fix. its your work Mobius, just wasnt applied to 2.6 high Five.
Title: Re: NPC on Roof's
Post by: Mobius on June 18, 2020, 07:10:57 PM
I will commit it on other projects as well when I have some time.
Title: Re: NPC on Roof's
Post by: Mobius on June 18, 2020, 10:02:26 PM
Fixed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/dfcc71fd7a7f468bc402df8890527856f65c2f7f