Skip to content

Collisions problem . l2jfrozen

Featured Replies

-Hello folks !
-I am facing a problem with collisions(radius, height) of females chars ,they seems like they flying.
-picture here-> https://ibb.co/gzmkQkK

-Collisions are taken from navicat table CharTemplates.

- i tried several things to fix that but without success!

-i post here few codes .if someone can help will be greatful!

-gameserver/sql/datatable/charTemplateTable (from sql) -> https://pastebin.com/vvQaXqjP

-gameserver/templates/L2PcTemplate -> https://pastebin.com/bx88VGKR

-gameserver/templates/L2CharTemplate -> https://pastebin.com/RbsKc5rQ

-gameserver/model/actor/appearance/PcAppearance.java -> https://pastebin.com/pkSJGVgm

-gameserver/model/base/Sex.java -> https://pastebin.com/qDUgcW9P ..

 

i tried to do secondary collisionHeight and radius . because as u see in charTemplateTable is only m_col_h and m_col_r 

and take getSex() method for each of them . but server not even opened. 
i did many things but without success... 

 

Thanks in advance!!

* If someone have an l2jfrozen project fixed and can send it , i will find the fix!
Closest pack i found was l2jhellas but charStats was with xml.

Edited by Irrelevant

  • 2 months later...

Has anyone already solved the old problem and can leave a solution?

Just change the collision height to a bit lower, like -1 or -2. See the xml of any other pack and use the same values.

It probably uses male height, or use rounded int values and not double.

 

Edit

As expected :

 

Quote

 

public final int collisionRadius;

public final int collisionHeight;

 

 

They probably rounded higher to avoid to get foots inside the ground.

Edited by Tryskell

I tried to make the duplication for the female character, but, no success!

since my knowledge limit is still low.
I tried something like '' L2PcTemplate'' ''CharInfo" and "UserInfo".
currentCollisionRadiusFemale

Start by debugging the values that are being sent (System.out.println(collisionHeight)) and check if they are correct (compare them to values from packs that it works fine).

 

On 6/15/2022 at 5:12 PM, MadaraWTF said:

I tried something like '' L2PcTemplate'' ''CharInfo" and "UserInfo"

This makes no sense, don't overcomplicate things in your mind. Height is a single static number that is sent to the client depending on the player's base class. If this number is incorrect, the player will either be above or below ground. Print this number to see if it is correct. Add the println() statement I mentioned above inside UserInfo runImpl() method and then login and check your gameserver console for the value that is being sent.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.