How do airships and boats spawn?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

How do airships and boats spawn?

Post 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?
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

Re: How do airships and boats spawn?

Post by RogerSmith »

Nobody has any ideas?
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: How do airships and boats spawn?

Post by tukune »

maybe
AirShipController.java
AirShipManager.java
...
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

Re: How do airships and boats spawn?

Post 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?
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: How do airships and boats spawn?

Post 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.
Image
"There are three kinds of people in this world, those who can count and those who can't"
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: How do airships and boats spawn?

Post 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.
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

Re: How do airships and boats spawn?

Post 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?
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

Re: How do airships and boats spawn?

Post by RogerSmith »

So... you know that it's certain packets or whatever but don't know which?

Cmon. Not a big deal is it?
HorridoJoho
L2j Senior Developer
L2j Senior Developer
Posts: 795
Joined: Sun Aug 14, 2005 11:27 am

Re: How do airships and boats spawn?

Post 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.
RogerSmith
Posts: 69
Joined: Fri Oct 01, 2010 11:57 am

Re: How do airships and boats spawn?

Post 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.
Post Reply