Constellation Colonies 0.28.1 · brief for 3D modelers
Modeling buildings for Constellation Colonies
Constellation Colonies is a Kerbal Space Program mod for building colonies on other worlds. Its buildings currently borrow stock part models as stand-ins. This brief is everything you need to replace them with your own models, delivered as a model pack: a folder players drop into GameData.
The short version
Model each building in Unity 2019.4.18f1 with KSP's PartTools for KSP 1.12, and export it as a .mu, exactly like a part model.
Put the .mu files and their textures in a folder of your own under GameData, for example GameData/ColonyModels/Models/.
Add one ColonyAddon.cfg to that folder with a COLONY_RESKIN per building, pointing the building at your model. The Add-on Creator app's Reskins tab writes it for you.
Start KSP, open Construction mode at a colony, and place the building to see it.
Technical spec
Game
Kerbal Space Program 1.12.5
Unity
2019.4.18f1 (what KSP 1.12 runs on)
Exporter
KSP PartTools for 1.12, export as .mu
Units
1 Unity unit = 1 metre
Up
+Y
Front
+Z (faces north before the player turns it)
Origin
Anywhere: the mod centres the model on its bounds and stands its bottom on the ground
DDS (DXT1 or DXT5) preferred, PNG accepted; 1024 to 2048 px for a large building
Polygons
Aim for under 10,000 triangles per building; colonies have dozens of them on screen
Colliders
Not needed: the mod adds one box collider around the whole model
Scripts
None: any part modules or scripts are stripped, only meshes are kept
Size. Build at real size in metres. The building's footprint and height below are what players see now; a new model doesn't have to match exactly, but buildings are placed next to each other on the grid and snap points, so similar footprints keep colonies tidy. The scale setting in the reskin can correct the size afterwards without re-exporting.
Bottom. The lowest point of the model sits on the ground, so leave out anything that should be underground, or let it go a little below the bounds you care about.
Lights and animation. Emissive textures work. Animations aren't played, but a model can be shown posed in one frame of an animation (a legacy Animation component; give the clip's name as animation and the point in it, 0 to 1, as animationTime).
Icons (optional). A 64×64 PNG per building for the parts panel. White or light shapes on transparency read best.
Folder layout
GameData/
ConstellationColonies/ the mod itself; don't put files in here
ColonyModels/ your model pack; pick any folder name, no spaces
ColonyAddon.cfg says which model goes on which building
Models/
workshop.mu
workshop_diffuse.dds textures next to the .mu, as for parts
Icons/
workshop.png optional, 64x64
Hooking a model up
One COLONY_RESKIN per building, naming the building by its internal name (shown on each card below) and the model by its path under GameData without .mu:
COLONY_ADDON
{
name = ColonyModels
title = Colony Models
version = 1.0
author = Your Name
minCoreVersion = 0.20
}
COLONY_RESKIN
{
structure = Workshop
model = ColonyModels/Models/workshop
icon = ColonyModels/Icons/workshop // optional
scale = 1 // optional, if it comes out the wrong size
rotation = 0, 0, 0 // optional, x, y, z degrees, if it faces the wrong way
node = 0, 1, 0, 0, 1, 0 // optional attach points, see below
}
Only the look changes: what the building does, costs and stores stays the same, and buildings already placed in saves switch to the new model. Remove the folder and they go back. The Add-on Creator's Reskins tab writes this file for you, lists every building by name, and checks the model paths.
Attach points
Players attach buildings to each other with attach nodes, like in the VAB. Each building has one on its top and bottom and one on each side, just above its bottom, unless it lists its own. To put them where your model needs them, add node = x, y, z, dx, dy, dz lines: the position as a share of the model's half-size, from -1 to 1 on each axis (x left to right, y bottom to top, z back to front), then the direction it faces. 0, 1, 0, 0, 1, 0 is the centre of the top, facing up. Listing any nodes replaces all the defaults.
The buildings
Sizes and attach nodes below were measured by the game, in metres, at the size players build them.
Production
Ore Drill
structure = OreDrill
Digs ore out of the ground.
Does
uses Electric Charge 10/h; makes Ore 20/h
Now looks like
the Drill-O-Matic Mining Excavator part (RadialDrill) at scale 3
Install the mod: copy GameData/ConstellationColonies from the download into KSP's GameData, and your pack folder next to it.
Start KSP and load a game. Land any vessel on the Mun or another world, open the Constellation Colonies window from the toolbar and found a colony. In Sandbox there are no costs or tech locks to worry about.
Click the Build icon on the colony bar to enter Construction mode, pick the building from the parts panel and place it. Hover over a part tile to see its size in metres. Hover over a placed building to see its details.
Check the Add-ons icon on the colony bar: your pack is listed with how many buildings it reskins, and any problem (a wrong building name, a model path that doesn't exist).
KSP reads models and configs only at start-up, so restart the game after each change. KSP.log in the KSP folder has a line for each reskin, starting [ConstellationColonies].
Every building's exact size and attach points as the game sees them are written to GameData/ConstellationColonies/PluginData/BuildingReference.txt each time the Space Center loads.