Announcement

Collapse
No announcement yet.

unit build lists

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • unit build lists

    ive made a custom build queue,but it always crashes when i use my custom unit queue,i made it exactly the same as building and wonder custom queues,am i doing something wrong?

    this is the code in unitbuildlists.txt

    Code:
    UNIT_BUILD_LIST_CUSTOM {
    Unit UNIT_ARCHER
    Unit UNIT_CATAPULT
    Unit UNIT_MOUNTED_ARCHER
    Unit UNIT_CAVALRY
    Unit UNIT_TANK
    Unit UNIT_FUSION_TANK
    Unit UNIT_CANNON
    Unit UNIT_ARTILLERY
    Unit UNIT_MOBILE_SAM
    Unit UNIT_WAR_WALKER
    Unit UNIT_BATTLESHIP
    Unit UNIT_PLASMA_DESTROYER
    Unit UNIT_BOMBER
    Unit UNIT_STEALTH_BOMBER
    Unit UNIT_FIGHTER
    Unit UNIT_INTERCEPTOR
    Unit UNIT_CARAVAN
    Unit UNIT_Z_FREIGHT_TRANSPORT
    Unit UNIT_URBAN_PLANNER
    }
    and this is in buildlistsequences.txt

    Code:
    BUILD_LIST_SEQUENCE_CUSTOM {
    BuildListElement { BuildingBuildList BUILDING_BUILD_LIST_CUSTOM }
    
    BuildListElement { WonderBuildList WONDER_BUILD_LIST_CUSTOM }
    
    BuildListElement { UnitBuildList UNIT_BUILD_LIST_CUSTOM }
    #BuildListElement { UnitBuildList UNIT_BUILD_LIST_RANGED }
    #BuildListElement { UnitBuildList UNIT_BUILD_LIST_AIR }
    #BuildListElement { UnitBuildList UNIT_BUILD_LIST_OFFENSE }
    #BuildListElement { UnitBuildList UNIT_BUILD_LIST_DEFENSE }
    #BuildListElement { UnitBuildList UNIT_BUILD_LIST_FREIGHT }
    
    BuildListElement { Infrastructure }
    }
    any help would be appreciated

    edit : also crashed when loading a queue that has unlearned research units ,think it is connected
    Last edited by nirran; March 13, 2021, 14:21.

  • #2
    Hello.
    Have you changed these entries in strategies.txt too?

    // Types of standard units that should be built
    OffensiveUnitList UNIT_BUILD_LIST_OFFENSE
    DefensiveUnitList UNIT_BUILD_LIST_DEFENSE
    RangedUnitList UNIT_BUILD_LIST_RANGED
    SeaUnitList UNIT_BUILD_LIST_SEA
    AirUnitList UNIT_BUILD_LIST_AIR

    // Types of special units that should be built
    SettlerUnitList UNIT_BUILD_LIST_LAND_SETTLER
    SeaSettlerUnitList UNIT_BUILD_LIST_SEA_SETTLER
    SeaTransportUnitList UNIT_BUILD_LIST_SEA_TRANSPORT
    AirTransportUnitList UNIT_BUILD_LIST_NAVAL_SPECIAL
    SpecialUnitList UNIT_BUILD_LIST_SPECIAL_MILITARIST
    SpyUnitList UNIT_BUILD_LIST_SPECIAL_SPY
    SlaverUnitList UNIT_BUILD_LIST_SPECIAL_SLAVERY
    FreightUnitList UNIT_BUILD_LIST_FREIGHT

    Comment

    Working...
    X