Jump to content


Photo

Prereqs in v1.2


  • Please log in to reply
8 replies to this topic

#1 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:06 AM

Following the recent discussion on what prereq:GetUnfulfilledPrerequisites() returns (and just generally about prerequisites) I ran the following code. This was run at gamestart and lists all the squads for Space Marines and all their unfulfilled prerequisites. For each unfulfilled prerequisite it lists the datatype (userdata is each case, sadly, which means we can do exactly nothing with it), the name of the prerequisite, its btype number (0 = relic, total population or 'blank', 1 = unknown (probably Squad), 2 = Building, 3 = Research and 4 = Addon) and finally a TRUE/ FALSE flag showing whether or not the prerequisite itself has prerequisites which have been fulfilled.

Here is the code:-

function BuildOrderStrategy:Prereq()

    local race = cpu_manager.cpu_player:GetPlayerRace()
     
    for unit_stats in cpu_manager.stats:GetUnitStats(race) do
        local prereq = CpuPrerequisites( cpu_manager.cpu_player, unit_stats:GetSquadName(), CpuPrerequisites.BT_Squad )
        aitrace("Prerequisites for "..unit_stats:GetSquadName() )
     
        for i in prereq:GetUnfulfilledPrerequisites() do
     
        aitrace("Type of data: "..type (i) )
        aitrace("Name: "..i.name )
        aitrace("Build Type: "..i.btype )
        aitrace("Prereq Fulfilled?: "..tostring( i.prereq_fulfilled ) )
     
        end
     
    end

end

This is based on the code in Strategy:TryBuild() and it shows what the AI thinks are the unfulfilled prerequisites for each and every squad right at the start of the game.

Flenser

#2 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:06 AM

and here is the output for Space Marines:-

AI1001 0 Prerequisites for space_marine_squad_servitor


AI1001 0 Prerequisites for space_marine_squad_scout


AI1001 0 Prerequisites for space_marine_squad_tactical
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true


AI1001 0 Prerequisites for space_marine_squad_assault
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true


AI1001 0 Prerequisites for space_marine_squad_apothecary
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_librarian
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_force_commander
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true


AI1001 0 Prerequisites for space_marine_squad_terminator
AI1001 0 Type of data: userdata
AI1001 0 Name: relic_struct
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_orbital_relay
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_terminator_assault
AI1001 0 Type of data: userdata
AI1001 0 Name: relic_struct
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_orbital_relay
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_rhino
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_land_speeder
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_dreadnought
AI1001 0 Type of data: userdata
AI1001 0 Name: 
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_drop_pod_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_dreadnought_hellfire
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_ability_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_orbital_relay
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_whirlwind
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_predator
AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false


AI1001 0 Prerequisites for space_marine_squad_land_raider
AI1001 0 Type of data: userdata
AI1001 0 Name: relic_struct
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_barracks
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false

AI1001 0 Type of data: userdata
AI1001 0 Name: space_marine_vehicle_building
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

Flenser

#3 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:07 AM

Here is the output for Orks (again v1.2):-

AI1001 0 Prerequisites for ork_squad_grot
AI1001 0  
AI1001 0 Prerequisites for ork_squad_bad_dok
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_slugga
AI1001 0  
AI1001 0 Prerequisites for ork_squad_shoota_boy
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_stormboy
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_tankbusta
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_nob
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_hq_addon
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for 
AI1001 0  
AI1001 0 Prerequisites for ork_squad_mek_boy
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_warboss
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_hq_addon
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_trukk
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_mek_shop
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_pile_o_guns
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_wartrak
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_mek_shop
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_pile_o_guns
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_killa_kan
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_mek_shop
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_pile_o_guns
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_looted_tank
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_mek_shop
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_pile_o_guns
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for ork_squad_squiggoth
AI1001 0 Type of data: userdata
AI1001 0 Name: Total population
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_boy_hut
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_mek_shop
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: ork_pile_o_guns
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false

Look at Squiggoth, and then look at the requirements listed in the ork_squad_sguiggoth.lua file. It doesn't really make much sense. Why does the AI's list of unfulfilled prerequisites bear such little resemblance to the contents of the lua file? Where is the reference to the relic? See the Space Marine output above - the AI knows about relics all right. Where is the reference to the Ork HQ addon?

Go back and look at the Space Marine output. The first prerequisite for Dreadnoughts has no name!

Flenser

#4 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:08 AM

Here's the Eldar output. Note the appearance of "Build Type: 3" - research - for the first time:-

AI1001 0 Prerequisites for eldar_squad_bonesinger
AI1001 0  
AI1001 0 Prerequisites for eldar_guardian_squad
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_rangers
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_banshees
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_banshees
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_dark_reapers
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_dark_reapers
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_warp_spider
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_warp_spider
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_seer_council
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_farseer
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_grav_platform
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_webway_gate
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_grav_platform_brightlance
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_webway_gate
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_falcon_grav_tank
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_support_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_tier2_research
AI1001 0 Build Type: 3
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_vypers
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_vyper
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_support_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_tier2_research
AI1001 0 Build Type: 3
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_wraithlord
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_wraithlord
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_support_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_tier2_research
AI1001 0 Build Type: 3
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_fire_prism
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_prism
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_support_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_tier2_research
AI1001 0 Build Type: 3
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for eldar_squad_avatar
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_banshees
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_aspect_stone_dark_reapers
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_soul_shrine
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_support_portal
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: eldar_tier2_research
AI1001 0 Build Type: 3
AI1001 0 Prereq Fulfilled?: false

