Page 1 of 1

AI Hero Support Script = CTD [Solved]

Posted: Mon Apr 12, 2010 5:00 pm
by StarkillerMarek
I added the AI Hero Support Scrip to a map. I had done before, so I didn't experience any troubles. I attempted to play it ingame, first in the Clone Wars era. It started the match(meaning it got out of the loadscreen), then a few seconds later it crashed to the desktop. The GCW era did not CTD, but AIHeroSupport script didn't work. I looked around for a problem, but saw nothing.


Here is by BF log :
Hidden/Spoiler:
Opened logfile BFront2.log 2010-04-12 1659
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy english 0
ifs_era_handler - Entered
ifs_era_handler - Exited
shell_interface: No custom_gc_0.lvl
shell_interface: No custom_gc_1.lvl
shell_interface: No custom_gc_2.lvl
shell_interface: No custom_gc_3.lvl
shell_interface: No custom_gc_4.lvl
shell_interface: No custom_gc_5.lvl
shell_interface: No custom_gc_6.lvl
shell_interface: No custom_gc_7.lvl
shell_interface: No custom_gc_8.lvl
shell_interface: No custom_gc_9.lvl
shell_interface: No custom_gc_10.lvl
custom_EraButtonList(): Finished building era button table Known eras buttons: 28
custom_GetGMapEras(): Finished building era table Known eras: 28
custom_GetGMapModes(): Finished building game mode table Known Modes: 39
custom_GetMPGameModeList(): Finished building game mode list table List Length: 40
custom_SetMovieLocation()
custom_GetGCButtonList()
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
Mission Checker: Entered addme
Mission Checker: addme: Now listening in on AddDownloadableContent() calls
Mission Checker: Exited addme
Found side\rvs.lvl. Adding ADS's extra missions
Found side\rvs.lvl. Adding BGL's extra KotOR missions
Found ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Adding BGL's extra Dark Times missions
Found ..\..\addon\ADS\data\_LVL_PC\ADS\ADS.lvl. Adding ADS's extra Dark Times missions
Found side\rvs.lvl. Adding BRO's extra KotOR missions
Found ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Adding BRO's extra Dark Times missions
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
ifs_legal.Exit

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main

ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile
ifs_sp_campaign: Input_Accept(): Entered: _tab_instant
missionlist_ExpandMapList()
ifs_missionselect_pcMulti_fnSetMapPreview(): Defaulting index to 1
this.CurButton = check_mode1
cur_button = nil
Checkbox for check_era3 clicked
this.CurButton = check_era3
cur_button = nil
custom_AddMapNew()
custom_printTable(): table: 04094CA0
The key, value is: era_c 1
The key, value is: era_g 1
The key, value is: mode_con_c 1
The key is mapluafile, the formated value is: MI1<A>_<B>
The key, value is: mode_con_g 1
The key, value is: bSelected 1
The key, value is: isModLevel 1
custom_printTable(): Returning
custom_printTable(): table: 03CC672C
The key, value is: key mode_con
The key, value is: subst con
The key, value is: showstr modename.name.con
The key, value is: descstr modename.description.con
The key, value is: icon mode_icon_con
custom_printTable(): Returning
gMapEras.key = era_c Era = era_c subst = c
Adding map: MI1c_con idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture btn_directional_pad_LR
game_interface: Entered
utility_functions2: Listening on AddUnitClass() calls
utility_functions2: Listening on SetHeroClass() calls
utility_functions2: Listening on ReadDataFile() calls
game_interface: Reading in custom strings
game_interface: No user_script_0.lvl
game_interface: No user_script_1.lvl
game_interface: No user_script_2.lvl
game_interface: No user_script_3.lvl
game_interface: No user_script_4.lvl
game_interface: No user_script_5.lvl
game_interface: No user_script_6.lvl
game_interface: No user_script_7.lvl
game_interface: No user_script_8.lvl
game_interface: No user_script_9.lvl
game_interface: No user_script_10.lvl
ifs_sideselect_fnBuildScreen()
game_interface: Exited

Message Severity: 2
.\Memory\RedMemoryPool.cpp(317)
Memory pool "ClothData" set item count after being allocated

