LaundryPizza03 wrote:Even more troublesome is B2ce3-ci5y/S2-c3-a, which has a p190, mod95 gun that fires p48 ships. This (quite common) gun registers as yl4560 and makes apgsearch very difficult, if at all possible...
Run pop-plot.lua on 10,000 ticks of the yl4560 gun and I think you'll see why it gets identified the way it does:
- yl4560.png (43.86 KiB) Viewed 4926 times
95 * 48 = 4560. There's no way apgsearch can find population periodicity at lower periods if it doesn't exist. To figure out that this gun is really p190, apgsearch would have to do some very detailed and computationally expensive analysis of the actual pattern, instead of just keeping an eye on the rate of population change.
The opposite problem does happen occasionally, where the population changes are more regular than the pattern itself. Basically there are no promises that the "yl" number will match the period, or the mod -- they're just a reasonably efficient way of automatically generating a reliable identifier for the pattern.