MeteoricGames / pioneer

A game of lonely space adventure
GNU General Public License v3.0
9 stars 3 forks source link

Criteria System #2

Closed outridersol closed 10 years ago

outridersol commented 11 years ago

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.

shadmar commented 11 years ago

Doesn't this already work? Just putting more city folders in the building folder? (haven't tried)

outridersol commented 11 years ago

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.

shadmar commented 11 years ago

Ok have a check if not I'll check it out in the code.

shadmar commented 11 years ago

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));
        }
    }
}
fluffyfreak commented 11 years ago

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.

outridersol commented 11 years ago

Yeah, some form of this should probably be submitted as a feature request for Pioneer if it hasn't been already.

shadmar commented 11 years ago

If you have models for domed cities we can probably make this now (I think, not sure). Using non atmosphere planets for domed cities.

outridersol commented 11 years ago

Nice, I'll put something together for testing

shadmar commented 10 years ago

I'll put some in the gaia branch for test, no need to look pretty :)

outridersol commented 10 years ago

modo 2013-11-23 00-09-33-37 modo 2013-11-23 00-09-27-96

Started experimenting with some dome designs :)

shadmar commented 10 years ago

Sweet !

outridersol commented 10 years ago

Basic structure done.

2ahhh0r rt4soxp

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.