Import from Blender or glTF¶
It's recommended to use the Blender plugin instead.
The import functionality predates the Blender plugin. Use that instead:
Steps:
- Follow naming conventions below
- Export to glTF
- Right-click on target
.cfgand selectImport from glTF.
Import an glTF file from one of the below examples into Blender to see how a project should look like:
- Town Hall Buildings (multiple models in one .cfg)
- Small Power Plants (with animations)
⚠ Make sure to not edit the mesh of the objects, but the object position, scale and rotation only.
CFG file imports:
PROPs with prefixprop_(e.g. boxes, barrels)- Position, Rotation, Scale
- mesh name as
FileNameif it ends with.prp. Don't worry about Blender-style.001,.002, ... endings. They will be ignored. - Will be added if they don't exist.
PARTICLEs with prefixparticle_(e.g. smoke)- Position, Rotation, Scale
FILEs with prefixfile_(included external cfg files)- Position, Rotation, Scale
- mesh name as
FileNameif it ends with.cfg. - Will be added if they don't exist.
DECALwith nameground(ground texture)- Extents is calculated from all vertices of that object (e.g. plane).
This modifies the ground texture. The building tile size is
<BuildBlocker>in the IFO file.
Entries not existing in the model will be marked as _removed and not removed automatically.
CF7 file imports:
<Dummies><i>: people, FireDummy, feedback_door, ...- Imported from multiple objects with prefix
fc_. PositionandOrientationare taken from the object.RotationYis calculated from the orientation.<Name>of the entry will be matched against what comes afterfc_. E.g.fc_Dummy0will be matched against<Name>Dummy0</Name>.- Entries not existing in the model will not be removed.
IFO file imports:
<IntersectBox>: clickable 3D area (aka hitbox) of the building- Imported from multiple mesh object (e.g. cube) with prefix
hitbox Position,RotationandExtentsare calculated from the boundaries of the objects. 1 box per object.<Dummy>: transporter spawn, fire locations, ...- Imported from multiple objects with prefix
dummy_. Position,RotationandExtentsare taken from the object.<Name>of the entry will be matched against what comes afterdummy_. E.g.dummy_transporter_spawnwill be matched against<Name>transporter_spawn</Name>.- Entries not existing in the model will not be removed.
<FeedbackBlocker>: area people can walk through- Imported from multiple mesh objects (e.g. plane) with prefix
FeedbackBlocker Positions are taken from mesh vertices. Rounded to .25<BuildBlocker>: tile size of the building- Imported from one mesh object (e.g. plane) with name
ground Positions are taken from mesh vertices. Rounded to .5<UnevenBlocker>: area to always keep above ground- Imported from one mesh object (e.g. plane) with name
UnevenBlocker Positions are taken from mesh vertices. Rounded up in .25 steps