Thanks, this is perfect.
Okay, one weird thing is that you have a dcgerror.txt document in your game folder that's generating date and time but no comment. If you delete that, does it reappear when you generate a mission?
But the reason your campaign ends suddenly is because your territory.dcg and locations.dcg files get corrupt. For some reason the records drop the "side" value. For example, before the mission:
Cranz_Airfield 2 allied=0 axis=24
Memel_Factory_District 2 allied=0 axis=20
Memel 2 allied=0 axis=40
Memel_Airfield 2 allied=0 axis=30
And then after the mission:
Cranz_Airfield allied=0 axis=0
Memel_Factory_District allied=0 axis=0
Memel 2 allied=0 axis=10
Memel_Airfield 2 allied=0 axis=0
Notice there's no number after both Cranz_Airfield and Memel_Factory_District.
Why this is happening, I don't yet know.