Message Severity: 2
.\Source\GameModel.cpp(221)
Model "bubble_collision" already loaded in ather level file

Message Severity: 2
.\Source\CollisionBody.cpp(250)
Duplicate collisionbodyprimitive exists in another level file: ab2207c8

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_hostile_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_bacta_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_mechanic_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_ammo_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_transport_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_backup_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_clear_area_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_defend_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\EntityGeometry.cpp(1065)
Entity "com_weap_inf_remotedroid_ord" unknown building collision "p_buildingsphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1073)
Entity "com_weap_inf_remotedroid_ord" unknown vehicle collision "p_buildingsphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1089)
Entity "com_weap_inf_remotedroid_ord" unknown ordnance collision "p_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1081)
Entity "com_weap_inf_remotedroid_ord" unknown soldier collision "p_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1058)
Entity "com_weap_veh_guided_rocket_ord" unknown terrain collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1073)
Entity "com_weap_veh_guided_rocket_ord" unknown vehicle collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1065)
Entity "com_weap_veh_guided_rocket_ord" unknown building collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1051)
Entity "com_weap_veh_guided_rocket_ord" unknown targetable collision "CollisionMesh"

Message Severity: 2
.\Source\EntityGeometry.cpp(1058)
Entity "com_weap_award_rocket_launcher_" unknown terrain collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1073)
Entity "com_weap_award_rocket_launcher_" unknown vehicle collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1065)
Entity "com_weap_award_rocket_launcher_" unknown building collision "p_front_sphere"

Message Severity: 2
.\Source\EntityGeometry.cpp(1051)
Entity "com_weap_award_rocket_launcher_" unknown targetable collision "CollisionMesh"

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (d6c288e8)!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (6616778a)!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (ef255e37)!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (c3a9860f)!

Message Severity: 2
.\Source\Combo.cpp(2290)
Combo[0fa87c00]::State[JUMPATTACK_END]::Animation: failed to add 'jumpattack_end' [b8430a5b]

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_hostile_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_bacta_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_mechanic_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_ammo_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_transport_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_backup_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_clear_area_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_defend_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (5f518933)!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (5f518933)!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (5f518933)!

Message Severity: 2
.\Graphics\Pc\pcRedStencilShadow.cpp(892)
No shadow data!

Message Severity: 2
.\Source\FLEffect.cpp(214)
FLEffect::Read: duplicate effect class name (5f518933)!

Message Severity: 2
.\Source\EntitySoldier.cpp(10471)
Soldier cis_inf_caped_magnaguard has geometry collision
uf_updateClassIndex(): Added class: rep_inf_ep3_rifleman
uf_updateClassIndex(): Added class: rep_inf_ep3_rocketeer
uf_updateClassIndex(): Added class: rep_inf_ep3_sniper
uf_updateClassIndex(): Added class: rep_inf_ep3_engineer
uf_updateClassIndex(): Added class: rep_inf_ep3_officer
uf_updateClassIndex(): Added class: rep_inf_ep3_jettrooper
uf_updateClassIndex(): Added class: cis_inf_rifleman
uf_updateClassIndex(): Added class: cis_inf_rocketeer
uf_updateClassIndex(): Added class: cis_inf_sniper
uf_updateClassIndex(): Added class: cis_inf_engineer
uf_updateClassIndex(): Added class: cis_inf_officer
uf_updateClassIndex(): Added class: cis_inf_droideka
utility_functions2: ReadDataFile(): This map's code, mode: mi1 mi1_conquest

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 2
.\Source\SkyManager.cpp(122)
Skyfile FarSceneRange is in old format

Message Severity: 2
.\Source\FLEffect.cpp(463)
Attach: model '' [31a68a09] has no hardpoint 'hp_light_6' [b65abda4]

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=5b593855: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_11"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=24ec5c5c: trying to replace "dag1_prop_rockgroup_2" with "dag1_prop_rockgroup_20"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=5959352f: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_13"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=57593209: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_15"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=26ec5f82: trying to replace "dag1_prop_rockgroup_2" with "dag1_prop_rockgroup_22"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=27ec6115: trying to replace "dag1_prop_rockgroup_2" with "dag1_prop_rockgroup_23"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=25ec5def: trying to replace "dag1_prop_rockgroup_2" with "dag1_prop_rockgroup_21"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=5859339c: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_12"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=56593076: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_14"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=5a5936c2: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_10"

