Page 1 of 2

Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 9:05 pm
by agentfallenangel
k so I'm adding vehicles in the LUA. I want to add the ATTE for the rebels, and I want to add it for the republic too. I already added the ATTE to the Clonewars conquest LUA file under republic, but do i have to add it to the galactic civil war conquest file under the rebels as well? Would it just borrow it like the rebels borrow the imp speeder?

Re: Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 9:08 pm
by Fierfek
agentfallenangel wrote:k so I'm adding vehicles in the LUA. I want to add the ATTE for the rebels, and I want to add it for the republic too. I already added the ATTE to the Clonewars conquest LUA file under republic, but do i have to add it to the galactic civil war conquest file under the rebels as well? Would it just borrow it like the rebels borrow the imp speeder?
No, each lua is a seperate file. You would have to load it from the rep side in the GCW lua as well.
And you need to do some sort of other thing in the lua to get command walkers in (something about set leg count or something), but I don't know what it is.

Re: Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 10:28 pm
by agentfallenangel
yeah the ATTE and the ATST arent showing up... but now at least I know somewhat why :D

Well, if its leg count, ATTE has 6 and ATST has 2 :D I r best at math

EDIT
and by the way fierfek, your introductory mod map guide is REALLY good and detailed. I had no clue how to mod until your guide came out :D thanks dude

Re: Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 10:45 pm
by Fierfek
Thanks. The next version will be coming out within the next few days.

Can you post your lua? I'll se if you have it set up right.

Re: Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 11:03 pm
by agentfallenangel
kk here it is

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

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

-- 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"}



--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: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("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("SIDE\\rep.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",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder",
"rep_walk_atte")
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"
"cis_hover_stap",
"cis_walk_spider)


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

SetupTeams{
rep = {
team = REP,
units = 40,
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 = 40,
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},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")


-- 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("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:FAM\\FAM.lvl", "FAM_conquest")
ReadDataFile("dc:FAM\\FAM.lvl", "FAM_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.908386, -0.209095, -0.352873, -0.081226, -45.922508, -19.114113, 77.022636);

AddCameraShot(-0.481173, 0.024248, -0.875181, -0.044103, 14.767292, -30.602322, -144.506851);
AddCameraShot(0.999914, -0.012495, -0.004416, -0.000055, 1.143253, -33.602314, -76.884430);
AddCameraShot(0.839161, 0.012048, -0.543698, 0.007806, 19.152437, -49.802273, 24.337317);
AddCameraShot(0.467324, 0.006709, -0.883972, 0.012691, 11.825212, -49.802273, -7.000720);
AddCameraShot(0.861797, 0.001786, -0.507253, 0.001051, -11.986043, -59.702248, 23.263165);
AddCameraShot(0.628546, -0.042609, -0.774831, -0.052525, 20.429928, -48.302277, 9.771714);
AddCameraShot(0.765213, -0.051873, 0.640215, 0.043400, 57.692474, -48.302277, 16.540724);
AddCameraShot(0.264032, -0.015285, -0.962782, -0.055734, -16.681797, -42.902290, 129.553268);
AddCameraShot(-0.382320, 0.022132, -0.922222, -0.053386, 20.670977, -42.902290, 135.513001);
end
========================================================================

FAMg_con
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"}



--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: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("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",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")

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_bobafett",
"imp_fly_destroyer_dome"
"imp_hover_speederbike")

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

SetupTeams{
all = {
team = ALL,
units = 40,
reinforcements = 150,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},

},
imp = {
team = IMP,
units = 40,
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},
},
}

SetHeroClass(ALL, "all_hero_hansolo_tat")
SetHeroClass(IMP, "imp_hero_bobafett")

-- 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:FAM\\FAM.lvl", "FAM_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.974338, -0.222180, 0.035172, 0.008020, -82.664650, 23.668301, 43.955681);
AddCameraShot(0.390197, -0.089729, -0.893040, -0.205362, 23.563562, 12.914885, -101.465561);
AddCameraShot(0.169759, 0.002225, -0.985398, 0.012916, 126.972809, 4.039628, -22.020613);
AddCameraShot(0.677453, -0.041535, 0.733016, 0.044942, 97.517807, 4.039628, 36.853477);
AddCameraShot(0.866029, -0.156506, 0.467299, 0.084449, 7.685640, 7.130688, -10.895234);
end

I haven't had time to add the ATTE to the rebel section in the GCW LUA yet tho

Re: Vehicle LUA Stuffz

Posted: Tue Jul 28, 2009 11:15 pm
by Fierfek
Okay, so find tis part in your lua (near the bottom):
Hidden/Spoiler:
-- 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("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)
Change it to look like this (changes in red):
Hidden/Spoiler:
-- 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("CommandWalker", 5)
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)
And make sure you are creating the vehicle spawn correctly in zeroeditor.

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 7:26 am
by agentfallenangel
yeah I double checked it and it seems fine. the one thing i was slightly confused about is the control zone and capture zone.

The way I layed it out was the Control zone and capture zone were slightly apart from each other and the vehicle spawns weren't in either of the two. Is this right? What is the point of a control zone?

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 7:31 am
by Par3210
to make vehicle spawns work?

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 7:42 am
by Frisbeetarian
Par3210 wrote:to make vehicle spawns work?
If you don't know, don't post. That's wrong anyways.

The point of control regions are to set certain vehicles for certain teams based on who controls a CP and/or work with decay rates once a vehicle leaves this region. If you're using a control region, you aught to put the vehicle spawn inside of it.

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 12:08 pm
by Fierfek
Ahh, yeah, I got that part completely wrong in my guide. Sorry!
But, does it work now?

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 1:52 pm
by MercuryNoodles
I don't see how it'll work without changing this line for both luas:

Code: Select all

AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
Battlefront II Mission LUA Guide wrote:These next lines will add walkers to your level. The first number inside the parenthesis specifies how many leg pairs the walker type has. Droidekas are set up as a special case, with 0 leg pairs. So as you can see below, we have AddWalkerType(0,4) this specifies that we will have 4 walkers with 0 leg pairs (droidekas). 1 leg pair would specify a walker with one pair of legs, an ATST for example, or a one-man ATST from the clone wars era. So for 2 ATSTs, we would have a line that says; AddWalkerType(1, 2)
2 leg pairs would be a unit like the CIS spider walker, or an ATAT, and 3 leg pairs would be the 6-legged walker from the clone wars era.

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 6:15 pm
by agentfallenangel
ok I'm really confused now.

I want to review some things:

Control regions should be placed NEAR Command post capture regions, but not in them.
Vehicle Spawns should be INSIDE the control region

Right?
As for that line of code, where do I put it in?

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 6:22 pm
by AQT
Just add the line in your .lua somewhere under

Code: Select all

    --  Level Stats

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 7:11 pm
by agentfallenangel
that code was already in it

maybe it was the vehicle spawn that I did wrong. I used for the rep att and def slots

rep_walk_atte

is that right?

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 7:48 pm
by Fierfek
agentfallenangel wrote:that code was already in it

maybe it was the vehicle spawn that I did wrong. I used for the rep att and def slots

rep_walk_atte

is that right?
That sounds right.......

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 9:59 pm
by agentfallenangel
then why won't the ATTE show up?

