• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

John_Sux

Corporal
36 Badges
May 6, 2018
26
105
  • Stellaris: Lithoids
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron 4: Arms Against Tyranny
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Stellaris: Galaxy Edition
  • Stellaris
  • Stellaris: Synthetic Dawn
I need to prevent the AI from building a new ship type from a mod I'm using.

I know that I can accomplish this by modifying the file of the ship type directly. I looked at the Stellaris wiki and found this:

Code:
   ai_weight = {
       weight = 0
   }

Can I paste this as is into the ship type's main file /mod/common/ship_sizes/ship.txt? Or do I need to figure out something more specific like "is_not_ai" under shipyards in that file.