Message Severity: 2
.\Source\StringDB.cpp(48)
ID=54592d50: trying to replace "dag1_prop_treegroup_1" with "dag1_prop_treegroup_16"

Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "ParticleTransformer::SizeTransf" is full; raise count to at least 1027

Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "ParticleTransformer::SizeTransf" is full; raise count to at least 1030

Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "ParticleTransformer::SizeTransf" is full; raise count to at least 1033

Message Severity: 3
.\Platform\Pc\pcFirstPerson.cpp(69)
FirstPerson::LoadLVLFile: Could not open FPM\rep41st\rep41st.lvl
uf_updateClassIndex(): Added class: rep_hero_fisto
uf_updateClassIndex(): Added class: cis_hero_darthmaul
ifs_sideselect_fnEnter(): Map does not support custom era teams
ifs_sideselect_fnEnter(): The award settings file does not exist

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub28]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.70] in node [Hub35]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.24] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub28]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub28]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.24] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.46] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.24] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.24] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.49] in node [Hub27]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub28]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub28]

Re: AI Hero Support Script = CTD

Posted: Mon Apr 12, 2010 5:09 pm
by skelltor
did u notice these?
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )

Message Severity: 3
C:\Battlefront2\main\PebbleFL\Common\PblConfig.cpp(9)
PblConfig: invalid config; 'SCOP' chunk expected
chunk.GetId() == _ID( 'S', 'C', 'O', 'P' )
idk what they meen but did u notice them?

Re: AI Hero Support Script = CTD

Posted: Mon Apr 12, 2010 5:35 pm
by StarkillerMarek
Yes I did, but I don't know what they mean either.

Re: AI Hero Support Script = CTD

Posted: Tue Apr 13, 2010 6:46 am
by lucasfart
Could you post your relevant lua's please? Also, did you add aiherosupport to your mission.req file?

Re: AI Hero Support Script = CTD

Posted: Tue Apr 13, 2010 9:15 am
by StarkillerMarek
I did add te AIHeroSupport script passage in my mission.req, and I saw it munge.


Here is the luas.

GCW:
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveConquest")

-- Empire Attacking (attacker is always #1)
local ALL = 2
local IMP = 1
-- These variables do not change
local ATT = 1
local DEF = 2

function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}


--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)

conquest:Start()


herosupport = AIHeroSupport:New{AIATTHeroHealth = 5000, AIDEFHeroHealth = 3000, gameMode = "conquest",}
herosupport:SetHeroClass(IMP, "imp_hero_darthvader")
herosupport:SetHeroClass(ALL, "all_hero_luke_pilot")
herosupport:AddSpawnCP("CP1","CP1_SPAWN")
herosupport:AddSpawnCP("CP2","CP2_SPAWN")
herosupport:AddSpawnCP("CP3","CP3_SPAWN")
herosupport:AddSpawnCP("CP4","CP4_SPAWN")
herosupport:AddSpawnCP("CP5","CP5_SPAWN")

herosupport:Start()

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------

function ScriptInit()

ReadDataFile("dc:Load\\common.lvl")


ReadDataFile("ingame.lvl")



SetMaxFlyHeight(40)
SetMaxPlayerFlyHeight(40)


SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo


ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman_jungle",
"all_inf_rocketeer_jungle",
"all_inf_sniper_jungle",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_luke_pilot")

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_darthvader",
"imp_fly_destroyer_dome" )

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_laser")


SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "all_inf_rifleman_jungle",9, 25},
assault = { "all_inf_rocketeer_jungle",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper_jungle",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},

},
imp = {
team = IMP,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",9, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
},
}


-- Level Stats
ClearWalkers()
AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)

local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:MI1\\MI1.lvl", "MI1_conquest")
SetDenseEnvironment("false")


