X4: Foundations

X4: Foundations

200 ratings
Player Restock Subordinates
10
3
9
2
7
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
43.988 KB
23 May, 2020 @ 9:18am
20 Feb @ 10:03am
11 Change Notes ( view )

Subscribe to download
Player Restock Subordinates

Description
NOTE: As of game version 7.5, Egosoft has added an implementation of some of this functionality. As their version does not currently support buying from NPCs, this mod will continue to be maintained. For now, it works by completely replacing the Egosoft implementation with what this mod has done all along. However, you can now toggle it via the UI.

-----------------------------------------

Adds the ability to set fleet commanders or stations to rebuild/repurchase their direct subordinates (with caveats)

Talk to the commanding ship's pilot or the station manager to enable/disable.

The loadout, crew amounts, assignment, group, and ship name will all be saved and applied to the new ship. Adding or removing subordinates after enabling is supported.

The shipyard to use is selected in the following order: player shipyard with free slots -> closest player shipyard -> NPC shipyard with free slots -> closest NPC shipyard

NPC shipyards only need to be able to build the main hull to be able to build the whole ship, even if other factions' components are used (same criteria as the player building NPC ships), but player shipyards need to have ALL the blueprints.

Currently, the rebuild behavior will be lost if the commander is destroyed or the pilot/manager is reassigned. Enabling for the commander will not enable or handle sub-commanders. This may be improved in the future.

Known issues:
  • The purchase price at NPC shipyards will not quite match what you would get from manually building through the UI. It will be close, but usually a little more than normal. Until I find a way to fix it, think of this as a convenience tax :)
  • Although new ships will have exactly the equipment they had before, they aren't guaranteed to be equipped in the same location. For example, if you had missile turrets on the left and pulse turrets on the right, these may be swapped.
Popular Discussions View All (4)
2
16 Oct, 2024 @ 5:27pm
Bug Found on 7.0 B3 (building 3x)
Bendak
0
18 Feb @ 3:48am
A very strange bug
猫猫
0
29 Jun, 2024 @ 2:03pm
Feautre request: Integrate Player restock subordinates UI mod
GameBurrow
209 Comments
sf 17 Jun @ 3:37am 
Tried turning off and on the mod to try to fix a problem where replaced ships did not remove the ghosted entry in the fleet. But now, the NPC pilots lacks the enable option in comms ui.
jkelley2 21 May @ 4:08am 
they clear when the fleet leader replaces a ship but if you have them layered like an Asgard leading the fleet then a Tokyo under it and the Tokyo loses some fighters and replaces them is when it happens

but if the Tokyo was fleet leader they clear properly
Mysterial  [author] 20 May @ 4:33pm 
That's probably a bug on my end. The grayed out ships feature doesn't fully work like vanilla but it should be getting cleared out when replaced ships fully rejoin with the commander.
jkelley2 20 May @ 7:17am 
not sure if this is from something on my end but ive noticed something else minor

if i assign a carrier to mimic a destroyer or other ship, set both up with restock subordinates, the ship gets replaced properly just one copy, but the destroyed grayed out one is NOT removed from my ship list
fatbasementdweller 1 May @ 8:27pm 
Thank you for continuing to maintain this mod. Not to knock Egosoft since I love this game, but this mod is better than their implementation.
jkelley2 28 Mar @ 5:05pm 
ive got no clue then, unless it only check for enemies right at that 30 minute cause i let the game sit for an hour and no replacement ships were ever ordered despite being points with no hostiles

i just cant seem to make this work for what i want it for and used it for in 6.X replacing S ships in large fleets defending border gates to enemy controlled sectors like Getsu Fune -> Savage Spur

as ive been fiddling with it for like 9 hours today and cant get it to work at all buying from the Terran Wharf when im at +27 with them
Mysterial  [author] 28 Mar @ 3:23pm 
Currently checks every 30 min.
jkelley2 28 Mar @ 2:57pm 
how long should it take? cause i have a fleet setup guarding the gate in Getsu Fune, no enemies on radar at all, 3 ships set for replacement ... i have the money but none are getting ordered

unless its counting the wreckage of ships?

but i dont remember having this issue back in early 6.X i remember ships getting ordered while fighting was still going on
Mysterial  [author] 28 Mar @ 7:20am 
Ships won't order replacements while there are hostiles in range. It doesn't check whether those hostiles can fight back or not. Move away from the indestructible build storage and it should work.
jkelley2 28 Mar @ 7:08am 
i dont know if its maybe because of a hostile indestructible xenon build storage but i have a carrier set to defend a gate i have about 7 million creds the destroyed ship costs 4 million but its not replacing it

i dont have my own Wharf so it should order from the Terran Wharf but nothing is being ordered and there is nothing in the logbook just a greyed out "replacement ship" in the fleet menu