Hm, you've given the command to fill the empty areas of the base with XBASE13 (Mind Shield). That might be causing issues.
Well no, in my case "blocks: 13" should point to XBASE_20. Also I hijacked XBASE_13 to be used by a new facility I made, which is a hyperwave-radar:
- type: STR_GLOBAL_RADAR_SYSTEM
hyper: true
spriteShape: 2
spriteFacility: 32
buildCost: 1000000
buildTime: 32
monthlyCost: 200000
radarRange: 10850
radarChance: 10
mapName: XBASE_13
(thanks for the link).
battle.cfg contains _most_ of a save, including a base, the base comes from there. you can copy/paste a base layout from any save you want and paste it in there. when you hit "randomize" it regenerates this save based on the current starting base in the ruleset.
I noticed that file and the base in it.
But check the lines starting from the 3rd STR_HANGAR, the order is like "messed":
facilities:
- x: 2
type: STR_ACCESS_LIFT
y: 2
- y: 0
type: STR_HANGAR
x: 2
- y: 4
type: STR_HANGAR
x: 0
- type: STR_HANGAR
y: 4
x: 4
- y: 2
x: 3
type: STR_LIVING_QUARTERS
- y: 3
x: 2
type: STR_GENERAL_STORES
- y: 3
x: 3
type: STR_LABORATORY
- y: 3
x: 4
type: STR_WORKSHOP
I fixed the file manually, to see if that was the problem but the game (my ooold build that is) messes-up the lines again every time it opens it. Also the Base Defense worked (at least it did in the campaign) before I put my custom stuff in.