Page 1 of 1

Default tile placement on area build?

Posted: Sat Sep 17, 2005 12:23 am
by Bannor Bloodfist
How do I force a specific tile or tile type to be the default terrain AND how do I force that tile to FILL that terrain when an area is created?

Say I want to create a 8 x 8 area and have it automatically filled, as in every tile, with the default of sand?

Posted: Sat Sep 17, 2005 3:14 am
by Lord Sullivan
Bannor, the default terrain is defined in the SET file where the lines:

Code: Select all

[GENERAL]
Name=TCN01
Type=SET
Version=V1.0
Interior=0
HasHeightTransition=1
EnvMap=tcn01__ref01
Transition=4
DisplayName=1605
Border=building
Default=Cobble   <------------
Floor=Cobble      <------------
Now in order to have tiles behave as default they need not to be define a group like, i.e. 1 tile 1x1 "House" is assigned a group "House", but no tiles in the terrain "Cobble" has a group assigned to them... they just have the tile definitions and the engine looks for the default tiles that have the same definition name then the Default terrain such as:

Code: Select all

[TILE43]
Model=tcn01_h05_01
WalkMesh=msb01
TopLeft=Cobble    <-------
TopLeftHeight=0
TopRight=Cobble   <-------
TopRightHeight=0
BottomLeft=Cobble  <------
BottomLeftHeight=0
BottomRight=Cobble  <-------
BottomRightHeight=0
Top=Wall
Right=
Bottom=
Left=
MainLight1=1
MainLight2=1
SourceLight1=1
SourceLight2=1
AnimLoop1=1
AnimLoop2=1
AnimLoop3=1
Doors=0
Sounds=0
PathNode=G
Orientation=0
ImageMap2D=MICN01_H05
That is a default tile will be placed automatically and randomly when an area is first created.

Hope that helps

Posted: Sat Sep 17, 2005 3:03 pm
by Bannor Bloodfist
Thanks, that's exactly what I needed to know, where to change that 'default' terrain and how to make it 'fill' the area.