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

  1. 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.
  2. Put the .mu files and their textures in a folder of your own under GameData, for example GameData/ColonyModels/Models/.
  3. 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.
  4. 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
Shaders
KSP/Diffuse, KSP/Specular, KSP/Bumped, KSP/Bumped Specular, KSP/Emissive variants
Textures
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

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
Size
3.47 × 3 × 7.54 m (width × depth × height)
Attach nodes
top: 0, 3.77, 0 facing 0, 1, 0
bottom: 0, -3.77, 0 facing 0, -1, 0
right: 1.74, -3.62, 0 facing 1, 0, 0
left: -1.74, -3.62, 0 facing -1, 0, 0
front: 0, -3.62, 1.5 facing 0, 0, 1
back: 0, -3.62, -1.5 facing 0, 0, -1
Production

Water Extractor

structure = WaterExtractor

Pulls water ice out of the soil and melts it.

Does
uses Electric Charge 6/h; makes Water 10/h
Now looks like
the Drill-O-Matic Junior Mining Excavator part (MiniDrill) at scale 4
Size
3.12 × 2.1 × 4.44 m (width × depth × height)
Attach nodes
top: 0, 2.22, 0 facing 0, 1, 0
bottom: 0, -2.22, 0 facing 0, -1, 0
right: 1.56, -2.07, 0 facing 1, 0, 0
left: -1.56, -2.07, 0 facing -1, 0, 0
front: 0, -2.07, 1.05 facing 0, 0, 1
back: 0, -2.07, -1.05 facing 0, 0, -1
Production

ISRU Refinery

structure = Refinery

Turns ore into rocket fuel.

Does
uses Ore 20/h, Electric Charge 15/h; makes Liquid Fuel 9/h, Oxidizer 11/h
Now looks like
the Convert-O-Tron 250 part (ISRU) at scale 2
Size
5.22 × 5.03 × 5.96 m (width × depth × height)
Attach nodes
top: 0, 2.98, 0 facing 0, 1, 0
bottom: 0, -2.98, 0 facing 0, -1, 0
right: 2.61, -2.83, 0 facing 1, 0, 0
left: -2.61, -2.83, 0 facing -1, 0, 0
front: 0, -2.83, 2.51 facing 0, 0, 1
back: 0, -2.83, -2.51 facing 0, 0, -1
Production

Workshop

structure = Workshop

Turns ore into Material Kits, which most buildings are built from.

Does
uses Ore 10/h, Electric Charge 15/h; makes Material Kits 5/h
Now looks like
the SC-9001 Science Jr. part (science.module) at scale 3
Size
3.78 × 3.75 × 3.41 m (width × depth × height)
Attach nodes
top: 0, 1.7, 0 facing 0, 1, 0
bottom: 0, -1.7, 0 facing 0, -1, 0
right: 1.89, -1.55, 0 facing 1, 0, 0
left: -1.89, -1.55, 0 facing -1, 0, 0
front: 0, -1.55, 1.88 facing 0, 0, 1
back: 0, -1.55, -1.88 facing 0, 0, -1
Life support

Greenhouse

structure = Greenhouse

Grows food, and plants give off a little oxygen.

Does
uses Water 3/h, Electric Charge 8/h; makes Food 4/h, Oxygen (O2) 2/h
Now looks like
the Mobile Processing Lab MPL-LG-2 part (Large.Crewed.Lab) at scale 2
Size
5.29 × 5.33 × 7.32 m (width × depth × height)
Attach nodes
top: 0, 3.66, 0 facing 0, 1, 0
bottom: 0, -3.66, 0 facing 0, -1, 0
right: 2.64, -3.51, 0 facing 1, 0, 0
left: -2.64, -3.51, 0 facing -1, 0, 0
front: 0, -3.51, 2.66 facing 0, 0, 1
back: 0, -3.51, -2.66 facing 0, 0, -1
Life support

Oxygen Generator

structure = OxygenGenerator

Splits water into breathable oxygen.

Does
uses Water 4/h, Electric Charge 5/h; makes Oxygen (O2) 8/h
Now looks like
the Convert-O-Tron 125 part (MiniISRU) at scale 3
Size
3.84 × 3.9 × 5.68 m (width × depth × height)
Attach nodes
top: 0, 2.84, 0 facing 0, 1, 0
bottom: 0, -2.84, 0 facing 0, -1, 0
right: 1.92, -2.69, 0 facing 1, 0, 0
left: -1.92, -2.69, 0 facing -1, 0, 0
front: 0, -2.69, 1.95 facing 0, 0, 1
back: 0, -2.69, -1.95 facing 0, 0, -1
Life support

Habitat

