This is the part in the Template file from one of my 4x4 houses.
Because of the road it will be 4x5.
CreatePlacedDescription createplaced
{
PathBits _placeBits = Normal | Obstacle;
int _width = 4;
int _height = 5;
int _footprintRotation = 0;
PathBits _placeBitArray
[
Normal | Obstacle,
Normal | Obstacle | Fast | Faster,
]
String _placeBitmap =
"0000
0000
0000
0000
1111";
ComponentDescription _allowAndRemove = "Template/Clear.rsc";
}
MapDescription map
{
PathType _pathType = Immovable;
String _pathBitmap =
"####
####
####
####
....";
bool _addToOverhead = true;
Color _mapColor = 0xFF545454;
}
# means bannies are not allowed there.
. means road enabled.
_ means Bannies can walk there.
You probably have to move your Barn in Blender Half a tile back and set the pivot back at 0 after that or the road will be half under the Barn.
I am not familair with Blender but maybe Kid can say how to do this.
It seems your barn is 4x8 so you need to set the width and height to 4x9 in your template file.
So 8 rows of 4 0 and then 1 row of 1's in the first part.
Then if no Bannies are allowed in the Barn just 8 rows of 4 times # and 1 row of 4 times a .
So your will be:
CreatePlacedDescription createplaced
{
PathBits _placeBits = Normal | Obstacle;
int _width = 4;
int _height = 9;
int _footprintRotation = 0;
PathBits _placeBitArray
[
Normal | Obstacle,
Normal | Obstacle | Fast | Faster,
]
String _placeBitmap =
"0000
0000
0000
0000
0000
0000
0000
0000
1111";
ComponentDescription _allowAndRemove = "Template/Clear.rsc";
}
MapDescription map
{
PathType _pathType = Immovable;
String _pathBitmap =
"####
####
####
####
####
####
####
####
....";
bool _addToOverhead = true;
Color _mapColor = 0xFF545454;
}
4x10 as Kid suggest is also good, Then you not have to move the Barn either half a tile.
Then it will become
CreatePlacedDescription createplaced
{
PathBits _placeBits = Normal | Obstacle;
int _width = 4;
int _height = 10;
int _footprintRotation = 0;
PathBits _placeBitArray
[
Normal | Obstacle,
Normal | Obstacle | Fast | Faster,
]
String _placeBitmap =
"1111
0000
0000
0000
0000
0000
0000
0000
0000
1111";
ComponentDescription _allowAndRemove = "Template/Clear.rsc";
}
MapDescription map
{
PathType _pathType = Immovable;
String _pathBitmap =
"....
####
####
####
####
####
####
####
####
....";
bool _addToOverhead = true;
Color _mapColor = 0xFF545454;
}