Flenser

#5 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:08 AM

Finally, here is the output for Chaos:-

AI1001 0 Prerequisites for chaos_squad_slave
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_cultist
AI1001 0  
AI1001 0 Prerequisites for chaos_marine_squad
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_raptor
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_possessed_marine
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_sacrificial_circle
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_horror
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_sacrificial_circle
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_sorcerer
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_sacrificial_circle
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_lord
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_obliterator
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_greater_sacrificial_circle
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_2
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_machine_pit
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_sacrificial_circle
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_rhino
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_machine_pit
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_defiler
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_machine_pit
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_predator
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_armoury
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_hq_addon_1
AI1001 0 Build Type: 4
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_machine_pit
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: chaos_temple
AI1001 0 Build Type: 2
AI1001 0 Prereq Fulfilled?: true
AI1001 0  
AI1001 0  
AI1001 0 Prerequisites for chaos_squad_bloodthirster
AI1001 0 Type of data: userdata
AI1001 0 Name: 
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false
AI1001 0  
AI1001 0 Type of data: userdata
AI1001 0 Name: relic_struct
AI1001 0 Build Type: 0
AI1001 0 Prereq Fulfilled?: false

Another blank name for the first prereq for Bloodthirsters.

Flenser

#6 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 07:09 AM

There is not anything wrong (that we know of) with the prereq system for v1.2 but (a) it is good to know what a working version looks like and (b) there may be some useful data in here for the future.

My main question is why the prereq info does not match the LUA files? Where is the AI getting this info from if not the LUA files? Is it hard-coded? I doubt it, but it would be interesting to view the output of a mod and match that with the LUA files for the mod.

Here is the output for Steel Legions mod:-

AI 0 Prerequisites for steel_legion_squad_pioneer
AI 0  
AI 0 Prerequisites for steel_legion_squad_soldier
AI 0  
AI 0 Prerequisites for 
AI 0  
AI 0 Prerequisites for steel_legion_squad_rough_rider
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_lieutenant
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_cyclops
AI 0  
AI 0 Prerequisites for steel_legion_squad_stormtrooper
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0  
AI 0 Prerequisites for 
AI 0  
AI 0 Prerequisites for steel_legion_squad_soldier_heavy_weapon
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_heavy_weapons_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_yarrick
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_salamander
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_trojan
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_chimera
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_chimera
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_sentinel
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_sentinel
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_hellhound
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_salamander
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_salamander
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_thunderer
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_chimera
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_sentinel
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_casis_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_destroyer
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_chimera
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_sentinel
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_casis_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_leman_russ
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_chimera
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_sentinel
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_casis_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_turret_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_vanquisher
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_chimera
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_barracks_sentinel
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_casis_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_leman_turret_research
AI 0 Build Type: 3
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_demolisher
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_executioner
AI 0 Type of data: userdata
AI 0 Name: relic_struct
AI 0 Build Type: 0
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0  
AI 0 Prerequisites for steel_legion_squad_tank_basilisk
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_airport_addon
AI 0 Build Type: 4
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_ammunition_bunker
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: true
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_relay_station
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false
AI 0  
AI 0 Type of data: userdata
AI 0 Name: steel_legion_tank_fabric
AI 0 Build Type: 2
AI 0 Prereq Fulfilled?: false

I think I understand. Some LUA squad files have no prereq information, but those squads can only be built from certain buildings. The AI will look at the building that produces the squad and check the unfulfilled prereqs for it. It seems it also lists the unfulfilled prereqs for those prereqs as well - or at least the buildings at any rate. This must explain why, eg, Horrors and Possessed have no prereq info in their LUA files. The AI looks to the prereq info for the sacrificial circle and uses that instead.

Still does not explain everything - eg. the Squiggoth. What is up with that? The AI does not seem aware that a relic or an hq_addon is required. No doubt there are others. Is the v1.2 prereq code less than perfect?

It would be an interesting exercise to run this again under v1.3. If anyone has v1.3 running (I do not and would prefer not to update) can they insert the code given at the start of this post into the file buildorderstrategy.ai and then, at the end of function BuildOrderStrategy:__init( info ) super( info ) make the following change:-

self:WaitOnNextPlan()
self:Prereq()

Post the output here.

Thanks,

Flenser

#7 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,164 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 22 June 2005 - 12:35 PM

Moved topic here as it contains Steel Legion code that kinda shows off the mod a little. heheh.. No biggie... Now its away from the public.
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!

#8 Flenser

Flenser

    title available

  • Members
  • 316 posts
  • Location:Glasgow, Scotland
  • Projects:Dawn of War AI Skirmish

Posted 22 June 2005 - 12:59 PM

Moved topic here as it contains Steel Legion code that kinda shows off the mod a little. heheh.. No biggie... Now its away from the public.

<{POST_SNAPBACK}>

Didn't think there was enough actual mod info there to be sensitive, but better safe than sorry I guess.

Flenser

#9 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,164 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 22 June 2005 - 02:18 PM

There was regarding unit names. ;)
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users