X4: Foundations

X4: Foundations

115 ratings
Module Limit Expansion
3
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
203.581 KB
6 Apr, 2024 @ 6:18pm
8 Sep @ 8:00am
23 Change Notes ( view )

Subscribe to download
Module Limit Expansion

Description
This mod increases the module limit for NPC stations.
  • When starting a new game, each station will have more modules, reducing the total number of stations and improving game performance.
  • If introduced mid-game, the new module limit will be applied when NPCs expand existing stations or construct new ones.
22 Comments
Schwarzemona  [author] 17 Aug @ 5:15am 
このMODは大きなステーションへの変更です。そのため、このMODはその問題を修正しません。もし修正が必要であれば、 NPC経済しきい値微調整 を使っていただけますでしょうか?

This mod changes station scale. Therefore, this mod doesn't fix the problem. If you would like to fix, could you please use Tweak NPC Faction Economic Thresholds ?
Schwarzemona  [author] 17 Aug @ 5:14am 
無限ループの原因を見つけました。
バニラでは、製品のステーションを建築する際、その製品の原料の不足テーブルを確認します。
しかし、建築に使う製品が不足しているとき、バニラスクリプトは建築に使う製品の不足テーブルを確認します。
つまり、原料が足りないか確認されません。
そのため、無限ループが起きると考えています。

I found a reason the feedback loop.
In vanilla, when a product's station will be built, a script checks a shortage table for the product's resource.
But when the product used for building is shortage, the script checks a shortage table for the product used for building.
So, the product's resource isn't checked.
Therefore, I think the feedback loop occur.
QuietMan 4 Mar @ 4:57am 
could the feedback loop (shortage -> more modules -> shortage) be cause as the AI planning cycle is balanced for more smaller stations = faster build?
The building time for each station is constrained by having only one module build at a time. You might need to reduce the module building time to balance the time for adding new modules to the AI planning cycle.
Schwarzemona  [author] 9 Feb @ 2:52pm 
わかりました。楽しんでくれてありがとうございます。
I understand. Thanks for having fun.
Mr Testicle Inspecticle 9 Feb @ 2:49pm 
Nah nah bro i was just saying how i basically recreated the terraformer war in my game lmao, it aint a bad review by any means
Schwarzemona  [author] 9 Feb @ 2:47pm 
このMODはあくまでステーションのモジュール数制限を変更するのみで、派閥のステーション建築のロジックを弄っていないのですが、確かに船体部品とクレイトロニクスが不足してしまうことがあり、結果無限ループ(船体部品とクレイトロニクスが足りないから増やそう、さらに船体部品とクレイトロニクスが足りないから‥‥)に陥ってしまうことがあるようです。何とかならないかなぁ‥‥
This mod only changes the module limit for stations and doesn’t alter the logic behind how factions build their stations. However, as you observed, it can lead to shortages of hull parts and claytronics, potentially causing a feedback loop (e.g., "Not enough hull parts and claytronics → Build more modules → Even fewer hull parts and claytronics"). I wonder if there’s a way to solve this...
Mr Testicle Inspecticle 9 Feb @ 10:45am 
Downloaded this mod in the middle of a game that was going on for a while, The demand for hull parts and claytronics shot up and the galaxy went into turmoil, the paranid in litanys fury and wretched skys were destroyed by the xenon because they used all their resources on stations and couldnt defend thenselves, the zyarth in the neighboring sectors followed soon after and were pushed back all the way to family nhuut calling for my intervention, even the holy order was get eating alive for the same reason. But hey atleast the other factions like the terrans started prospering so 10/10 would repeat history again :steamthumbsup:
Osium 1 Nov, 2024 @ 3:59pm 
Ok thanks, perfect explanation, thank you kindly!
Schwarzemona  [author] 31 Oct, 2024 @ 7:02am 
なぜこのような(modules.xmlで定義せずに別々の値を定義)ことをしているかというと、ゲームスタート時にモジュール上限数が大きいとステーション生成に失敗する可能性が高くなるためです。

The reason for setting these values separately (without defining them in modules.xml) is to avoid station generation failures, which can become more likely if module limits are too high at the start of the game.
Schwarzemona  [author] 31 Oct, 2024 @ 7:01am 
<replace sel="/parameters/economy/modulelimits/@production">20</replace>

This defines the module limit for modules that do not have an upper limit set in modules.xml. In this mod, I've removed the upper limits for many modules in modules.xml and instead defined them in parameters.xml.

<replace sel="/god/stations/defaults/modules/@production">6</replace>
<replace sel="/god/stations/defaults/quota/@sector">40</replace>

Both of these are only applied at the start of the game. The first one defines the upper limit at the start of the game for modules that don’t have a limit in modules.xml, while the second one sets the sector cap for stations at the beginning of the game.