Как создать новую вкладку технологий? - Учебники по моддингу - Strategium.ru Перейти к содержимому

Как создать новую вкладку технологий?

Рекомендованные сообщения

Всем привет. Создал новую вкладку технологий, создал ветку для этой вкладки, но игра не видит предметы исследования в ней, в данном моменте я делал ветку бтр'ов. Но их во вкладке нет, она пустая. :( Есть идеи?
common\technologies\lightarmor:

Цитата

technologies = {
    
    @1970 = 0
    @1990 = 2
    @1995 = 4
    @2005 = 6
    @2010 = 8
    @2015 = 10
    @2016 = 12
    @2017 = 14
    @2018 = 16
    @2019 = 18
    @2020 = 20

    apc_weapons = {

        enable_equipments = {
            apc_equipment_0
        }

        
        enable_subunits = {
            infantry
        }
        
        path = {
            leads_to_tech = apc_weapons1
            research_cost_coeff = 1
        }        

        research_cost = 1.5
        start_year = 1970
        folder = {
            name = apc_folder
            position = { x = 0 y = 0 }
        }
        
        categories = {
            apc_weapons
        }
        
        ai_will_do = {
            factor = 1
        }
    }
    
    apc_weapons1 = {

        enable_equipments = {
            apc_equipment_1
        }
                
        path = {
            leads_to_tech = apc_weapons2
            research_cost_coeff = 1
        }        

        research_cost = 1.5
        start_year = 1990
        folder = {
            name = apc_folder
            position = { x = 0 y = @1990 }
        }
        
        categories = {
            apc_weapons
        }
        
        ai_will_do = {
            factor = 1
            
            modifier = {
                factor = 10
                tag = CHI
                
                OR = {
                    date > "1937.1.1"
                    JAP = { is_ai = no }
                }
            }
            
            modifier = {
                factor = 10
                date > "1990.1.3"
            }
        }
    }    
    
    improved_apc_weapons = {

        enable_equipments = {
            apc_equipment_2
        }
        
        path = {
            leads_to_tech = improved_apc_weapons_2
            research_cost_coeff = 1
        }
        path = {
            leads_to_tech = infantry_at
            research_cost_coeff = 1
        }        

        research_cost = 2
        start_year = 2005
        folder = {
            name = apc_folder
            position = { x = 0 y = @2005 }
        }
        
        categories = {
            apc_weapons
        }
        
        ai_will_do = {
            factor = 3
                        
            modifier = {
                factor = 10
                date > "2005.1.1"
            }
            modifier = {
                num_of_military_factories < 50
                factor = 0.5
            }
            #modifier = {
            #    factor = 0
            #    tag = SOV
            #    OR = {
            #        date < "2018.1.1" # stock up on lots of rifles, we got the manpower
            #        AND = {
            #            date > "2017.1.1"
            #            surrender_progress < 0.1 # if we arent losing badly its ok
            #        }
            #    }
            #}
        }
    }
    
    advanced_apc_weapons = {

        enable_equipments = {
            apc_equipment_3
        }    
        
        path = {
            leads_to_tech = advanced_apc_weapons2
            research_cost_coeff = 1
        }

        research_cost = 2
        start_year = 2017
        folder = {
            name = apc_folder
            position = { x = 0 y = @2016 }
        }
        
        categories = {
            apc_weapons
        }
        
        ai_will_do = {
            factor = 0.8
            
            
            modifier = {
                tag = GER
                factor = 2.5
            }
            modifier = {
                num_of_military_factories > 150
                factor = 2.5
            }
            
            modifier = {
                num_of_military_factories < 50
                factor = 0.5
            }
        }
    }
}

common\units\equipment\lightarmor:
 

Цитата

equipments = {

    apc_equipment = {
        year = 1990
    
        is_archetype = yes
        picture = archetype_apc_equipment        
        is_buildable = no
        type = apc
        group_by = archetype
        
        interface_category = interface_category_land
        
        active = yes
        
        #Misc Abilities
        reliability = 0.9
        maximum_speed = 4

        #Defensive Abilities
        defense = 20
        breakthrough = 2
        hardness = 0
        armor_value = 0

        #Offensive Abilities
        soft_attack = 3
        hard_attack = 0.5
        ap_attack = 1
        air_attack = 0

        #Space taken in convoy
        lend_lease_cost = 1
        
        build_cost_ic = 0.43
        resources = {
            steel = 2
        }
        
    }

    apc_equipment_0 = {
        year = 1970
    
        archetype = apc_equipment
        active = yes
        priority = 05
        visual_level = 0
    }

    # Regular infantry  1990
    apc_equipment_1 = {
        year = 1990
    
        archetype = apc_equipment
        parent = apc_equipment_0
        priority = 10
        visual_level = 1

        #Defensive Abilities
        defense = 22
        breakthrough = 3

        #Offensive Abilities
        soft_attack = 6
        hard_attack = 1
        ap_attack = 4
        air_attack = 0

        build_cost_ic = 0.50
    }

    # Improved weapons  ~1995
    apc_equipment_2 = {
        year = 1995
    
        archetype = apc_equipment
        parent = apc_equipment_1
        priority = 10
        visual_level = 2
        
        #Defensive Abilities
        defense = 28
        breakthrough = 4

        #Offensive Abilities
        soft_attack = 9
        hard_attack = 1.5
        ap_attack = 5
        air_attack = 0
        
        build_cost_ic = 0.58
        resources = {
            steel = 3
        }
        
    }
    
    # Advanced weapons  ~2005
    apc_equipment_3 = {
        year = 2005
    
        archetype = apc_equipment
        parent = apc_equipment_2
        priority = 10
        visual_level = 3
        
        #Defensive Abilities
        defense = 34
        breakthrough = 5

        #Offensive Abilities
        soft_attack = 12
        hard_attack = 2
        ap_attack = 10
        air_attack = 0
        
        reliability = 0.8
        build_cost_ic = 0.69
        resources = {
            steel = 4
        }
    }
}

Если ещё что-то нужно готов предоставить.

Ссылка на комментарий

Присоединиться к обсуждению

Вы можете оставить комментарий уже сейчас, а зарегистрироваться позже! Если у вас уже есть аккаунт, войдите, чтобы оставить сообщение через него.

Гость
Ответить в тему...

×   Вы вставили отформатированное содержимое.   Удалить форматирование

  Only 75 emoji are allowed.

×   Ваша ссылка автоматически преображена.   Отображать как простую ссылку

×   Предыдущее содержимое было восстановлено..   Очистить текст в редакторе

×   You cannot paste images directly. Upload or insert images from URL.

  • Ответы 0
  • Создано
  • Последний ответ
  • Просмотры 126

Лучшие авторы в этой теме

  • Wolfach

    1

Популярные дни

Лучшие авторы в этой теме

Популярные дни

  • Сейчас на странице   0 пользователей

    • Нет пользователей, просматривающих эту страницу


Copyright © 2008-2024 Strategium.ru Powered by Invision Community

×
×
  • Создать...