Now, while I'm running mods the scripts referenced here should be vanilla. But there's defiantly something about my install causing this.
Spoiler
Show
Story call stack dump:
[000000]->[048dc5]#-2877265(2031)[702].StartThisScriptID(0, {"!job.trade.freetrader",60,"standard trader",9,4,{...},{...},0,{...},0}, 0, 0)
[048f9a]->[049eb0]#-2877265(2031)[702].__runScript({476140822,0,3,7,{...},{...},0,0,0,9,0,0,0}, {"!move.movetosector.route",60,"Fly ship to a sector, jump enabled",9,4,{...},{...},{...},{...},0}, 65542, -2877265, 0, 0)
[050610]->[140170]#-2877265(2031)[2004].__MoveToSector(-277)
[1401fe]->[140016]#-2877265(2031)[2004].__FlyToNextSector(-277, 0)
[000000]->[048dc5]#-2877265(2031)[702].StartThisScriptID(0, {"!job.trade.freetrader",60,"standard trader",9,4,{...},{...},0,{...},0}, 0, 0)
[048f9a]->[049eb0]#-2877265(2031)[702].__runScript({476140822,0,3,7,{...},{...},0,0,0,9,0,0,0}, {"!move.movetosector.route",60,"Fly ship to a sector, jump enabled",9,4,{...},{...},{...},{...},0}, 65542, -2877265, 0, 0)
[050610]->[140170]#-2877265(2031)[2004].__MoveToSector(-277)
[1401fe]->[140016]#-2877265(2031)[2004].__FlyToNextSector(-277, 0)
Tried deleting the gate, and stations, and the entire sector of Cho's Defeat epsilon (9,4 on the grid). But as soon as I return the move script back to its place the game crashes.
I've tried stopping all my traders, and this still happens so between the and the jobs mention I'm pretty sure this is an npc.
Getting desperate, but this is like finding a needle in a haystack. I'm needing to do something else with my time, if only to keep me sane, so thought to ask for advice before I go back to this.
EDIT: Update for posterity, I found the issue, as I suspected it was one of my newly added sectors. Turns out the was a gate with a bad id connection, which discontented the sector from the gate network.
In turn, an NPC spawned there and was trying to jump out, resulting in the error.
Of course the damn error couldn't tell me what sector we where having issues with, so I had to comb through every new sector till a found a simple "Gate" sitting there.
Lesson is, always validate your gate network in the galaxy editor.