Jump to content
  • 0

Collisions problem . l2jfrozen


Question

Posted (edited)

-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

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • Like 1
  • 0
Posted

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

  • 0
Posted

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.

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...