structure = Habitat

Living space for four kerbals. Each kerbal living here uses food, water and oxygen; an empty habitat uses nothing.

Does
uses Food 1/h, Water 1/h, Oxygen (O2) 2/h; houses 4 kerbals
Now looks like
the PPD-10 Hitchhiker Storage Container part (crewCabin) at scale 2
Size
5.26 × 5.26 × 3.97 m (width × depth × height)
Attach nodes
top: 0, 1.98, 0 facing 0, 1, 0
bottom: 0, -1.98, 0 facing 0, -1, 0
right: 2.63, -1.83, 0 facing 1, 0, 0
left: -2.63, -1.83, 0 facing -1, 0, 0
front: 0, -1.83, 2.63 facing 0, 0, 1
back: 0, -1.83, -2.63 facing 0, 0, -1
Power

Solar Array

structure = SolarArray

Large solar panel. Makes the most power at noon and none at night; add battery banks for the dark.

Does
makes Electric Charge 90/h in full sun
Now looks like
the Gigantor XL Solar Array part (largeSolarPanel) at scale 2
Size
12.88 × 1.05 × 4.59 m (width × depth × height)
Attach nodes
top: 0, 2.29, 0 facing 0, 1, 0
bottom: 0, -2.29, 0 facing 0, -1, 0
right: 6.44, -2.14, 0 facing 1, 0, 0
left: -6.44, -2.14, 0 facing -1, 0, 0
front: 0, -2.14, 0.52 facing 0, 0, 1
back: 0, -2.14, -0.52 facing 0, 0, -1
Power

RTG

structure = RTG

Small, steady power that never runs out.

Does
makes Electric Charge 8/h
Now looks like
the PB-NUK Radioisotope Thermoelectric Generator part (rtg) at scale 3
Size
1.01 × 1.17 × 1.97 m (width × depth × height)
Attach nodes
top: 0, 0.98, 0 facing 0, 1, 0
bottom: 0, -0.98, 0 facing 0, -1, 0
right: 0.51, -0.83, 0 facing 1, 0, 0
left: -0.51, -0.83, 0 facing -1, 0, 0
front: 0, -0.83, 0.58 facing 0, 0, 1
back: 0, -0.83, -0.58 facing 0, 0, -1
Power

Battery Bank

structure = BatteryBank

Stores electric charge.

Does
stores Electric Charge 4000
Now looks like
the Z-4K Rechargeable Battery Bank part (batteryBankLarge) at scale 3
Size
7.9 × 7.5 × 0.75 m (width × depth × height)
Attach nodes
top: 0, 0.38, 0 facing 0, 1, 0
bottom: 0, -0.38, 0 facing 0, -1, 0
right: 3.95, -0.23, 0 facing 1, 0, 0
left: -3.95, -0.23, 0 facing -1, 0, 0
front: 0, -0.23, 3.75 facing 0, 0, 1
back: 0, -0.23, -3.75 facing 0, 0, -1
Storage

Ore Silo

structure = OreSilo

Holds ore.

Does
stores Ore 3000
Now looks like
the Large Holding Tank part (LargeTank) at scale 2
Size
5.09 × 5.14 × 3.71 m (width × depth × height)
Attach nodes
top: 0, 1.86, 0 facing 0, 1, 0
bottom: 0, -1.86, 0 facing 0, -1, 0
right: 2.54, -1.71, 0 facing 1, 0, 0
left: -2.54, -1.71, 0 facing -1, 0, 0
front: 0, -1.71, 2.57 facing 0, 0, 1
back: 0, -1.71, -2.57 facing 0, 0, -1
Storage

Supply Depot

structure = SupplyDepot

Holds food, water and oxygen.

Does
stores Food 500, Water 500, Oxygen (O2) 1000
Now looks like
the Small Holding Tank part (SmallTank) at scale 2.5
Size
3.23 × 3.23 × 4.64 m (width × depth × height)
Attach nodes
top: 0, 2.32, 0 facing 0, 1, 0
bottom: 0, -2.32, 0 facing 0, -1, 0
right: 1.62, -2.17, 0 facing 1, 0, 0
left: -1.62, -2.17, 0 facing -1, 0, 0
front: 0, -2.17, 1.62 facing 0, 0, 1
back: 0, -2.17, -1.62 facing 0, 0, -1
Storage

Fuel Tank

structure = FuelTank

Holds liquid fuel and oxidizer.

