The attached archive contains a newgrf setup which displays both of these bugs.
PlaneSetAIAR.grf tests for the presence of PlaneSet[w].grf (GRFid "JS" 01 01):
Code: Select all
5 * 9 07 88 04 09 "JS" 01 01 02
6 * 20 0B 02 1F 02 "PlaneSet[w].grf" 00
7 * 6 07 83 01 03 FF 00
PlaneSetAIAR.grf also takes a parameter. The low two bits control which of its 2 parts (auto-replace and AI management) are activated (set bit to deactivate). I test it for equality with 3[0], and if so, fail with:
Code: Select all
14 * 25 0B 03 1F FF 80 " has nothing to do." 00
[0] After ANDing with 3 and setting bit 1 if autoreplace off.