Page 1 of 1

How do airships and boats spawn?

Posted: Thu Jul 05, 2012 11:00 pm
by RogerSmith
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:
L2JDP Revision Number:

NPCs have IDs and so on, but how do boats/pcs/airships get their textures/models spawned?

Re: How do airships and boats spawn?

Posted: Fri Jul 06, 2012 10:21 am
by RogerSmith
Nobody has any ideas?

Re: How do airships and boats spawn?

Posted: Fri Jul 06, 2012 5:22 pm
by tukune
maybe
AirShipController.java
AirShipManager.java
...

Re: How do airships and boats spawn?

Posted: Fri Jul 06, 2012 5:53 pm
by RogerSmith
IamOR wrote:maybe
AirShipController.java
AirShipManager.java
...
I've seen those

That is not what I am asking.

Where is model picked up from?

In client NPCs can be viewed from Npc viewer. So can players.

But Ships are not NPCs? You can't check them through npc viewer.

So how does java know what to show the client? How Do I just summon or get the model/texture/mesh without the airship object?

Re: How do airships and boats spawn?

Posted: Fri Jul 06, 2012 6:53 pm
by nonom
RogerSmith wrote:
IamOR wrote:maybe
AirShipController.java
AirShipManager.java
...
I've seen those

That is not what I am asking.

Where is model picked up from?

In client NPCs can be viewed from Npc viewer. So can players.

But Ships are not NPCs? You can't check them through npc viewer.

So how does java know what to show the client? How Do I just summon or get the model/texture/mesh without the airship object?
Not sure, but Airships and Boats are like static objects and probably they can't be spawned in any place.

Re: How do airships and boats spawn?

Posted: Fri Jul 06, 2012 10:59 pm
by MELERIX
RogerSmith wrote:Where is model picked up from?
from client directly.
RogerSmith wrote:In client NPCs can be viewed from Npc viewer. So can players.
these are not npcs, but vehicles objects.
RogerSmith wrote:But Ships are not NPCs? You can't check them through npc viewer.
you can't, because are not npcs
RogerSmith wrote:So how does java know what to show the client? How Do I just summon or get the model/texture/mesh without the airship object?
by packets, and specific ID, like Doors, Signboards, Thrones, Chairs, etc.

Re: How do airships and boats spawn?

Posted: Sun Jul 08, 2012 8:31 pm
by RogerSmith
Right this is a hard concept to grasp.

I've seen practically all airship related files, vehicle as well.

I cannot understand what actually tells the client what to show when someone requests to summon an airship.
Or how the bloody hell a boat appears? What is that particular thing in the client that shows boats and airships to the player?

Re: How do airships and boats spawn?

Posted: Wed Jul 11, 2012 10:24 am
by RogerSmith
So... you know that it's certain packets or whatever but don't know which?

Cmon. Not a big deal is it?

Re: How do airships and boats spawn?

Posted: Wed Jul 11, 2012 4:25 pm
by HorridoJoho
Your best bet would be to look into the vehicle packets currently present in core.
It is "VehicleInfo" for normal boats and "ExAirShipInfo" for, who guessed it? Yes Air ships :)

Next time you want to search something like this watch at the "com.l2jserver.model.actor.instance" package.
Usually all actor classes have the "sendInfo" method of "L2Object" overwritten, which sends the info you're asking for.

Re: How do airships and boats spawn?

Posted: Thu Jul 12, 2012 3:14 pm
by RogerSmith
FBIagent wrote:Your best bet would be to look into the vehicle packets currently present in core.
It is "VehicleInfo" for normal boats and "ExAirShipInfo" for, who guessed it? Yes Air ships :)

Next time you want to search something like this watch at the "com.l2jserver.model.actor.instance" package.
Usually all actor classes have the "sendInfo" method of "L2Object" overwritten, which sends the info you're asking for.
Great, thank you.