[Fixed]Crashing due NPC Free Trader

The place to discuss scripting and game modifications for X³: Farnham's Legacy

Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums

Post Reply
Aranov
Posts: 134
Joined: Mon, 3. Jun 13, 23:08
x4

[Fixed]Crashing due NPC Free Trader

Post by Aranov » Sun, 30. May 21, 16:56

Heya, come today asking for some fresh ideas on hunting down an NPC free trader causing my game to crash.
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)
Been working on narrowing down where the issue is, I THINK a trader is trying to jump, possibly to Cho's Defeat epsilon, as deleting the !move script keeps the game from crashing, but of course breaks NPC movement.
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.

Post Reply

Return to “X³: Farnham's Legacy - Scripts and Modding”