If terrain has ranked alien spawns, especially with high priority - which can happen, it is physically impossible to check every mapblock in existence, and some terrains NEED those to differentiate between spawns of civilians and enemies in Pogroms - if such set of circumstances happen, enemies will spawn outside of the object because higher priority spawns.
Yeah, I understand now. Basically, there are two types of problems here:
1. Rank 0 nodes should be Rank 2
2. Rank 2 nodes should be Rank 0
The first problem occurs when a mission uses a pogrom terrain (example is the
1st sav I attached), but still includes a ufo (or enemy bunker / building). In this case you need to make sure that the nodes inside the ufo (in the sav, the ufo terrain is COMMS_TOWER) have Rank 2 or higher. If the nodes inside the ufo can be corrected to have Rank 2, then the problem is solved because the Rank 2 nodes on the pogrom terrain outside won't get higher priority.
The second problem occurs when a mission doesn't use a pogrom terrain (example is the
2nd sav I attached), but the terrain outside still has Rank 2 nodes. A terrain, which isn't a ufo and isn't used in any missions that require saving civilians, should not have any Rank 2 nodes. So if you correct the terrain (in the sav, the problematic terrain is DESERTX), to have Rank 0 nodes instead of Rank 2, then the problem is solved, because nodes outside won't get priority over the nodes inside.
To help you out a bit, I did a little bit of mission terrain analysis.
In total, there are 14 terror missions, and 21 deployments with an explicit number of civilians.
STR_LOC_HUMANIST_TANK_TEST, STR_LOC_WITCH_QUEST_ACADEMY, STR_LOC_WITCH_QUEST_MONASTERY, STR_LOC_WITCH_QUEST_RAGNAROCK, STR_LOC_WITCH_QUEST_BROTHERHOOD, STR_LOC_WITCH_QUEST_VAMPIRE_NEST, STR_LOC_WITCH_QUEST_NAZI_VOID_CATACOMBS , STR_TERROR_SHIP, STR_VESSEL_SNAKEBOAT, STR_VESSEL_PROBE_DISTRESS, STR_NINJA_RAID_SITE, STR_GOVT_BASE_DEFENSE, STR_AIRCAR_RACE_FINISH, STR_LOC_TAVERN_CELLAR, STR_LOC_HOT_PURSUITS, STR_LOC_FUNKY_ZOMBIES, STR_LOC_ESCAPE_TOWER, STR_LOC_PIRATE_CRUISE, STR_LOC_TIGER_TANK, STR_LOC_MONSTER_HUNT_GIANTSPIDER, STR_LOC_ISOLATED_VALLEY, STR_LOC_DEATH_AND_TAXES, STR_LOC_LOKNAR_VILLAGE_DEFENSE_2, STR_LOC_LOKNAR_VILLAGE_DEFENSE, STR_LOC_ZOMBIE_PYRAMID, STR_CORAL_ISLAND, LOC_BEACH_SWEEP, STR_TERROR_MISSION, STR_TERROR_MISSION_NO_PENALTY, STR_ERIDIAN_TERROR, STR_ERIDIAN_TERROR_MSDF
The missions themselves aren't important, but the terrains they use are. The said terrains are:
CATACOMBS, CHEMTOWN, CHEMTOWNHOTPURSUITS, COMRCURBAN, COMRCURBAN_AIRCAR_RACE, COMRCURBAN_FUNKY_ZOMBIES, COMRCURBAN_MSDF, CRUISE_LINER, FORESTSWAMP, GOVT_BASE_DEFENSE, INDUSTRIALSLUM, INDUSTRIALSLUM_ESCAPE_TOWER, INDUSTRIALSLUM_FUNKY_ZOMBIES, INDUSTRIALSLUM_MSDF, ISLANDURBAN, ISLANDURBAN_7, ISLANDURBAN_FUNKY_ZOMBIES, JUNGLE, JUNGLE2BLACK, JUNGLETEMPLE, JUNGLETEMPLE_CORAL_ISLAND, MOUNTBD_TROPICAL, MUMMY_VILLAGE_SETTLEMENT, NINJA_RAID_SITE, NUKE_CITY_NORAD_5, NUKE_CITY_NORAD_6, NUKE_CITY_NORAD_7, PORTTFTD5, PORTTFTD6, PORTTFTD7, PORTUFO, RICE_FARM_ISOLATED_VALLEY, RICE_FARM_LOKNAR, RURAL, RURAL_LOKNAR, RURAL_TIGER_TANK, URBAN, URBANJUNKUFO, URBANJUNKUFO_LOKNAR, URBANJUNKUFO_MSDF, URBANJUNKWOODUFO, URBANLUX, URBANWAR, URBANWAR_ESCAPE_TOWER, URBANWAR_MSDF, URBAN_FUNKY_ZOMBIES, WESTOWN_GRASS, WESTOWN_LOKNAR, WESTOWN_ROCKY
So this is a list of pogrom terrains (terrains used by deployments with civilians). Probably some exceptions on it, but in general, these terrains should already have Rank 2 nodes in them to differentiate between aliens and civilians. However, these are the *only* terrains that need Rank 2 nodes. Any terrains that aren't on this list (and aren't ufos) should have Rank 0 nodes instead.
I'm not able to directly query the map files, so I can't automatically find which terrains have node rank errors. But, maybe I can check deployments...
STR_LOC_CATACOMBS_COIN_HUNT, STR_LOC_SINS_OF_THE_FATHER, STR_LOC_EUROSYNDICATE_ELIMINATION, STR_LOC_MAGE_VILLA, STR_LOC_WHOREHOUSE, STR_LOC_DETECTIVE_HUNT, STR_LOC_BANDIT_TOWN, STR_LOC_KKK_HOUSE, STR_LOC_TRAITORS, STR_LOC_HIGHWAY_STATION, STR_LOC_HAUNTED_FOREST, STR_LOC_CRACKHOUSE, STR_LOC_ARSENAL, STR_LOC_HUMANIST_VILLA, STR_LOC_HITMAN, STR_LOC_EXTERMINATOR, STR_LOC_DEEP_ONE_02, STR_LOC_ELFMAN_BROS, STR_LOC_DARK_TOWER, STR_LOC_MONSTER_HUNT_MEGASCORPION, STR_LOC_MONSTER_HUNT_CHUPACABRA, STR_LOC_MONSTER_HUNT_PRIMAL_FINALE, STR_LOC_COMMS_TOWER_TEMPERATE, STR_LOC_COMMS_TOWER_JUNGLE, STR_LOC_COMMS_TOWER_DESERT, STR_LOC_GOVT_CAR, STR_LOC_BANDIT_CAMP_SMALL, STR_LOC_BANDIT_CAMP_TEMPERATE, STR_LOC_BANDIT_CAMP_JUNGLE, STR_LOC_PREPPERS, STR_LOC_DISTRESS_BUNKER_TEMPERATE, STR_LOC_DISTRESS_BUNKER_JUNGLE, STR_DISTRESS_CALL_TEMPERATE, STR_DISTRESS_CALL_JUNGLE, STR_LOC_CHURCH_OUTPOST_TEMPERATE, STR_LOC_CHURCH_OUTPOST_JUNGLE, STR_LOC_CHURCH_OUTPOST_DESERT, STR_LOC_GUILD_OUTPOST_TEMPERATE, STR_LOC_GUILD_OUTPOST_JUNGLE, STR_LOC_GUILD_OUTPOST_COLD, STR_LOC_GUILD_OUTPOST_DESERT, STR_LOC_ACADEMY_OUTPOST_TEMPERATE, STR_LOC_ACADEMY_OUTPOST_JUNGLE, STR_LOC_ACADEMY_OUTPOST_DESERT, STR_LOC_ACADEMY_TOWN_HOT, STR_LOC_RATLING_VILLAGE, STR_LOC_TABERNA_DEL_DIABLO, STR_LOC_BEASTMEN_ALTAR, STR_LOC_CANNIBAL_CAMP, STR_LOC_ATRIUM_CHURCH, STR_LOC_DOOM_OUTPOST
This is a list of non-pogrom deployments which use pogrom terrains. These deployments need to be checked for the 1st problem, that is, any sort of ufo/special building in these deployments needs to have at least some Rank 2 or higher nodes inside, otherwise a pogrom terrain will get priority and all the aliens will spawn outside. Perhaps you can ask someone to do the checking for you.