NPC ship construction stuck in my shipyard [3.10 vanilla SV]

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

harokyang
Posts: 106
Joined: Tue, 31. Mar 15, 11:27
x4

NPC ship construction stuck in my shipyard [3.10 vanilla SV]

Post by harokyang »

I have an NPC ship stuck in build queue
It won't start build, nor can the order be cancelled
All other NPC orders are also blocked, non of them can be built, but those order can be cancelled
I have lots of resource available, I can even build my own ship without problem
I have bought every blueprint in game, nothing I cannot build, and this shipyard used to work ok

I remember once I enabled faction restriction of ship build and cancelled some NPC order
Will this cause ship won't finished forever?
Last edited by harokyang on Mon, 13. Apr 20, 12:07, edited 1 time in total.
harokyang
Posts: 106
Joined: Tue, 31. Mar 15, 11:27
x4

Re: NPC ship construction stuck in my shipyard

Post by harokyang »

Here is the save file, the S/M fab at PHQ stuck with a TEL ship and cannot be cancelled
I tried remove the S/M fab module but the it still listed in under construction
I rebuild the S/M fab, it still stuck
Can find a way to remove it from the list

https://www.dropbox.com/s/pbrkic3ffjald ... ml.gz?dl=0
harokyang
Posts: 106
Joined: Tue, 31. Mar 15, 11:27
x4

Re: NPC ship construction stuck in my shipyard [3.10 vanilla SV]

Post by harokyang »

Well, I edited the savefile to manually remove the stuck ship from construction order, and now my shipyard can build NPC ships again

This will mark your save 'modified', so use at your own risk
I hope ego fix this issue, otherwise you have to remove the order yourself

I simply moved the stuck ship entity from build queue list to deleting list (any cancelled ship order will be placed in this list)
After loading the savefile, the game treat it as a cancelled order and did all the cleanup

in detail
1: In game set savefile compression off
2: Save the game
3: Edit the xml save file
4: Find your shipyard by searching for its code name (such as ABC-123)
5: When you found the entry of the shipyard, look at the end of component line, remember the id="[0x123456]"
6: Now search for string builder="[0x123456]" (replace with your shipyard id), you will find the construction queue list block of the shipyard, everything queued for construction is in <queue> block, it looks like

Code: Select all

<queue>
<build id="[0xcbf]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x25651]" faction="teladi" price="1112729" flags="nothing"/>
<build id="[0xcc0]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1689]" faction="split" price="6940037" flags="nothing"/>
<build id="[0xcc1]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1bea]" faction="split" price="1761327" flags="nothing"/>
<build id="[0xcc2]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1e7c]" faction="split" price="3986138" flags="nothing"/>
<build id="[0xcc3]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1d4a]" faction="split" price="663938" flags="nothing"/>
<build id="[0xcc4]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1888]" faction="split" price="827851" flags="nothing"/>
<build id="[0xcc5]" type="buildship" preexisting="1" builder="[0x123456]" component="[0x1785]" faction="split" price="2694644" flags="nothing"/>
<build id="[0xcc6]" type="buildship" preexisting="1" builder="[0x123456]" component="[0xef9]" faction="split" price="2166258" flags="nothing"/>
</queue>
7: now move everything inside block <queue></queue> to the next block <removed></removed>, you need to add the <removed> block if not exist, and insert deleting="1" after preexisting="1"

Code: Select all

<queue>
</queue>
<removed>
<build id="[0xcbf]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x25651]" faction="teladi" price="1112729" flags="nothing"/>
<build id="[0xcc0]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1689]" faction="split" price="6940037" flags="nothing"/>
<build id="[0xcc1]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1bea]" faction="split" price="1761327" flags="nothing"/>
<build id="[0xcc2]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1e7c]" faction="split" price="3986138" flags="nothing"/>
<build id="[0xcc3]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1d4a]" faction="split" price="663938" flags="nothing"/>
<build id="[0xcc4]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1888]" faction="split" price="827851" flags="nothing"/>
<build id="[0xcc5]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0x1785]" faction="split" price="2694644" flags="nothing"/>
<build id="[0xcc6]" type="buildship" preexisting="1" deleting="1" builder="[0x123456]" component="[0xef9]" faction="split" price="2166258" flags="nothing"/>
</removed>
8: save the xml and reload game, all those ship build orders will be removed, the same way as you right click each order and click "cancel"
9: re-enable save compression if you like

Return to “X4: Foundations - Technical Support”