Does
stores Liquid Fuel 1800, Oxidizer 2200
Now looks like
the Rockomax X200-16 Fuel Tank part (Rockomax16.BW) at scale 2
Size
5 × 5 × 3.84 m (width × depth × height)
Attach nodes
top: 0, 1.92, 0 facing 0, 1, 0
bottom: 0, -1.92, 0 facing 0, -1, 0
right: 2.5, -1.77, 0 facing 1, 0, 0
left: -2.5, -1.77, 0 facing -1, 0, 0
front: 0, -1.77, 2.5 facing 0, 0, 1
back: 0, -1.77, -2.5 facing 0, 0, -1
Storage

Supply Cache

structure = SupplyCache

The supplies every colony starts with. Connect it to your buildings with cables and wires.

Does
holds a new colony's starting supplies
Now looks like
the Kerbodyne S3-3600 Tank part (Size3SmallTank) at scale 1.5
Size
5.63 × 5.63 × 2.98 m (width × depth × height)
Attach nodes
top: 0, 1.49, 0 facing 0, 1, 0
bottom: 0, -1.49, 0 facing 0, -1, 0
right: 2.81, -1.34, 0 facing 1, 0, 0
left: -2.81, -1.34, 0 facing -1, 0, 0
front: 0, -1.34, 2.81 facing 0, 0, 1
back: 0, -1.34, -2.81 facing 0, 0, -1
Warehouses

Warehouse

structure = Warehouse

Large store for ore, Material Kits, food, water, oxygen and monopropellant.

Does
stores Ore 8000, Food 3000, Water 3000, Oxygen (O2) 5000, Monopropellant 2000, Material Kits 3000
Now looks like
KSC building 'SpaceplaneHangar' at scale 0.35 (or the Kerbodyne S3-7200 Tank part at scale 2 if that isn't found)
Size
147.28 × 153.97 × 33.52 m (width × depth × height)
Attach nodes
top: 0, 16.76, 0 facing 0, 1, 0
bottom: 0, -16.76, 0 facing 0, -1, 0
right: 73.64, -16.61, 0 facing 1, 0, 0
left: -73.64, -16.61, 0 facing -1, 0, 0
front: 0, -16.61, 76.99 facing 0, 0, 1
back: 0, -16.61, -76.99 facing 0, 0, -1
Warehouses

Fuel Depot

structure = FuelDepot

Big liquid fuel and oxidizer tank, like the ones at the launch pad.

Does
stores Liquid Fuel 9000, Oxidizer 11000
Now looks like
KSC building 'ksp_pad_cylTank' at scale 1 (or the Kerbodyne S3-14400 Tank part at scale 1.5 if that isn't found)
Size
20.89 × 14.76 × 5.07 m (width × depth × height)
Attach nodes
top: 0, 2.54, 0 facing 0, 1, 0
bottom: 0, -2.54, 0 facing 0, -1, 0
right: 10.45, -2.39, 0 facing 1, 0, 0
left: -10.45, -2.39, 0 facing -1, 0, 0
front: 0, -2.39, 7.38 facing 0, 0, 1
back: 0, -2.39, -7.38 facing 0, 0, -1
Warehouses

Gas Sphere

structure = GasStore

Pressurised sphere for oxygen.

Does
stores Oxygen (O2) 10000
Now looks like
KSC building 'ksp_pad_sphereTank' at scale 1 (or the Rockomax X200-32 Fuel Tank part at scale 2 if that isn't found)
Size
15.74 × 15.87 × 10.59 m (width × depth × height)
Attach nodes
top: 0, 5.3, 0 facing 0, 1, 0
bottom: 0, -5.3, 0 facing 0, -1, 0
right: 7.87, -5.15, 0 facing 1, 0, 0
left: -7.87, -5.15, 0 facing -1, 0, 0
front: 0, -5.15, 7.94 facing 0, 0, 1
back: 0, -5.15, -7.94 facing 0, 0, -1
Warehouses

Water Tower

structure = WaterTower

Holds water.

Does
stores Water 6000
Now looks like
KSC building 'ksp_pad_waterTower' at scale 1 (or the Rockomax Jumbo-64 Fuel Tank part at scale 2 if that isn't found)
Size
14.71 × 14.71 × 34.28 m (width × depth × height)
Attach nodes
top: 0, 17.14, 0 facing 0, 1, 0
bottom: 0, -17.14, 0 facing 0, -1, 0
right: 7.35, -16.99, 0 facing 1, 0, 0
left: -7.35, -16.99, 0 facing -1, 0, 0
front: 0, -16.99, 7.35 facing 0, 0, 1
back: 0, -16.99, -7.35 facing 0, 0, -1

Testing in the game

  1. Install the mod: copy GameData/ConstellationColonies from the download into KSP's GameData, and your pack folder next to it.
  2. 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.
  3. 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.
  4. 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).
  5. 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].
  6. 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.