今天尝试用虫族女王的模型做这艘船,结果完全没用。代码如下
ship size文件
# Dragon
Dragon = {
entity = swarm_queen_entity
is_space_object = yes
graphical_culture = { "swarm_01" }
max_speed = 3
acceleration = 0.2
rotation_speed = 0.15
combat_max_speed = @battleship_combat_speed
combat_rotation_speed = @battleship_combat_rotation
collision_radius = @battleship_collision_radius
modifier = {
ship_evasion_mult = -0.75
ship_upkeep_mult = -1
ship_armor_add = 25
}
max_hitpoints = 20000
size_multiplier = 8
fleet_slot_size = 4
section_slots = { "mid" = { locator = "part1" } }
num_target_locators = 0
is_space_station = no
icon_frame = 5
class = shipclass_military
is_designable = no
}
这里是global ship design文件
# Dragon
ship_design = {
name = "Dragon"
ship_size = Dragon
country_type = swarm
section = {
template = "swarm_queen_key"
slot = "mid"
component = {
slot = "LARGE_GUN_01"
template = "LARGE_KINETIC_ARTILLERY_2"
}
component = {
slot = "LARGE_GUN_02"
template = "LARGE_KINETIC_ARTILLERY_2"
}
component = {
slot = "LARGE_GUN_03"
template = "LARGE_KINETIC_ARTILLERY_2"
}
component = {
slot = "LARGE_GUN_04"
template = "LARGE_KINETIC_ARTILLERY_2"
}
component = {
slot = "LARGE_GUN_04"
template = "LARGE_KINETIC_ARTILLERY_2"
}
component = {
slot = "MEDIUM_GUN_01"
template = "SCOURGE_PROJECTILE_WEAPON"
}
component = {
slot = "MEDIUM_GUN_02"
template = "SCOURGE_PROJECTILE_WEAPON"
}
component = {
slot = "MEDIUM_GUN_03"
template = "SCOURGE_PROJECTILE_WEAPON"
}
component = {
slot = "STRIKE_CRAFT_01"
template = "SWARM_STRIKE_CRAFT"
}
component = {
slot = "STRIKE_CRAFT_02"
template = "SWARM_STRIKE_CRAFT"
}
component = {
slot = "STRIKE_CRAFT_03"
template = "SWARM_STRIKE_CRAFT"
}
component = {
slot = "STRIKE_CRAFT_04"
template = "SWARM_STRIKE_CRAFT"
}
component = {
slot = "LARGE_UTILITY_1"
template = "LARGE_ARMOR_5"
}
component = {
slot = "LARGE_UTILITY_2"
template = "LARGE_ARMOR_5"
}
component = {
slot = "LARGE_UTILITY_3"
template = "LARGE_ARMOR_5"
}
component = {
slot = "MEDIUM_UTILITY_1"
template = "MEDIUM_AUTO_REPAIR"
}
}
required_component="WARP_DRIVE_3"
required_component="COMBAT_COMPUTER_DEFAULT"
required_component="SHIP_THRUSTER_4"
}
这里是section template 文件
# Dragon Section
ship_section_template = {
key = "swarm_queen_key"
ship_size = Dragon
fits_on_slot = mid
entity = "empty_section_entity"
icon = "GFX_ship_part_core_mid"
component_slot = {
name = "LARGE_GUN_01"
slot_size = large
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "LARGE_GUN_02"
slot_size = large
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "LARGE_GUN_03"
slot_size = large
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "LARGE_GUN_04"
slot_size = large
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "MEDIUM_GUN_01"
slot_size = medium
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "MEDIUM_GUN_02"
slot_size = medium
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "MEDIUM_GUN_03"
slot_size = medium
slot_type = weapon
locatorname = "root"
}
component_slot = {
name = "STRIKE_CRAFT_01"
slot_size = large
slot_type = strike_craft
locatorname = "root"
}
component_slot = {
name = "STRIKE_CRAFT_02"
slot_size = large
slot_type = strike_craft
locatorname = "root"
}
component_slot = {
name = "STRIKE_CRAFT_03"
slot_size = large
slot_type = strike_craft
locatorname = "root"
}
component_slot = {
name = "STRIKE_CRAFT_04"
slot_size = large
slot_type = strike_craft
locatorname = "root"
到底哪里出错了