I tried looking this up myself, but i'm still having trouble understanding how mission generation actually works. Why does the game spawn a chemtrails site but with the wrong deployment? I get that the chemtrails definition is followed by the one for hybrid storage and that it probably defaults to that, but i'd like to understand why that's happening. As far as i can tell they are both properly defined.
Well, the error is in two places:
1. regions_XCOMFILES.rul:
# START OF CHEMTRAILS
- type: REGION_CHEMTRAILS
missionZones:
-
#SOUTH EAST ASIA
- [106, 106, -33, -33, -512]
- [112, 112, -23, -23, -512]
- [127.8, 127.8, -36.1, -36.1, -512]
- [130.54, 130.54, -32.77, -32.77, -512]
- [140.9, 140.9, -39.36, -39.36, -512]
- [111, 111, -30, -30, -512]
- [126.4, 126.4, -38.4, -38.4, -512]
- [134.8, 134.8, -34.7, -34.7, -512]
- [140.4, 140.4, -40.4, -40.4, -512]
#AUSTRALASIA
- [148, 148, 22, 22, -512]
- [147, 147, 30, 30, -512]
- [138, 138, 17, 17, -512]
#EUROPE
- [34.5, 34.5, -45.5, -45.5, -512]
- [53.5, 53.5, -55.5, -55.5, -512]
- [23.5, 23.5, -51.5, -51.5, -512]
- [24.3, 24.3, -45, -45, -512]
- [13.5, 13.5, -42.5, -42.5, -512]
- [5, 5, -50.1, -50.1, -512]
- [358, 358, -40.7, -40.7, -512]
- [350.5, 350.5, -53.86, -53.86, -512]
- [0, 0, -41, -41, -512]
- [5, 5, -43.7, -43.7, -512]
- [358.1, 358.1, -52, -52, -512]
- [351, 351, -53.8, -53.8, -512]
- [4, 4, -50.5, -50.5, -512]
- [11.5, 11.5, -45, -45, -512]
- [21.3, 21.3, -38, -38, -512]
- [24.9, 24.9, -53.1, -53.1, -512]
#NORTH AFRICA
- [356, 356, -23, -23, -512]
- [353.337, 353.337, -34.26, -34.26, -512]
- [9.71, 9.71, -34.35, -34.35, -512]
#SOUTHERN AFRICA
- [26, 26, 33, 33, -512]
- [7.1, 7.1, -7, -7, -512]
- [5.4, 5.4, -12.4, -12.4, -512]
#NORTH AMERICA
- [280, 280, -38.43, -38.43, -512]
- [237, 237, -42.33, -42.33, -512]
- [248, 248, -48.27, -48.27, -512]
- [262, 262, -35.33, -35.33, -512]
- [261.2, 261.2, -20, -20, -512]
- [257.9, 257.9, -30.1, -30.1, -512]
- [261, 261, -33.7, -33.7, -512]
- [281.9, 281.9, -35.3, -35.3, -512]
- [241.2, 241.2, -34.5, -34.5, -512]
- [240.4, 240.4, -44, -44, -512]
- [276.8, 276.8, -46.4, -46.4, -512]
- [251, 251, -49.5, -49.5, -512]
#SOUTH AMERICA
- [308, 308, 18, 18, -512]
- [318, 318, 18, 18, -512]
- [319, 319, 10, 10, -512]
- [288.6, 288.6, 30.2, 30.2, -512]
- [304, 304, 32.4, 32.4, -512]
- [286.7, 286.7, -5.2, -5.2, -512]
- [292.4, 292.4, -10, -10, -512]
- [284.2, 284.2, -8.5, -8.5, -512]
- [281.8, 281.8, -20.5, -20.5, -512]
#SIBERIA
- [111, 111, -64, -64, -512]
- [87, 87, -59, -59, -512]
- [109, 109, -53, -53, -512]
- [105, 105, -54, -54, -512]
#CENTRAL ASIA
- [53.8, 53.8, -57, -57, -512]
- [67, 67, -25, -25, -512]
- [83.4, 83.4, -49, -49, -512]
- [47.7, 47.7, -45.6, -45.6, -512]
- [92.5, 92.5, -44.5, -44.5, -512]
#MIDDLE EAST
- [35.8, 35.8, -33.8, -33.8, -512]
- [74.4, 74.4, -29.6, -29.6, -512]
- [80.5, 80.5, -8.8, -8.8, -512]
# END OF CHEMTRAILS
This is after I fixed it. All these -512 were -510 before, and -510 is used for the Hybrid Storage. So whenever the game rolled the Chemtrails mission, it was technically chosen, but the actual site was generated as a Hybrid Storage site.
2. globe_XCOMFILES.rul:
- id: -512
deployments:
STR_CHEMTRAILS: 100
This definition was missing entirely. Bad modder, bad!
Attaching both files here; they should work fine with 0.9.3.