Quote from: Katavrik on January 04, 2015, 02:30:14 AM
I've already know how to spawn new colonist for the colony. But i dont have access to the event, that launces first colonists. I guess, i need modify it. But i dont know where to search.
It looks like we've both been working on a similar idea. I just released a mod that starts your colonists out in the ruins of their crashed ship.
To do this, I needed to swap in a custom version of the MapIniter_NewGame class. This isn't easy to do, but it's definitely possible. You can decompile either the Prepare Carefully mod or the new Scenarios mod to see how to do it. The Mod Order mod includes full source code that describes some of techniques that you'll see in the other mods--that may make it easier to figure out what's going without comments in the decompiled code.
You need to do swap in a new MapIniter_NewGame class because in Alpha 8, there's no other way to access the map generation process. It sounds like this will change with Alpha 9, and map generation will become moddable again. It should be much easier after that release.
EDIT: While I think it's true that this may be the only way to hook into map generation, there are probably other ways to modify the map right after it's generated that would not require you to swap out that class.

