Patrols cause mysterious crashes
<pre><font size=1 face=Courier>[Zone
nickname = Zone_Cs01_path_corsairs2_1
pos = 16153, 0, 14980
rotate = -90, -69, 0
shape = CYLINDER
size = 750, 5386
sort = 99
toughness = 4
density = 5
repop_time = 30
max_battle_size = 4
pop_type = field_patrol
relief_time = 20
path_label = corsairs2, 1
usage = patrol
mission_eligible = false
faction_weight = fc_c_grp, 10
density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls
encounter = patrolp_pirate_patrol, 4, 1.000000
faction = fc_c_grp, 1.000000 </font></pre>
But then there are some patrols that don't work, instead crashing the game when they should be spawning. Their code is almost the same:
<pre><font size=1 face=Courier>[Zone
nickname = Zone_Cs01_path_corsairs1_1
pos = 631, 0, 16654
rotate = 90, 86, 180
shape = CYLINDER
size = 750, 20685
sort = 99
toughness = 4
density = 5
repop_time = 30
max_battle_size = 4
pop_type = field_patrol
relief_time = 20
path_label = corsairs1, 1
usage = patrol
mission_eligible = false
faction_weight = fc_c_grp, 10
#density_restriction = 1, patroller
#density_restriction = 1, police_patroller
#density_restriction = 1, pirate_patroller
#density_restriction = 4, lawfuls
#density_restriction = 4, unlawfuls
encounter = patrolp_pirate_patrol, 4, 1.000000
faction = fc_c_grp, 1.000000 </font></pre>
Compare with the first and notice how I excluded the densitiy restrictions, since I remembered them as being a common cause for crashes of this kind. All patrols somehow crossing with them also have their density restrictions commented out.
While the patrols of the first, working type are doing is to just fly around a nebula. The second, non-working patrol however is going towards and then along a string of navigation buoys. Also along the buoys run a patrol of transports (the pirate's target) and a navy guard patrol. As I said, all of those have their density restrictions out, so that can't be the cause.
I'd be glad for any ideas. I just don't notice anything that could possibly be the cause. And it has to be this patrol, I've got it nailed it down!