• 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.

Goldkilla

Corporal
54 Badges
May 14, 2016
37
13
  • Cities in Motion 2
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Pillars of Eternity
  • Magicka
  • Tyranny - Tales from the Tiers
  • Hearts of Iron IV: Expansion Pass
  • Tyranny: Archon Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Cadet
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: The Old Gods
  • Europa Universalis III
  • Divine Wind
  • Stellaris: Necroids
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Majesty 2 Collection
  • Semper Fi
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: Warband
  • Battle for Bosporus
  • Europa Universalis IV: Common Sense
  • Stellaris: Federations
  • Knights of Pen and Paper 2
  • Stellaris
  • Tyranny: Archon Edition
  • Europa Universalis IV
So today I tried to change/make some new ship templates and I wondered, where does the part with key = "" comes from? In other files like in battleship.txt I found: key = "BATTLESHIP_BOW_L1M1S2" but I can't find anything relating to it or I'm blind, maybe some one here knows?

Code:
ship_section_template = {
    key = "Sajuuk Aft"
    ship_size = battleship
    fits_on_slot = mid
    entity = "sajuuk_aft_entity"
    icon = "GFX_ship_part_core_mid"
   
    # Big lasers
    weapon_preferences = { weapon_type_energy }
    ai_weight = {
        modifier = {
            factor = 8.0
            OR = {
                has_ai_personality = hegemonic_imperialists           
                has_ai_personality = fanatic_purifiers                               
                has_ai_personality = ruthless_capitalists   
                has_ai_personality = metalhead
            }
        }
    }
   
    #component_slot = {
    #    name = "LARGE_GUN_01"
    #    slot_size = large
    #    slot_type = weapon
    #    locatorname = "large_gun_01"
    #}
    #component_slot = {
    #    name = "LARGE_GUN_02"
    #    slot_size = large
    #    slot_type = weapon
    #    locatorname = "large_gun_02"
    #}
   
    #component_slot = {
    #    name = "SMALL_GUN_01"
    #    slot_size = small
    #    slot_type = weapon
    #    locatorname = "small_gun_01"
    #   
    #}
   
    #component_slot = {
    #    name = "SMALL_GUN_02"
    #    slot_size = small
    #    slot_type = weapon
    #    locatorname = "small_gun_02"
    #
    #}
   
    #component_slot = {
    #    name = "SMALL_GUN_03"
    #    slot_size = small
    #    slot_type = weapon
    #    locatorname = "small_gun_03"
    #
    #}
   
    #component_slot = {
    #    name = "SMALL_GUN_04"
    #    slot_size = small
    #    slot_type = weapon
    #    locatorname = "small_gun_04"
    #
    #}
   
    small_utility_slots = 1
    medium_utility_slots = 1
    large_utility_slots = 2
   
    cost = 20
}
 

John the Gamer

Sergeant
96 Badges
May 28, 2011
98
18
  • Hearts of Iron IV: Expansion Pass
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Res Publica
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Rights of Man
  • Deus Vult
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron II: Armageddon
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Leviathan: Warships
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III Collection
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Stellaris: Nemesis
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Monks and Mystics
  • 500k Club
The "Key" is just the name of the part. It is used by other files to find it.

So you can put MY_BATTLESHIP_MOD_MID_L2S4 or whatever you like as the key. Just make sure it's unique (and pick something that makes it easy for you to remember what the part does). You can then put that key in a localisation file to give it an in-game name.
 
  • 1
Reactions: