Please help the retard
Posted: Sat Dec 29, 2007 12:16 am
I feel totaly reatarded i for the sake of me cannot add vehicles. i would really value some step by step help
here is my mission lua. please tell me what im doing wrong i have a ton of troops on the field at a time but i keep getting htsi Fing message that says "cannot create entity hover" thsi happens for all the vehicles and non of them spawn im almost shure that i did everything right please help me im a total noob
---------------------------------------------------------------------------
-- 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()
-- Rep Attacking (attacker is always #1)
local REP = 1
local CIS = 2
-- These variables do not change
local ATT = 1
local DEF = 2
AddMissionObjective(CIS, "red", "level.gfs1.objectives.1");
AddMissionObjective(CIS, "orange", "level.gfs1.objectives.2");
AddMissionObjective(CIS, "orange", "level.gfs1.objectives.3");
AddMissionObjective(REP, "red", "level.gfs1.objectives.1");
AddMissionObjective(REP, "orange", "level.gfs1.objectives.2");
AddMissionObjective(REP, "orange", "level.gfs1.objectives.3");
ReadDataFile("sound\\tat.lvl;tat1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_gunship",
"rep_fly_jedifighter",
"rep_fly_vtrans",
"rep_hover_fightertank",
"rep_hover_speederbike",
"rep_walk_atte",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper");
ReadDataFile("SIDE\\cis.lvl",
"cis_fly_geofighter",
"cis_fly_maf",
"cis_hover_aat",
"cis_hover_mtt",
"cis_hover_stap",
"cis_walk_spider",
"cis_tread_hailfire",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka");
--ReadDataFile("dc:SIDE\\gam.lvl",
-- "gam_inf_gamorreanguard")
SetAttackingTeam(ATT);
-- Republic Stats
SetTeamName(REP, "Republic")
SetTeamIcon(REP, "rep_icon")
AddUnitClass(REP, "rep_inf_clone_trooper",150)
AddUnitClass(REP, "rep_inf_arc_trooper",100)
AddUnitClass(REP, "rep_inf_clone_pilot",100)
AddUnitClass(REP, "rep_inf_clone_sharpshooter",100)
AddUnitClass(REP, "rep_inf_jet_trooper",100)
SetHeroClass(REP, "rep_inf_macewindu")
-- CIS Stats
SetTeamName(CIS, "CIS")
SetTeamIcon(CIS, "cis_icon")
AddUnitClass(CIS, "cis_inf_battledroid",150)
AddUnitClass(CIS, "cis_inf_assault",100)
AddUnitClass(CIS, "cis_inf_pilotdroid",100)
AddUnitClass(CIS, "cis_inf_assassindroid",100)
AddUnitClass(CIS, "cis_inf_droideka",100)
SetHeroClass(CIS, "cis_inf_countdooku")
-- Attacker Stats
SetUnitCount(ATT, 250)
SetReinforcementCount(ATT, 3000)
-- AddBleedThreshold(ATT, 31, 0.0)
-- AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 0.75)
AddBleedThreshold(ATT, 10, 1.5)
AddBleedThreshold(ATT, 1, 3.0)
-- Defender Stats
SetUnitCount(DEF, 250)
SetReinforcementCount(DEF, 3000)
-- AddBleedThreshold(DEF, 31, 0.0)
-- AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 0.75)
AddBleedThreshold(DEF, 10, 1.5)
AddBleedThreshold(DEF, 1, 3.0)
-- Local Stats
-- SetTeamName(3, "locals")
-- AddUnitClass(3, "gam_inf_gamorreanguard",3)
-- SetUnitCount(3, 3)
-- SetTeamAsEnemy(3, ATT)
-- SetTeamAsEnemy(3, DEF)
-- Level Stats
ClearWalkers()
AddWalkerType(0, 20) -- Droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 3) -- 3x2 (3 pairs of legs)
-- SetMemoryPoolSize("CommandHover", 10)
-- SetMemoryPoolSize("CommandWalker", 3)
-- SetMemoryPoolSize("EntityHover", 30)
-- SetMemoryPoolSize("EntityFlyer", 30)
-- SetMemoryPoolSize("EntityBuildingArmedDynamic", 16)
-- SetMemoryPoolSize("EntityTauntaun", 0)
-- SetMemoryPoolSize("MountedTurret", 22)
-- SetMemoryPoolSize("SoundSpaceRegion", 81)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize("Aimer", 200)
SetMemoryPoolSize("Obstacle", 725)
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:gfs1\\gfs1.lvl")
SetDenseEnvironment("true")
--AddDeathRegion("Sarlac01")
--SetMaxFlyHeight(90)
--SetMaxPlayerFlyHeight(90)
thats my lua for vehicles and hte like word for word please help

