Closed outridersol closed 10 years ago
Doesn't this already work? Just putting more city folders in the building folder? (haven't tried)
You'd think so but the last time I checked it didn't seem to, it just adds any buildings to the same city at random, so they all get mixed together.
May have changed in the last version or so with the move to SGmodel, but I haven't seen anything in the changelog.
I'll have another look and see if I'm just being an idiot.
Ok have a check if not I'll check it out in the code.
I think you are right this code just throws everything beneath the buildings folder together
// Get all model file names under buildings/
// This is temporary. Buildings should be defined in BuildingSet data files, or something.
static void enumerateNewBuildings(std::vector<std::string> &filenames)
{
const std::string fullpath = FileSystem::JoinPathBelow("models", "buildings");
for (FileSystem::FileEnumerator files(FileSystem::gameDataFiles, fullpath, FileSystem::FileEnumerator::Recurse); !files.Finished(); files.Next()) {
const std::string &name = files.Current().GetName();
if (ends_with(name, ".model")) {
filenames.push_back(name.substr(0, name.length()-6));
}
}
}
Yeah there's no concept of building sets, just of buildings. You can't theme things at the moment. The whole city generation needs some attention.
I guess a good first step would simply be to allow us to define some building-sets so you can group things by style or environment or whatever.
Yeah, some form of this should probably be submitted as a feature request for Pioneer if it hasn't been already.
If you have models for domed cities we can probably make this now (I think, not sure). Using non atmosphere planets for domed cities.
Nice, I'll put something together for testing
I'll put some in the gaia branch for test, no need to look pretty :)
Started experimenting with some dome designs :)
Sweet !
Basic structure done.
Once mesh shields are in-game, their effect can hopefully be used on entrances to space stations etc (do some kind of effect on passing through them) like force fields, and the dome can have one over the top so that ships can exit and enter (even with our currently terrible AI) without too much of a problem.
Need the ability for the placing of multiple different versions of game entities, based on specific criteria, or at random,
-Examples would be; domed cities on worlds without breathable atmospheres, large stations in high population systems and small stations in low population systems. -Would be most effective if this was plumbed in at a low level, so that it could be applied to any object in the game as the current complete randomness doesn't really work very well.