-- Sound Stats

voiceSlow = OpenAudioStream("sound\\global.lvl", "all_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "imp_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "des_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "all_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "imp_unit_vo_quick", voiceQuick)

OpenAudioStream("sound\\global.lvl", "gcw_music")
OpenAudioStream("sound\\tat.lvl", "tat2")
OpenAudioStream("sound\\tat.lvl", "tat2")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")

SetBleedingVoiceOver(ALL, ALL, "all_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(ALL, IMP, "all_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(IMP, ALL, "imp_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(IMP, IMP, "imp_off_com_report_us_overwhelmed", 1)

SetLowReinforcementsVoiceOver(ALL, ALL, "all_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(ALL, IMP, "all_off_victory_im", .1, 1)
SetLowReinforcementsVoiceOver(IMP, IMP, "imp_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(IMP, ALL, "imp_off_victory_im", .1, 1)

SetOutOfBoundsVoiceOver(2, "Allleaving")
SetOutOfBoundsVoiceOver(1, "Impleaving")

SetAmbientMusic(ALL, 1.0, "all_tat_amb_start", 0,1)
SetAmbientMusic(ALL, 0.8, "all_tat_amb_middle", 1,1)
SetAmbientMusic(ALL, 0.2, "all_tat_amb_end", 2,1)
SetAmbientMusic(IMP, 1.0, "imp_tat_amb_start", 0,1)
SetAmbientMusic(IMP, 0.8, "imp_tat_amb_middle", 1,1)
SetAmbientMusic(IMP, 0.2, "imp_tat_amb_end", 2,1)

SetVictoryMusic(ALL, "all_tat_amb_victory")
SetDefeatMusic (ALL, "all_tat_amb_defeat")
SetVictoryMusic(IMP, "imp_tat_amb_victory")
SetDefeatMusic (IMP, "imp_tat_amb_defeat")

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")

-- Camera Stats
--Tat2 Mos Eisley
AddCameraShot(0.173623, -0.037013, -0.962489, -0.205184, -231.336563, 3.800790, 137.311600);

end
CW:
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("AIHeroSupport")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}


--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)

conquest:Start()

herosupport = AIHeroSupport:New{AIATTHeroHealth = 5000, AIDEFHeroHealth = 3000, gameMode = "conquest",}
herosupport:SetHeroClass(REP, "rep_hero_fisto")
herosupport:SetHeroClass(CIS, "cis_hero_darthmaul")
herosupport:AddSpawnCP("CP1","CP1_SPAWN")
herosupport:AddSpawnCP("CP2","CP2_SPAWN")
herosupport:AddSpawnCP("CP3","CP3_SPAWN")
herosupport:AddSpawnCP("CP4","CP4_SPAWN")
herosupport:AddSpawnCP("CP5","CP5_SPAWN")

herosupport:Start()

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------

function ScriptInit()

ReadDataFile("dc:Load\\common.lvl")


ReadDataFile("ingame.lvl")


SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\kit.lvl","rep_hero_fisto")
ReadDataFile("dc:SIDE\\rep41st.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")



SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}



-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("SoldierAnimation", 500)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:MI1\\MI1.lvl", "MI1_conquest")
ReadDataFile("dc:MI1\\MI1.lvl", "MI1_conquest")
SetDenseEnvironment("false")




-- Sound

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")

voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)

OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1_emt")

SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)

SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")

SetAmbientMusic(REP, 1.0, "rep_yav_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_yav_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_yav_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_yav_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_yav_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_yav_amb_end", 2,1)

SetVictoryMusic(REP, "rep_yav_amb_victory")
SetDefeatMusic (REP, "rep_yav_amb_defeat")
SetVictoryMusic(CIS, "cis_yav_amb_victory")
SetDefeatMusic (CIS, "cis_yav_amb_defeat")

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")


--OpeningSateliteShot
AddCameraShot(0.173623, -0.037013, -0.962489, -0.205184, -231.336563, 3.800790, 137.311600);


end
FIXED! I was missing a line in the GCW,,, and old Kit was taking up too much combo stuff.