pickStructLocation.js
Overview
Fixes a bug in Warzone 3.1 early alpha releases (master snapshots) where pickStructLocation() would return positions offset by 1 tile.Availability
 Requires backport.js
Compatible with all versions of Warzone from 3.1 early alpha releases and above..
The pickStructLocation() backport will only take effect on in early alpha releases (master snapshots), all other versions will be unaffected.
Notes
The pickStructLocation() bug would result in non-buildable locations being returned for new structures, which in turn would cause orderDroidBuild() to fail,
It's not possible to accurately fix the ½ tile offset that sometimes occurs when placing cyborg factories, but aside from that this backport will make pickStructLocation() behave correctly.
Script
See also
- Original discussion of the bug – in the main warzone forums
- pickStructLocation() – documentation for the function
- orderDroidBuild() – build something in the location returned from pickStructLocation()