---------------------
Sometime ago when playing, I noticed the Riptide Rakers ("RIP") would self-destruct their scrap processor stations for no apparent reason. It was not the Tide which caused this, so that's very strange.
Later discussion with other modders revealed a problem with the Faction Logic (Economy) script. I walk through the script as follows:
- The script regularly checks RIP station stock levels
- Very often there is a strong surplus of claytronics and a strong deficit of hull parts
- Faction Logic script decides to pause claytronics production
- After some time, with no improvement to the situation, Faction Logic script decides to destroy the station that has paused claytronics production
- I notice that the station is destroyed and its building materials are on sale
The key is that Claytronics production is tied with Hull Parts production via the Scrap Recycler module. Pausing Claytronics production will also pause Hull Parts production. When shipyards run out of Hull Parts, they will stop building ships, which will further decrease Claytronics demand, which then also slows down Hull Parts production. This creates a cycle which encourages the RIP to self-destruct almost all of their stations and starve off the Avarice economy.


