Jump to content

Recommended Posts

Posted

This guide is about implementing new mounts via transformations. The example that follows is based on GF client.

 

Assuming you succesfully created your custom ukx, it's time to edit dat files.

 

Transformdata.dat follows this format:

id; gender; npc id; weapon id; entrance effect; exit effect; unk1; unk2; unk3; unk4

An important value is unk1. If set to 0, only the npc will appear (for example anakim transformation). If set to 2, the character will also appear and will try to mount the npc.

 

For transformations that have the value set to 2, you need to also edit ridedata.dat.

This file follows the format of: ride_type; npc id (in hex form); bone; bunch of data;

Bunch of data includes 3 float numbers for translation and 3 for rotation for each character (MFighter, Ffighter, Mmagic, Fmagic, etc), based on the coordinate system of the bone that was specified before (click).

The last numbers of Bunch of data refer to the name offset of the rider.

 

Ride_type is important also because it affects the animation of the rider. 

If set to 1, strider_MFighter animation will be used.

If set to 2, wyvern_MFighter animation will be used.

If set to 3, pet_MFighter animation will be used.

 

ride-type.png

 

 

Needless to say, custom npc has to be added to npcgrp, as well as create its own class (if needed) and its own animations file (for example lineagemonster.int).

 

 

Some notes:

1) Npc class is responsible for the proper simulation of the cloak, so that it does not get inside the mount. My assumption is that it creates collision spheres or cylinders by referencing bone indices, but haven't delved into it any deeper.

2) By the same instructions you can create a flying transformation. However I haven't found a solution to make the character appear as well. If unk1 is set to 2, the whole navigation system and skillbar that should appear with flying transformation are getting messed up. However if unk is set to 0 everything becomes functional.

3) Make sure you implement everyting correctly on the server side as well. Don't forget that there is limitation about flying around gracia continent only.

 

 

 

 

  • Like 5
Posted

Update on cloak collision simulation:

 

Part of class script
SimulationCollisionObjects.length = 2;
SimulationCollisionObjects [0] = new class'SimulationCylinderCollision ';
SimulationCylinderCollision (SimulationCollisionObjects [0]) .BoneIndexA = 5;
SimulationCylinderCollision (SimulationCollisionObjects [0]) .BoneIndexB = 6;
SimulationCylinderCollision (SimulationCollisionObjects [0]). Radius = 35;
SimulationCylinderCollision (SimulationCollisionObjects [0]) .SphereA = true;
SimulationCylinderCollision (SimulationCollisionObjects [0]) .SphereB = false;

SimulationCollisionObjects [1] = new class'SimulationCylinderCollision ';
SimulationCylinderCollision (SimulationCollisionObjects [1]) .BoneIndexA = 5;
SimulationCylinderCollision (SimulationCollisionObjects [1]) .BoneIndexB = 4;
SimulationCylinderCollision (SimulationCollisionObjects [1]). Radius = 28;
SimulationCylinderCollision (SimulationCollisionObjects [1]) .SphereA = false;
SimulationCylinderCollision (SimulationCollisionObjects [1]) .SphereB = false;

 

The result

collision.png

 

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
Reply to this topic...

×   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.



  • Posts

    • https://prnt.sc/Bkkc0ShGXv9m https://prnt.sc/-JFLvZXsn27A
    • Hello guys want to sell adena in L2 Reborn Signature x1  Stock =14kk good price 
    • Hi guys, I have the following problem, I want to set up two servers on the same dedicated server and I can't.   L2jacis 409 Linux Server. The first gameserver has the following configuration: # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 190.25.103.103 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7777 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 1 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server1 Login = server1 Password = server1 I configured the second gameserver like this:   # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 0.0.0.0 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7788 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 2 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server2 Login = server2 Password = server2 apart from having tested 0.0.0.0 on the second gameserver I also tried 127.0.0.1 In both cases I see the two servers in the login when I log in, but I try to enter the one with the lowest ping and it kicks me out. The other server always appears with ping 9999 and I try to enter but it doesn't do anything and it freezes the login so I have to log in again. The hexids are in their respective folders. For server 1, it has its hexid inside the gameserver config folder, and I checked that the hexid id is the same id, for example id 1 in the gameserver is also id1 for server 1, and hexid 2 has its hexid 2 for server 2. The server ports are open and listening when I turn on both gameservers. I really don't know what could be wrong. If you could give me some help I would appreciate it. Excuse my English.
    • We have both old channels from 2006-2009 with the 3rd verification function enabled, and new ones.   For availability, please contact us below: Link - Telegram Link - Facebook WhatsApp - Click here to go to WhatsApp chat
    • You can contact me on skype: niedziolek50
  • Topics

×
×
  • Create New...