So i've been poking around the code for the first time and I was thinking it might be possible (of course it is possible, i mean for someone with my skill level of coding, which isnt much) to get MapConv to start placing different and other sorts of features other than the currently defined 16 trees and 1 type of grass, and making it defined by an external file isntead of hard coded like it currently is in featurecreator.cpp.
Featurecreator.h looks like it can work with any kind of feature, so i would already have something to work with.
At the very least, it might be made so that it has the potential accept input for different types of features, and someone else write a seperate GUI to actually let the mapmaker place said features ( Buggi! ).
Just wondering if anyone else is working on this at the moment, and if i should try and pursue this in terms of engine limitations.
Features defined by files
Moderator: Moderators
As you know I did the new map converter and can place features with any feature id.
Here is all that is stored in the map file:
That's it. featureType is set from 1 to 16 for trees, 0 for grass, and 17 for geovents. Yep, geovents are features.
-Buggi
Here is all that is stored in the map file:
Code: Select all
public struct FeatureFileStruct
{
public int featureType;
public float xpos;
public float ypos;
public float zpos;
public float rotation;
public float relativeSize;
}
-Buggi
-
- Posts: 578
- Joined: 19 Aug 2004, 17:38
Maybe instead the main executable could be modified to read a special txt file on map load, placing units (and also, features, since DTs are placed as units, but are features in essense), belonging to a neutral team (team -1?). That way, we get less trouble when moving or adding features to a map (no need to recompile it), and quite a load of flexibility for placing features - as well as neutral units, WC3-style.
Didnt I do a big post on there being a GAIA player? at least then I could create a tree AI that would spawn new trees and branches, fullfilling aGorms original dream and shutting up the alantai tree people once and for all. Or maybe I could just program a highly flexibl bird subroutine... wings flap... tweeeet... flap