(ie TreeType1, GeoVent, armfort_fort? armckfus? armckfus_dead? Armckfus_dead? ARM_FORT? etc... Depending if it cares about the filename on the .tdf, the Objectname in the tdf, or the name of the 3do specified in the .fbi... ooy)
I have a version of mapconv that appends arbitrary features after TreeType's and GeoVent are declared... same format of featurename<null>
Code: Select all
void CFeatureCreator::WriteToFile(ofstream* file, vector<string> F_map)
...
vector<string>::iterator F_map_iter;
int ArbFeatureTypes=F_map.size();
...
for (F_map_iter=F_map.begin();F_map_iter!=F_map.end();F_map_iter++){
string c=*F_map_iter;
file->write(c.c_str(),(int)strlen(c.c_str())+1);
}
Code: Select all
ifs.open(featureSpecFile.c_str(), ifstream::in);
while (ifs.good()){
char c[100]="";
ifs.getline(c,100);
F_Spec.push_back(c);
ex++;
Code: Select all
if ((f) && ((256-f)<= arbFeatureTypes)) {
map[y*xsize+x]=1;
MapFeatureStruct ffs;
ffs.featureType=NUM_TREE_TYPES+(int)(257-f);
ffs.relativeSize=1;
ffs.rotation=0;
ffs.xpos=(float)startx+x*8+4;
ffs.ypos=0;
ffs.zpos=(float)starty+y*8+4;
features.push_back(ffs);
}
If you define an arbitrary feature type but don't place one, it just takes FOREVER at the 'Generating Trees' stage... If you place one too, it crashes after taking forever.
Also, assuming I can get this to work, could we possibly modify the rts/FeatureHandler to look in the maps/sd7's for the tdf's, etc?