Also, I wanted to consult about problem in my game with you, as you are more knowledgeable at this topic.
Implementing cargo decay at shipyards and wharfs in my game seems to solve most of the problems with shipyards and wharfs, but one particular shipyard (Argon) does not place buy orders for shield components, even after free cargo space becomes available.
Argon shipyard used to have no free storage available, so I thought that this may be the reason for insufficient shield components. But even after decreasing values by using scripts, mods and save editing, no buy offers for shield components are created...
Things I have found out during my tests:
Reducing quantity of every item in storage for a bit allows the shipyard to create buy offers for other resources, but Shield components are still listed as "Low demand" at -41% price and no buy offers for them are created.
Reducing quantity of every item in storage to zero creates a lot of buy orders for all resources with "high demand" price, but shield components in particular stay the same as in previous case, no buy order created.
Interestingly, increasing available container cargo space creates buy orders for every item, including shield components.
There are no problems with building queue, as ordering ships without shields (no shield components are required for building) gets them built without problems and correctly uses respective resources.
I have had a thought, that maybe there is a ware reservation for shield components at the shipyard. I have waited for hours in SETA mode for a trader to come and fulfil it, but shield components never got supplied. Maybe trader got murdered or changed his mind along the way, but nevertheless the ware reservation was never updated. So it may be a bug related to ware reservation. I am not sure if there is a timeout for ware reservations in the game.
All the cases I checked for were tested without using minimum adjustment for wares in your mod, as there seems to be some big underlying issue for shipyards not placing buy orders for much needed resource.
I hoped that changing the current stock might get it unstuck, but even after using minimum adjustment for wares in your mod, no additional buy offers for shield components are placed. If adjustment script bumped available shield components stock to required values, ships are finally getting built, but still no new buy offers for shield components required in build process of next ships in queue are being created.
I am using several QoL mods, but main ones that may have an effect on this are VRO with XR ship pack for it, and faction fixes by Mysterial
I have checked several relevant threads, and it seems that there were problems like this before. I wonder if I should fill a bug report for this or is this a problem at my end?
Relevant threads examples:
viewtopic.php?t=404367
viewtopic.php?t=408512
https://www.reddit.com/r/X4Foundations/ ... omponents/
https://www.reddit.com/r/X4Foundations/ ... pply_good/ (Reddit post with exactly the same problem - shield components)
After staying in SETA for a very long time, it seems that one ship finally got built somehow, and "low demand" price for shield components changed from -41% to -30%.Still no buy offers active for it, while shipyard is sitting at 22 shield components out of 1773 max. All other resources are slowly getting filled to 100% and have buy offers set for them. I have since left game for an hour to run by itself in SETA and set up a recording to check it afterwards. Shield components increased without any new buy offers created two times: the first time it was a magical bump from 22 to 190 with no apparent reason for it, and the second time it increased from 190 to 358 right when some ship has undocked (docked ships count has changed from 1 to 0)
Screenshots:
https://imgur.com/a/M0Fwwro
Sorry for a long post, I bought X4 at steam sale this summer without expecting much but got really interested. Such a great game, looking forward to next expansion.
Edit: I went ahead and opened a bug report on Technical Support forum, let's see what happens next