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
.cfg
and 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:
PROP
s with prefixprop_
(e.g. boxes, barrels)- Position, Rotation, Scale
- mesh name as
FileName
if 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.
PARTICLE
s with prefixparticle_
(e.g. smoke)- Position, Rotation, Scale
FILE
s with prefixfile_
(included external cfg files)- Position, Rotation, Scale
- mesh name as
FileName
if it ends with.cfg
. - Will be added if they don't exist.
DECAL
with 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_
. Position
andOrientation
are taken from the object.RotationY
is calculated from the orientation.<Name>
of the entry will be matched against what comes afterfc_
. E.g.fc_Dummy0
will 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
,Rotation
andExtents
are calculated from the boundaries of the objects. 1 box per object.<Dummy>
: transporter spawn, fire locations, ...- Imported from multiple objects with prefix
dummy_
. Position
,Rotation
andExtents
are taken from the object.<Name>
of the entry will be matched against what comes afterdummy_
. E.g.dummy_transporter_spawn
will 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
Position
s 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
Position
s 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
Position
s are taken from mesh vertices. Rounded up in .25 steps