Zwerkules was so kind to write it out for me some time ago (thanks again, Zwerk!).
Note: This is for a terrain tile, not a crosser (I've not done crossers, yet...).
And you need to add a new terrain to be able to add a new edge model.
Edit 1: I forgot the TERRAIN TYPES-count.
Edit 2: Remark: This only handles one (terrain) model.
This is, how it was working for me (I copied those entries from an existing terrain and replace according entries with my own)
You need an already existing terrain and add 6 tile-settings, where your new terrain can be connected to an existing one.
Open the set file (eg. in a text editor) and raise the TERRAIN TYPES-count:
[TERRAIN TYPES]
Count=[former value + 1]
And add a new terrain count after the last entry (raised by 1):
[TERRAIN32]
Name=floor_flat_sum
UnlocalizedName=floor_flat_sum
Remark: 32 was the count in my case.
----
In this case, "wf_su_s40_01" is my new terrain model.
"Grass" ist the already existing terrain, "floor_flat_sum" my new one.
Writings with a * are remarks, so don't use them in the set-file!
*1 All new terrain*
[TILE257]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=floor_flat_sum
TopLeftHeight=0
TopRight=floor_flat_sum
TopRightHeight=0
BottomLeft=floor_flat_sum
BottomLeftHeight=0
BottomRight=floor_flat_sum
BottomRightHeight=0
Top=
Right=
Bottom=
Left=
(*Rest of the entries removed = ...*)
*2 New terrain TopLeft,TopRight + BottomRight*
[TILE258]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=floor_flat_sum
TopLeftHeight=0
TopRight=floor_flat_sum
TopRightHeight=0
BottomLeft=Grass
BottomLeftHeight=0
BottomRight=floor_flat_sum
BottomRightHeight=0
...
*3 New terrain TopLeft + BottomLeft*
[TILE259]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=floor_flat_sum
TopLeftHeight=0
TopRight=Grass
TopRightHeight=0
BottomLeft=floor_flat_sum
BottomLeftHeight=0
BottomRight=Grass
BottomRightHeight=0
...
*4 New terrain TopLeft + BottomRight*
[TILE260]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=floor_flat_sum
TopLeftHeight=0
TopRight=Grass
TopRightHeight=0
BottomLeft=Grass
BottomLeftHeight=0
BottomRight=floor_flat_sum
BottomRightHeight=0
...
*5 New terrain TopRight + BottomLeft*
[TILE261]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=Grass
TopLeftHeight=0
TopRight=floor_flat_sum
TopRightHeight=0
BottomLeft=floor_flat_sum
BottomLeftHeight=0
BottomRight=Grass
BottomRightHeight=0[
...
*6 New terrain BottomLeft only*
[TILE262]
Model=wf_su_s40_01
WalkMesh=msb01
TopLeft=Grass
TopLeftHeight=0
TopRight=Grass
TopRightHeight=0
BottomLeft=floor_flat_sum
BottomLeftHeight=0
BottomRight=Grass
BottomRightHeight=0
...
Save your set-file.
----------------------------------------------------
Next, you have to edit the according itp-file and add the new terrain to it:
Open your according itp-file. I use:
Modified GFF Editor
Author: roboius
http://nwvault.ign.c...r.Detail&id=247
Unfold "main" and "2" (I'm not sure, if "2" is always the place for terrain entries - you need to investigate).
Right click on "2" and choose "Add [User-defined Struct:0]".
A new number will be added.
Right click on the newly created entry and choose "Add [CExoString]".
Under "Field ID" enter "NAME" and into the large field below, you enter the name, which is to be shown, when adding a terrain in the toolset. Example: Floor - Grass (Flat) [Autumn_Forest]
Right click on the newly created entry and choose "Add [CResRef]".
Under "Field ID" enter "RESREF" and into the large field below, you enter your new terrain entry of set-file:
In my case, set-file was "Name=floor_flat_sum" (see all the way to the top of this tutorial), so it's "floor_flat_sum" here in the itp, too.
Save your itp-file.
----------------------------------------------------
Now a new edge entry:
Open your edge.2da.
I added the 3 lines to the bottom, where "wsf10_S01_04x" is the model diplayed as edge:
228 floor_flat_sum **** floor_flat_sum 0 wsf10_S01_04x
229 floor_flat_sum **** **** 0 wsf10_S01_04x
230 floor_flat_sum **** Grass 0 wsf10_S01_04x
Hope, that helps.
The One Black Rider, Nov. 2013.
Modifié par TheOneBlackRider, 30 novembre 2013 - 05:32 .