Results 1 to 7 of 7

Thread: Problem regarding converting castle to city and recruitment slot.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Wiezma's Avatar Civis
    Join Date
    Feb 2006
    Location
    Copenhagen, Denmark
    Posts
    114

    Icon4 Problem regarding converting castle to city and recruitment slot.

    Greetings gentlefolk

    I'm currently playing the Age of Discovery addon for Expanded Americas, and it seemed that the converting castle to city, and vice versa, function had been removed.

    Happy as I am I just add the script lines regarding converting your town to the edb

    BUT it seems that when converting your castle(all levels) to a city the recruitment slots resets at 0, making it impossible to recruit any troops. There is no problem when converting a city(all levels) to a castle.

    I hope any of you have a idea of what could have gone wrong.

    Many thanks and all the best

    Wiezma

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem regarding converting castle to city and recruitment slot.

    It's not all that easy, your recruitment buildings have to convert as well. Or the 'city' or 'castle' entry in the EDB has to be removed.

    Code:
    building barracks
    {
        convert_to castle_barracks ; this will only work if you have a building tree with this name
        levels town_watch town_guard city_watch militia_drill_square militia_barracks army_barracks royal_armoury 
        {
            town_watch city requires factions... ; if you remove that entry, then the building will work in castle and city, needs the removal of the "convert_to line"










  3. #3
    Wiezma's Avatar Civis
    Join Date
    Feb 2006
    Location
    Copenhagen, Denmark
    Posts
    114

    Default Re: Problem regarding converting castle to city and recruitment slot.

    I have the building tree with the right name and the building does convert, but under recuitment it just says "recruitment slots remaining: 0"?

    I'm sorry if I haven't been clear or doesn't understand...
    Last edited by Wiezma; May 13, 2011 at 10:58 AM.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem regarding converting castle to city and recruitment slot.

    Have you made sure there is this capability for each building in the core_castle_building tree?:

    Code:
    building core_castle_building
    {
        convert_to core_building
        levels motte_and_bailey wooden_castle castle fortress citadel 
        {
            motte_and_bailey castle requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, asian, } 
            {
                capability
                {
                    recruit_pool "Hobilars"  1   0.2   2  0  requires factions { england, ireland, } 
                    wall_level 0
                    tower_level 1
                    law_bonus bonus 1
                    recruitment_slots 1
                }
                material wooden
                construction  6 
                cost  800 
                settlement_min village
                upgrades










  5. #5
    Wiezma's Avatar Civis
    Join Date
    Feb 2006
    Location
    Copenhagen, Denmark
    Posts
    114

    Default Re: Problem regarding converting castle to city and recruitment slot.

    Yes recruitment slot is listed for all core buildings. The thing is that the "recuitment slot remaining" is working, but not when I convert any level of city to any level of castle. If I do it the other city --> castle it works fine.

    I have added the building core tree and the convert to tree.

    I really appreciate the help

    Spoiler Alert, click show to read: 

    hidden_resources sparta rome italy america atlantic explorers_guild swordsmiths_guild woodsmens_guild teutonic_knights_chapter_house knights_of_santiago_chapter_house crusade jihad arguin horde_target no_pirates no_brigands sailing new_world

    building core_building
    {
    convert_to core_castle_building
    levels wooden_pallisade wooden_wall stone_wall large_stone_wall huge_stone_wall
    {
    wooden_pallisade city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
    {
    convert_to 1
    capability
    {
    wall_level 0
    tower_level 1
    free_upkeep bonus 2
    happiness_bonus bonus 1
    recruitment_slots 1
    }
    material wooden
    construction 2
    cost 600
    settlement_min village
    upgrades
    {
    wooden_wall
    }
    }
    wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
    {
    convert_to 2
    capability
    {
    wall_level 1
    gate_strength 3
    tower_level 1
    free_upkeep bonus 3
    happiness_bonus bonus 1
    recruitment_slots 2
    }
    material wooden
    construction 2
    cost 1200
    settlement_min town
    upgrades
    {
    stone_wall
    }
    }
    stone_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 2
    tower_level 1
    gate_strength 6
    gate_defences 2
    free_upkeep bonus 4
    happiness_bonus bonus 1
    recruitment_slots 2
    }
    material stone
    construction 3
    cost 2400
    settlement_min large_town
    upgrades
    {
    large_stone_wall
    }
    }
    large_stone_wall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 3
    tower_level 1
    gate_strength 8
    gate_defences 2
    free_upkeep bonus 5
    happiness_bonus bonus 2
    recruitment_slots 3
    }
    material stone
    construction 3
    cost 4800
    settlement_min city
    upgrades
    {
    huge_stone_wall
    }
    }
    huge_stone_wall city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 4
    tower_level 1
    gate_strength 10
    gate_defences 2
    free_upkeep bonus 6
    happiness_bonus bonus 3
    recruitment_slots 4
    }
    material stone
    construction 4
    cost 9600
    settlement_min large_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building core_castle_building
    {
    levels motte_and_bailey wooden_castle castle fortress citadel
    {
    motte_and_bailey castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 0
    tower_level 1
    law_bonus bonus 1
    recruitment_slots 1
    }
    material wooden
    construction 2
    cost 600
    settlement_min village
    upgrades
    {
    wooden_castle
    }
    }
    wooden_castle castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    convert_to 0
    capability
    {
    wall_level 1
    gate_strength 3
    tower_level 1
    free_upkeep bonus 1
    law_bonus bonus 2
    recruitment_slots 2
    }
    material wooden
    construction 2
    cost 1200
    settlement_min village
    upgrades
    {
    castle
    }
    }
    castle castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    convert_to 1
    capability
    {
    wall_level 2
    tower_level 1
    gate_strength 6
    gate_defences 2
    free_upkeep bonus 2
    law_bonus bonus 3
    recruitment_slots 3
    }
    material stone
    construction 3
    cost 2400
    settlement_min town
    upgrades
    {
    fortress
    }
    }
    fortress castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 3
    tower_level 1
    gate_strength 8
    gate_defences 2
    free_upkeep bonus 3
    law_bonus bonus 4
    recruitment_slots 4
    }
    material stone
    construction 3
    cost 4800
    settlement_min large_town
    upgrades
    {
    citadel
    }
    }
    citadel castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    wall_level 4
    tower_level 1
    gate_strength 10
    gate_defences 2
    free_upkeep bonus 4
    law_bonus bonus 5
    recruitment_slots 5
    }
    material stone
    construction 4
    cost 9600
    settlement_min city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }

    ------ convert to -------

    building convert_to_castle
    {
    convert_to convert_to_city
    levels village_to_wooden_castle small_town_to_stone_keep large_town_to_castle
    {
    village_to_wooden_castle city requires factions { denmark, hre, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, teutonic_order, norway, }
    {
    convert_to 0
    capability
    {
    }
    material wooden
    construction 1
    cost 800
    settlement_min village
    upgrades
    {
    small_town_to_stone_keep
    }
    }
    small_town_to_stone_keep city requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    convert_to 1
    capability
    {
    }
    material wooden
    construction 1
    cost 1600
    settlement_min town
    upgrades
    {
    large_town_to_castle
    }
    }
    large_town_to_castle city requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    convert_to 2
    capability
    {
    }
    material wooden
    construction 2
    cost 3200
    settlement_min large_town
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building convert_to_city
    {
    convert_to convert_to_castle
    levels wooden_castle_to_village stone_keep_to_small_town castle_to_large_town large_castle_to_city fortress_to_city
    {
    wooden_castle_to_village castle requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    convert_to 0
    capability
    {
    }
    material wooden
    construction 1
    cost 800
    settlement_min village
    upgrades
    {
    stone_keep_to_small_town
    }
    }
    stone_keep_to_small_town castle requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    convert_to 1
    capability
    {
    }
    material wooden
    construction 1
    cost 1200
    settlement_min town
    upgrades
    {
    castle_to_large_town
    }
    }
    castle_to_large_town castle requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    convert_to 2
    capability
    {
    }
    material wooden
    construction 2
    cost 1600
    settlement_min large_town
    upgrades
    {
    large_castle_to_city
    }
    }
    large_castle_to_city castle requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    capability
    {
    }
    material wooden
    construction 2
    cost 3200
    settlement_min city
    upgrades
    {
    fortress_to_city
    }
    }
    fortress_to_city castle requires factions { denmark, hre, teutonic_order, scotland, antioch, france, jerusalem, england, middle_eastern, eastern_european, greek, southern_european, ireland, norway, }
    {
    capability
    {
    }
    material wooden
    construction 3
    cost 6400
    settlement_min large_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem regarding converting castle to city and recruitment slot.

    You are missing a line here:

    Code:
    building core_castle_building
        convert_to core_building
          {
              levels motte_and_bailey wooden_castle castle fortress citadel 
                {
            motte_and_bailey castle requires factions { northern_european,  middle_eastern, eastern_european, greek, southern_european, } 
                       {
               capability










  7. #7
    Wiezma's Avatar Civis
    Join Date
    Feb 2006
    Location
    Copenhagen, Denmark
    Posts
    114

    Default Re: Problem regarding converting castle to city and recruitment slot.

    Beside adding the missing line, it seems I had to to delete the last two levels in the castle to city tree.

    }
    large_castle_to_city castle requires factions { denmark, hre, scotland, france, england, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    }
    material wooden
    construction 2
    cost 3200
    settlement_min city
    upgrades
    {
    fortress_to_city
    }
    }
    fortress_to_city castle requires factions { denmark, hre, scotland, france, england, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
    {
    capability
    {
    }
    material wooden
    construction 3
    cost 6400
    settlement_min large_city
    upgrades
    {
    }
    }
    Last edited by Wiezma; May 14, 2011 at 04:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •