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

Deon_ac

Private
78 Badges
Mar 3, 2010
14
2
  • Stellaris: Galaxy Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny - Tales from the Tiers
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Necroids
  • Cities: Skylines Industries
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Stellaris: Ancient Relics
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Cities: Skylines - Campus
  • Prison Architect
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders: Planetfall Premium edition
  • Europa Universalis IV
  • Cities: Skylines - Parklife
  • Warlock: Master of the Arcane
  • 500k Club
  • Stellaris: Lithoids
  • Stellaris: Megacorp
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Shadowrun Returns
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Shadowrun: Dragonfall
Dear community.

Whenever I mod an existing section, let's say, of a transport ship, to add a gun to it, I get the following errors in the error log, for every culture type:

Code:
[05:23:11][section.cpp:327]: ship section entity "mammalian_01_transport_ship_entity" is missing required locator "small_gun_01"

[05:23:11][ship_design_templates.cpp:403]: Section template "DEFAULT_TRANSPORT_SECTION" with entity "mammalian_01_transport_ship_entity" is missing locator "small_gun_01".

I assume it complains about finding a place to put the locator I created on the model.
I tried to create a file gfx\model\ships\mammalian_01 and make _mammalian_01_ships_entities.asset in it, and add the following line to the transport there:

Code:
            locator = { name = "small_gun_01"    position = { 0 0 0 } }

However that does not seem to fix the error. Could someone give me a few hints how to handle it?

My mod file contents are below:
Code:
ship_section_template = {
    key = "DEFAULT_TRANSPORT_SECTION"
    ship_size = transport
    fits_on_slot = mid
    entity = "transport_ship_entity"
    icon = "GFX_ship_part_core_mid"
  
    component_slot = {
        name = "SMALL_GUN_01"
        slot_size = small
        slot_type = weapon
        locatorname = "small_gun_01"
    }
  
    small_utility_slots = 2
    medium_utility_slots = 2
    aux_utility_slots = 1
}

As a separate question, this does generate an error:

Code:
[05:23:11][ship_design_templates.cpp:219]: duplicate section template found. Multiple sections are named [DEFAULT_TRANSPORT_SECTION].  file: common/section_templates/transport.txt line: 11

Does this simply mean that I replaced the section, or will it actually store two copies in the memory and some errors may come from it? Is it safe to mode sections like this, or am I supposed to replace the whole file?
 
I was googling today trying to figure out this exact issue, and managed to work it out myself.

Each ship will have certain hardpoint slots to attach your components. If you use a name different to what I assume is in a DLL file, it will throw these errors. So how to resolve? Just use the available names, they dont have to match. I modded a Titan, the bow (front) section only has a single slot (xl_gun_01) and I have been able to attach point defence and strike craft slots there.

You can find what the names of the points are on each section by looking at the appropriate file in common > section_templates > [ApproprateShipTypeHere].txt

Let me know if that doesnt make sense and I'll try clarify