SM3 features

SM3 features

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

SM3 features

Post by Maelstrom »

Well Ive made a feature placer thing for SM3 maps, and ive basically got it working, just a few steps to go. Ive made the actual placer thingy and it creates a feature file that works, I just have to work out how to get the features working ingame. A few questions:

1) How do you tell the map what features to use? The wiki says to use something like this, but where do you put it?
2) Where do you place the feature .tdf's? Are they set out the same as SMF maps?
3) How do you place the default trees and geothermals?
4) In the feature file, does the Y axis positioning actually do anything, or is it there just cause?
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

1) It goes in [map]

Code: Select all

 

[map] {
  featuredata="file"
  [featuretypes]  {
     ... 
  }
}

2) Yes, the same code is used for loading TDF's
3) Use "TreeType0" "TreeType1" "TreeType2" ... as feature type for different tree models, and "GeoVent" as featuretype for a geothermal. I'm not sure how many tree types there are though.
4) Just cause
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

I couldnt get the different tree types working, or GeoVents, or features for that matter. Ive set up the SM3 file exactly as youve set out and it only spawns trees of the same type (probably type 0, but I havnt checked).

The features all spawn in the right spots, they are just all trees.

Heres the features bit of the sm3 file im using:

Code: Select all

  featuredata=Maps/whakamatungariri/f.features;
  
  [FeatureTypes]
  {
    NumTypes=3;
    type0=TreeType7;            // a geothermal
    type1=TreeType12;            // a geothermal
    type2=GeoVent;            // a geothermal
  }
Post Reply

Return to “Map Creation”