Author Topic: Copying Terrain  (Read 424 times)

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Copying Terrain
« on: October 01, 2010, 04:07:56 am »


               I am attempting to copy over Wall2 tiles from one tileset (wtr01 - Rural ENRICHED) into another (tte01 - Forest 2), and am running into uncharted territory for me.  Four of the tiles are straightforward, as they belong to Feature and Groups.  But it is the other fourteen that have me wondering...because they are Terrain files, and not simply Features, Groups, or Modified.

Cutting out the files to be worked was not an issue.  I have all the models, woks, set files, and itp's I need for the respective tilesets affected.

So...my set-up.  I renamed all the tiles ***02_***.  Is the "02" designator valid to diiferentiate them from the parent tiles?  I have never seen 02, I just want to make sure that does not break anything.  WOK files are named 02 as well.

All "Grass" references have been changed to "Forest", as the parent tiles were a grass base.  But I could not find, in any instance in the set files, where the Grass plane texture was set.  Is this not the case in terrain tiles, as opposed to my experience with Features?

Also, when working with my set files, I noticed that in all three original tilesets (original to our mod, not neccesarily Bioware original) that Wall2 occupies the same crosser postion in all three tilesets.

"Set" File Positions

Crosser 2 in all 3 cases
Name=Wall2
StrRef=63672

I assume that I want the same StrRef for my new Wall2 Terrains.  I will simply need to bump the ones below and repair the numbering sequence.

The Struct positions for my ITP's however only had two that matched.  I assume that it is not as important for the ITP file.  See example below.

"ITP" File

Struct Positions

tsh01 = 8
ttr01 = 10
wtr01 = 10

And one last.  Based on a suggestion I received a while back, when I was attempting to cut out a single tile, I received the following suggestion.  However, when trying to open the model files, I do not see the same format from the wok files to the mdl files, and could not make the changes from grass to forest.

You will probably also have to change the leaves material of the walkmesh to grass material (at least if you want 3d grass to be rendered on that tile).
If you don't have 3dMax or gmax, you can open your model and the wok file in a text editor. The wok file only contains the walkmesh, so it is easy to find the numbers you got to change.
Look for where it says 'faces xxx' where xxx is the number of faces in the walkmesh.
A lot of numbers follow that line until there is a line starting with 'aabb'.
In all the lines between 'faces' and 'aabb' you have to look at the last number of the line. If it is 14 (leaves) you have to change it to 3 (grass). Once you're finished save the wok and look at the mdl file.
Do a search for 'aabb' and you'll find the walkmesh part of the model. It should look the same as in the wok file.
Again change all the 14 in all the lines between 'faces' and 'aabb' to 3. Save and you're done. You'll now have grass on your tile and the footstep sound will also sound different (as if you walk on grass instead of leaves).

Here are the material numbers for future use. They were
taken from the file surfacemat.2da:

0 NotDefined
2 Obscuring
3 Grass
4 Stone
5 Wood
6 Water
7 Nonwalk
8 Transparent
9 Carpet
10 Metal
11 Puddles
12 Swamp
13 Mud
14 Leaves
15 Lava
16 BottomlessPit
17 DeepWater
18 Door
19 Snow
20 Sand
21 Barebones
22 StoneBridge


So, needless to say, any help here would be appreciated!  '<img'>

Am I at least on the right track?
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Copying Terrain
« Reply #1 on: October 02, 2010, 03:40:22 am »


               The good news is I seem to be most of the way there.  The bad news is I have no idea how to get the rest done.  '<img'>

Okay, I answered most of my original questions today by trial and error, and got the majority of the tiles to work and load properly.

However, I have one tile that is the wooden palisade over a stream, and I can't seem to get it to paint down.  I get a green square, but see no "ghosted" tile, and once I click, I have a blue square but no terrain.  I have checked, re-checked, re-re-checked the set, itp...everything.  Any ideas?

the only thing I can think of (and will test momentarily) is that on the original ITP it actually occupied a "group" called Modified; not one of the original three.  I will look and see if I have to adjust the settings (STRREF, RESREF, DWord, etc) since my adjusted tileset only has Features, Groups, and Terrains.

The other one, and a biggie.  It seems that the parent tiles raise terrain height (A rural tileset) is at a different level than the current Forest's raise terrain height, and that leaves a blank spot where there should be...something '<img'>

I think if I want to paint a wall right up to a raised edge, I am going to need a modeler's help on this one.

Any volunteers two help a brother out?  I really have no modeling skills what so ever.  Unless this too is something that can be eidted in a text editor (the height).

Thanks, Russell '<img'>
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Copying Terrain
« Reply #2 on: October 02, 2010, 05:39:39 am »


               

WoC_Builder wrote...
However, I have one tile that is the wooden palisade over a stream, and I can't seem to get it to paint down.  I get a green square, but see no "ghosted" tile, and once I click, I have a blue square but no terrain.  I have checked, re-checked, re-re-checked the set, itp...everything.  Any ideas?

Thanks, Russell '<img'>


Perhaps it is painted by dragging across the stream, usually by painting a road up the stream and dragging across to the other side of the stream.

Just a thought,

'Posted
  MDA
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Copying Terrain
« Reply #3 on: October 02, 2010, 10:41:14 am »


               

WoC_Builder wrote...

However, I have one tile that is the wooden palisade over a stream, and I can't seem to get it to paint down.  I get a green square, but see no "ghosted" tile, and once I click, I have a blue square but no terrain.  I have checked, re-checked, re-re-checked the set, itp...everything.  Any ideas?


That sounds as if the proper entries in the set are there and maybe you included the wok file for that tile in the
hak, but you forgot the model file.
               
               

               
            

Legacy_Tyndrel

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +0/-0
Copying Terrain
« Reply #4 on: October 02, 2010, 11:16:50 am »


               I believe the forest stream and rural stream are different, if you want the rural wall tiles to cross a stream you may have to import the rural streams too. CEP forest has both though so perhaps that may help, the water tiles are also different so if your stream flows into a larger body of water at any point you will also need those tiles. This snowball just keeps getting bigger and bigger  ':crying:'.