when the visualmunge completes, there are two errors. here is the munge log
Hidden/Spoiler:
C:\BF2_ModTools\data_FAM\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\FAM\FAMg_con.lua:95: `)' expected (to close `(' at line 86) near `"imp_hover_speederbike"'
ERROR[scriptmunge scripts\FAM\FAMg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\FAM\FAMg_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings

ERROR[levelpack mission\FAMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\famc_con.script.req(1)...

ucft <--
ERROR[levelpack mission\FAMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\famc_con.script.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack shell.req]:Input file shell.req does not exist. [continuing]
1 Errors 0 Warnings

soundflmunge.exe : Error : Unable to open file ..\gcw\streams\PlayerCommands_vo\AI1COM474.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\gcw\streams\PlayerCommands_vo\AI1COM474.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\AOCOM0069.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\AOCOM0069.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\all_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\PlayerCommands_vo\CI1COM527.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\PlayerCommands_vo\CI1COM527.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\COCOM0076.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\COCOM0076.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\cis_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\cor\streams\Objective_VO\ROCOR0006.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\cor_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\cor\streams\Objective_VO\ROCOR0006.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\cor_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\cor_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\cor_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\mxCISCor01_Act01_lp.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\cw_music.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\mxCISCor01_Act01_lp.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\cw_music.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\cw_music.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\cw_music.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\dea\streams\Objective_VO\IODEA0010.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\dea_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\dea\streams\Objective_VO\IODEA0010.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\dea_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\dea_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\dea_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\desert_battlechatter_vo\jawa_01.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\des_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\desert_battlechatter_vo\jawa_01.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\des_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\des_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\des_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\fel\streams\Objective_VO\ROFEL0005.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\fel_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\fel\streams\Objective_VO\ROFEL0005.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\fel_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\fel_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\fel_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\gamorian_guard_battlechatter_vo\gamoreanGuard_01.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\gam_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\gamorian_guard_battlechatter_vo\gamoreanGuard_01.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\gam_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\gam_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\gam_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\gcw\streams\mxAllDag01_Amb01_lp.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\gcw_music.stm
soundflmunge.exe : Error : Unable to open file ..\gcw\streams\mxAllDag01_Amb01_lp.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\gcw_music.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\gcw_music.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\gcw_music.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\geo\streams\Objective_VO\ROGEO0011.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\geo_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\geo\streams\Objective_VO\ROGEO0011.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\geo_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\geo_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\geo_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\ui_objComplete_1.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_quick.stm
soundflmunge.exe : Error : Unable to open file streams\ui_objComplete_1.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\global_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\global\effects\crtr_wookiee_chatter_01.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\global\effects\crtr_wookiee_chatter_01.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\global_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\global_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\gungan_battlechatter_vo\GI1COM007.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\gun_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\gungan_battlechatter_vo\GI1COM007.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\gun_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\gun_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\gun_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\hot\streams\Objective_VO\CVHOT0004.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\hot_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\hot\streams\Objective_VO\CVHOT0004.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\hot_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\hot_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\hot_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\gcw\streams\PlayerCommands_vo\II1COM751.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\gcw\streams\PlayerCommands_vo\II1COM751.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\IOCOM0078.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\IOCOM0078.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\imp_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\kam\streams\Objective_VO\IOKAM0002.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\kam_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\kam\streams\Objective_VO\IOKAM0002.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\kam_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\kam_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\kam_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\kas\streams\Objective_VO\ROKAS0001.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\KAS_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\kas\streams\Objective_VO\ROKAS0001.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\KAS_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\KAS_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\KAS_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\mus\streams\Objective_VO\IOMUS0001.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\mus_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\mus\streams\Objective_VO\IOMUS0001.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\mus_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\mus_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\mus_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\myg\streams\Objective_VO\ROMYG0001.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\myg_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\myg\streams\Objective_VO\ROMYG0001.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\myg_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\myg_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\myg_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\nab\streams\Objective_VO\IONAB0013.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\nab_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\nab\streams\Objective_VO\IONAB0013.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\nab_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\nab_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\nab_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\pol\streams\Objective_VO\IOPOL0001.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\pol_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\pol\streams\Objective_VO\IOPOL0001.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\pol_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\pol_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\pol_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\PlayerCommands_vo\RI1COM628.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\cw\streams\PlayerCommands_vo\RI1COM628.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\ROCOM0066.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\GAL\streams\metagame_vo\ROCOM0066.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\rep_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\spa\streams\Objective_VO\IOSB50028.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\spa1_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\spa\streams\Objective_VO\IOSB50028.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\spa1_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\spa1_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\spa1_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\tan\streams\Objective_VO\IOTAN0001.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\tan_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\tan\streams\Objective_VO\IOTAN0001.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\tan_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\tan_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\tan_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\uta\streams\Objective_VO\ROUTA0020.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\uta_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\uta\streams\Objective_VO\ROUTA0020.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\uta_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\uta_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\uta_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\wookiee_battlechatter_vo\crtr_wookiee_babyCry_01.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\wookiee_battlechatter_vo\crtr_wookiee_babyCry_01.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\wok_unit_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_unit_vo_slow.stm
soundflmunge.exe : Error : Unable to open file streams\wookiee_battlechatter_vo\crtr_wookiee_die_07.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_vo_quick.stm
soundflmunge.exe : Error : Unable to open file streams\wookiee_battlechatter_vo\crtr_wookiee_die_07.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_vo_quick.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\wok_vo_quick.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\wok_vo_quick.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\yav\streams\Objective_VO\IOYAV0008.wav - while munging C:\BF2_ModTools\data_FAM\Sound\global\yav_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file ..\worlds\yav\streams\Objective_VO\IOYAV0008.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\global\yav_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\global\yav_objective_vo_slow.stm - while munging C:\BF2_ModTools\data_FAM\Sound\global\yav_objective_vo_slow.stm
soundflmunge.exe : Error : Unable to open file effects\whooshl3.wav - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file effects\whooshl3.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file streams\shell_closing.wav - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_music.stm
soundflmunge.exe : Error : Unable to open file streams\shell_closing.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_music.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\shell\shell_music.stm - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_music.stm
soundflmunge.exe : Error : Unable to open file ..\global\effects\crtr_wookiee_chatter_01.wav - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_vo.stm
soundflmunge.exe : Error : Unable to open file ..\global\effects\crtr_wookiee_chatter_01.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_vo.stm
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\shell\shell_vo.stm - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_vo.stm
soundflmunge.exe : Error : Unable to open file streams\ui_amb_cis_CtrlShip_lp_fnt.wav - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_ui.st4
soundflmunge.exe : Error : Unable to open file streams\ui_amb_cis_CtrlShip_lp_fnt.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_ui.st4
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\shell\shell_ui.st4 - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell_ui.st4
soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_FAM\Sound\shell\effects\whooshl3.wav - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_FAM\Sound\shell\effects\whooshl3.wav, format may be invalid - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx - while munging C:\BF2_ModTools\data_FAM\Sound\shell\shell.sfx

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 10:02 pm
by AQT
agentfallenangel wrote:that code was already in it
Do you mind posting what it looks like exactly?

EDIT: Nevermind, just change the zero you see into a one.

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 10:05 pm
by agentfallenangel
OHH lol ok

nope, still doesn't work. Ill post the whole LUA file here

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

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

-- 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"}



--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: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("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("SIDE\\rep.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",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder",
"rep_walk_atte")
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"
"cis_hover_stap",
"cis_walk_spider)


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

SetupTeams{
rep = {
team = REP,
units = 40,
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 = 40,
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},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")


-- 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, 1) -- 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("CommandWalker", 5)
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:FAM\\FAM.lvl", "FAM_conquest")
ReadDataFile("dc:FAM\\FAM.lvl", "FAM_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.908386, -0.209095, -0.352873, -0.081226, -45.922508, -19.114113, 77.022636);

AddCameraShot(-0.481173, 0.024248, -0.875181, -0.044103, 14.767292, -30.602322, -144.506851);
AddCameraShot(0.999914, -0.012495, -0.004416, -0.000055, 1.143253, -33.602314, -76.884430);
AddCameraShot(0.839161, 0.012048, -0.543698, 0.007806, 19.152437, -49.802273, 24.337317);
AddCameraShot(0.467324, 0.006709, -0.883972, 0.012691, 11.825212, -49.802273, -7.000720);
AddCameraShot(0.861797, 0.001786, -0.507253, 0.001051, -11.986043, -59.702248, 23.263165);
AddCameraShot(0.628546, -0.042609, -0.774831, -0.052525, 20.429928, -48.302277, 9.771714);
AddCameraShot(0.765213, -0.051873, 0.640215, 0.043400, 57.692474, -48.302277, 16.540724);
AddCameraShot(0.264032, -0.015285, -0.962782, -0.055734, -16.681797, -42.902290, 129.553268);
AddCameraShot(-0.382320, 0.022132, -0.922222, -0.053386, 20.670977, -42.902290, 135.513001);
end

FAMg_con
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"}



--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: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("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",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat",
"rep_walk_atte")

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_bobafett",
"imp_fly_destroyer_dome"
"imp_hover_speederbike",
"imp_hover_speederbike")

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

SetupTeams{
all = {
team = ALL,
units = 40,
reinforcements = 150,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},

},
imp = {
team = IMP,
units = 40,
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},
},
}

SetHeroClass(ALL, "all_hero_hansolo_tat")
SetHeroClass(IMP, "imp_hero_bobafett")

-- 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, 1) -- 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("CommandWalker", 5)
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:FAM\\FAM.lvl", "FAM_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.974338, -0.222180, 0.035172, 0.008020, -82.664650, 23.668301, 43.955681);
AddCameraShot(0.390197, -0.089729, -0.893040, -0.205362, 23.563562, 12.914885, -101.465561);
AddCameraShot(0.169759, 0.002225, -0.985398, 0.012916, 126.972809, 4.039628, -22.020613);
AddCameraShot(0.677453, -0.041535, 0.733016, 0.044942, 97.517807, 4.039628, 36.853477);
AddCameraShot(0.866029, -0.156506, 0.467299, 0.084449, 7.685640, 7.130688, -10.895234);
end

