After year and a half i finally did the testing. I've made small, medium and large versions of land, air and naval factories. Small ones have build capacity of 1, medium 2 and large ones 3. AI will build factories with default SR5ID's only so for naval production it will build only 21212 facility, for land its 21210 and for air its 21211. So if you add new factory types they won't be built by AI in game, the only way to have them in game is to place them manually on the map in map editor. Facilities work fine otherwise - player can build them manually and you can potentially have up to 15 production slots in a single hex if you build all large factories there. I tried using uBuildClassMask values for them as well but they are apparently not implemented yet and are ignored by the game.Uriens wrote: ↑Feb 28 2018 I do remember creating 3 types of factories for my mod. One had only 1 unit production, second 2 and third ... well ... 3. I tested them in game and indeed they had production as intended. I didn't limit them to only one certain type of units but I do remember AI favoring to build the factories with capacity 2.
Some suggestions,
1-Add similar option for facilities in WMData file as the garrisons already have (unitgarrison, 330, 352, 331, 332, 680, 333) from where AI would choose what to build. AI would prioritize cheaper, faster facilities during war while going for more production during peace/preparations.
2-Fix supremewiki page for uBuildClassMask values. Currently on the page https://supremeruler.gamepedia.com/Faci ... tion_types it reads:
Code: Select all
1 - Infantry
2 - Recon
4 - Tank
8 - Anti-Tank
16 - Artillery / MLRS / Launch Vehicle / Mortar
32 - Air Defense
64 - Transport/Bridging
128 - Helicopter
256 - Missiles
512 - Fighter/Interceptor
1024 - Fighter/Bomber
2048 - Fighter/Multi Role
4096 - Strategic Bomber
8192 - Patrol/AWACS / Recon/Surveillance / Surveillance / ECM/Recce
16384 -Transport / Tanker
!!! 32768 - Naval Unit Classes;
65536 - Submarine
131072 - Carrier
262144 - Battleship / Cruiser / Destroyer
524288 - Frigate / Corvette
1048576 - Patrol/Recon
2097152 - Transport/Support
Code: Select all
1 - Infantry
2 - Recon
4 - Tank
8 - Anti-Tank
16 - Artillery / MLRS / Launch Vehicle / Mortar
32 - Air Defense
64 - Transport/Bridging
128 - Helicopter
256 - Missiles
512 - Fighter/Interceptor
1024 - Fighter/Bomber
2048 - Fighter/Multi Role
4096 - Strategic Bomber
8192 - Patrol/AWACS / Recon/Surveillance / Surveillance / ECM/Recce
16384 -Transport / Tanker
32768 - Submarine
65536 - Carrier
131072 - Battleship / Cruiser / Destroyer
262144 - Frigate / Corvette
524288 - Patrol/Recon
1048576 - Transport/Support