stellaris吧 关注:281,892贴子:6,823,478
  • 24回复贴,共1

改船向提问

只看楼主收藏回复

如何自制一种新类型的战舰?我的想法是这样的,直接调用哺乳类的战列舰模型,6L槽9M槽20000血,不可设计,只能用event事件调。改代码什么的我都会。唯独不知道去哪里提取模型以及怎么给这艘船安上这个模型


1楼2019-10-18 22:09回复
    插眼


    IP属地:北京来自Android客户端2楼2019-10-18 22:14
    回复
      一个小时过去了,没人?


      来自手机贴吧3楼2019-10-18 23:28
      回复
        飞船类型和飞船模块并不是同一个东西,用原版模型很简单,定义飞船模块的代码中有一个
        entity = "xxx",这个就是飞船模型的实体,你要用战列舰的,就去战列舰的原文件中找这个实体的名字,复制过去就好。


        来自Android客户端4楼2019-10-18 23:30
        收起回复


          来自Android客户端6楼2019-10-19 00:03
          回复
            今天尝试用虫族女王的模型做这艘船,结果完全没用。代码如下
            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"
            到底哪里出错了


            7楼2019-10-19 21:41
            收起回复
              今天改global ship design 时意外发现了一件事。那就是,原来global ship design里的设计是可以完全不按照舰船限制来的!例如哨兵舰队的战列舰,套的模型是各族的战列舰各一艘。然而我给他加了3个光矛3个动能大炮,还装了7个盾4层水晶装甲,结果上游戏后,发现居然能开!就是电矿消耗巨大。而且我看了看数据,在没有任何循环科技的情况下,血量盾量加起来破5000,攻击力上百。现在我知道了,也许我应该写一个event事件,造一艘船。再在global ship design文件里编辑那艘船的配件。


              来自手机贴吧8楼2019-10-20 00:10
              回复