how to set up a boat.

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
guialtran
Master Poster
Posts: 98
Joined: Wed Jul 30, 2008 12:42 pm

how to set up a boat.

Post by guialtran » Mon Jun 18, 2018 12:35 pm

Hello everybody!
I'm using the translator to write this, sorry.

looking at various configurations of several different servers I noticed that each of them has a different way of declaring the boats.

this topoco is to clarify the forceful way to declare a boat in the most recent version, POL100.

I am going to put here the forms that I have already seen to declare ships.

Code: Select all

1-)
Boat 0x20000
{
Name boat_1_north
MultiId 0x0
}
only one face is declared.

2-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
    OldObjtype 0x4000
    OldObjtype 0x4001
    OldObjtype 0x4002
    OldObjtype 0x4003
}
only one face is declared.
the person unites all 4 types of objects.

3-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
    OldObjtype 0x4001
    OldObjtype 0x4002
    OldObjtype 0x4003
}
only one face is declared.
the person unites the next 3 types of objects.

4-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
}

Boat 0x20001
{
Name boat_1_east
MultiId 0x1
}

Boat 0x20002
{
Name boat_1_south
MultiId 0x2
}

Boat 0x20003
{
Name boat_1_west
MultiId 0x3
}
independently declare each face of the boat.

So my doubt remains, what is the correct way to do it? :deadhorse:
@CronosKing

DevGIB
Grandmaster Poster
Posts: 204
Joined: Mon Feb 06, 2006 6:12 am

Re: how to set up a boat.

Post by DevGIB » Mon Jun 18, 2018 7:05 pm

As per our discussion on discord i believe it works as follows:

Code: Select all

create item 0x20000 -> create boat from item -> board boat and turn direction -> drydock boat and receive item 0x20001 -> reboot server and item becomes 0x20000 again.
Someone might need to confirm.

guialtran
Master Poster
Posts: 98
Joined: Wed Jul 30, 2008 12:42 pm

Re: how to set up a boat.

Post by guialtran » Mon Jun 18, 2018 9:01 pm

I understood that several people are using "OldObjtype" in the wrong way.

I have a doubt, I have to declare the four faces of the boat in the file itemdesc.cfg?
@CronosKing

Yukiko
Distro Developer
Posts: 2501
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: how to set up a boat.

Post by Yukiko » Tue Jun 19, 2018 8:20 am

Only use OldObjType if you have changed the ObjType number of an object and need to update the objects in your server data files. For example if you change ObjType 0x10001 to ObjType 0x20001 you would add OldObjType 0x10001 to the definition of the changed object, restart the server and it will update any objects in the server data files with the old ObjType to the new ObjType. You should shut down the server afterwards and remove any OldObjType entries from your itemdesc.cfg files.

I think developers forget that last step. I know I have on several occasions.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Post Reply