here is my mission lua. please tell me what im doing wrong i have a ton of troops on the field at a time but i keep getting htsi Fing message that says "cannot create entity hover" thsi happens for all the vehicles and non of them spawn im almost shure that i did everything right please help me im a total noob
---------------------------------------------------------------------------
-- 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()
-- Rep Attacking (attacker is always #1)
local REP = 1
local CIS = 2
-- These variables do not change
local ATT = 1
local DEF = 2
AddMissionObjective(CIS, "red", "level.gfs1.objectives.1");
AddMissionObjective(CIS, "orange", "level.gfs1.objectives.2");
AddMissionObjective(CIS, "orange", "level.gfs1.objectives.3");
AddMissionObjective(REP, "red", "level.gfs1.objectives.1");
AddMissionObjective(REP, "orange", "level.gfs1.objectives.2");
AddMissionObjective(REP, "orange", "level.gfs1.objectives.3");
ReadDataFile("sound\\tat.lvl;tat1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_gunship",
"rep_fly_jedifighter",
"rep_fly_vtrans",
"rep_hover_fightertank",
"rep_hover_speederbike",
"rep_walk_atte",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper");
ReadDataFile("SIDE\\cis.lvl",
"cis_fly_geofighter",
"cis_fly_maf",
"cis_hover_aat",
"cis_hover_mtt",
"cis_hover_stap",
"cis_walk_spider",
"cis_tread_hailfire",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka");
--ReadDataFile("dc:SIDE\\gam.lvl",
-- "gam_inf_gamorreanguard")
SetAttackingTeam(ATT);
-- Republic Stats
SetTeamName(REP, "Republic")
SetTeamIcon(REP, "rep_icon")
AddUnitClass(REP, "rep_inf_clone_trooper",150)
AddUnitClass(REP, "rep_inf_arc_trooper",100)
AddUnitClass(REP, "rep_inf_clone_pilot",100)
AddUnitClass(REP, "rep_inf_clone_sharpshooter",100)
AddUnitClass(REP, "rep_inf_jet_trooper",100)
SetHeroClass(REP, "rep_inf_macewindu")
-- CIS Stats
SetTeamName(CIS, "CIS")
SetTeamIcon(CIS, "cis_icon")
AddUnitClass(CIS, "cis_inf_battledroid",150)
AddUnitClass(CIS, "cis_inf_assault",100)
AddUnitClass(CIS, "cis_inf_pilotdroid",100)
AddUnitClass(CIS, "cis_inf_assassindroid",100)
AddUnitClass(CIS, "cis_inf_droideka",100)
SetHeroClass(CIS, "cis_inf_countdooku")
-- Attacker Stats
SetUnitCount(ATT, 250)
SetReinforcementCount(ATT, 3000)
-- AddBleedThreshold(ATT, 31, 0.0)
-- AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 0.75)
AddBleedThreshold(ATT, 10, 1.5)
AddBleedThreshold(ATT, 1, 3.0)
-- Defender Stats
SetUnitCount(DEF, 250)
SetReinforcementCount(DEF, 3000)
-- AddBleedThreshold(DEF, 31, 0.0)
-- AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 0.75)
AddBleedThreshold(DEF, 10, 1.5)
AddBleedThreshold(DEF, 1, 3.0)
-- Local Stats
-- SetTeamName(3, "locals")
-- AddUnitClass(3, "gam_inf_gamorreanguard",3)
-- SetUnitCount(3, 3)
-- SetTeamAsEnemy(3, ATT)
-- SetTeamAsEnemy(3, DEF)
-- Level Stats
ClearWalkers()
AddWalkerType(0, 20) -- Droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 3) -- 3x2 (3 pairs of legs)
-- SetMemoryPoolSize("CommandHover", 10)
-- SetMemoryPoolSize("CommandWalker", 3)
-- SetMemoryPoolSize("EntityHover", 30)
-- SetMemoryPoolSize("EntityFlyer", 30)
-- SetMemoryPoolSize("EntityBuildingArmedDynamic", 16)
-- SetMemoryPoolSize("EntityTauntaun", 0)
-- SetMemoryPoolSize("MountedTurret", 22)
-- SetMemoryPoolSize("SoundSpaceRegion", 81)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize("Aimer", 200)
SetMemoryPoolSize("Obstacle", 725)
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:gfs1\\gfs1.lvl")
SetDenseEnvironment("true")
--AddDeathRegion("Sarlac01")
--SetMaxFlyHeight(90)
--SetMaxPlayerFlyHeight(90)
thats my lua for vehicles and hte like word for word please help