This is my "issue". I'm not setting map size in the script/terrain, but I'm placing down blocks which, if the maps size changes, are not where they're supposed to be anymore . It's not a big deal cloning the terrain, I was just wondering if there was a more elegant solution.
Yeah, I've run into this issue as well while adding the original Port terrain - map size needs to be 50x50, otherwise the waterfront won't be correctly placed. It may be possible to overcome this using conditionals though:
- type: addBlock
rects:
- [5, 0, 1, 6]
executions: 6
label: 1
- type: addBlock
rects:
- [4, 0, 1, 5]
executions: 5
conditionals: -1
The 1st command tries to place the waterfront on a 60x60 map. If it fails then it the 2nd command is run, to place the waterfront in a 50x50 map. Haven't tried this but theoretically it should work.