Re: Vehicle LUA Stuffz

Posted: Wed Jul 29, 2009 10:22 pm
by AQT
Remember to only check Common when you munge since you're only making changes to the scripts. Anyway, I don't see anything wrong with the CW script but there are two mistakes with the GCW one. Change this section
Hidden/Spoiler:
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat",
"rep_walk_atte")
to
Hidden/Spoiler:
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")

ReadDataFile("SIDE\\rep.lvl",
"rep_walk_atte")
since the AT-TE can't be found in the all.lvl and as you can see here
Hidden/Spoiler:
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_bobafett",
"imp_fly_destroyer_dome"
"imp_hover_speederbike",
"imp_hover_speederbike")
the speeder bike occurs twice so just delete the top one.

Re: Vehicle LUA Stuffz

Posted: Thu Jul 30, 2009 7:03 am
by agentfallenangel
ATTE stilll does not appear :(

After I munged, I still got a mungelog with two errors
Hidden/Spoiler:
C:\BF2_ModTools\data_FAM\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\FAM\FAMg_con.lua:97: `)' expected (to close `(' at line 88) near `"imp_hover_speederbike"'
ERROR[scriptmunge scripts\FAM\FAMg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\FAM\FAMg_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings

ERROR[levelpack mission\FAMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\famc_con.script.req(1)...

ucft <--
ERROR[levelpack mission\FAMc_con.req]:Expecting bracket, but none was found.
File : munged\pc\famc_con.script.req(1)...

ucft <--

2 Errors 0 Warnings
Also, the imperial ATST doesn't appear. Is this the right name?: imp_walk_atst_jungle