Weird problem converting SWBF1 maps to SWBF2

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Weird problem converting SWBF1 maps to SWBF2

Post by Dakota »

i am using this tutorial http://www.gametoast.com/forums/viewtop ... =27&t=3574

i used that tutorial and had some problems, my cps crashed, the ingame.lvl was not being read, and more but they are fixed now after some lua coding. the map used to not show up untill i fixed up the addme.lua to call it in correctly too.

Now, i finally got the map to load up to the unit selection screen and it doesn't crash, but there are no cps yet the map is there and i can look around on it with freecam.

i have a ton of level 3 errors in my error log.
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:NAB\nab1.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP3"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "all_hover_combatspeeder"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "all_hover_combatspeeder"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it
and this one at the end of the log.
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to perform arithmetic on a nil value
stack traceback:
(none): in function `AddCommandPost'
(none): in function `ScriptPostLoad'

ifs_sideselect_fnEnter(): Map does not support custom era teams
ifs_sideselect_fnEnter(): The award settings file exists
ifs_sideselect_fnEnter(): Starting to remove award effects...
ifs_sideselect_fnEnter(): Finished removing award effects.

if anyone can help please do.

EDIT: sorry, i was in a rush while typing this (did it in about 3 minutes including finding the errors). Heres the lua.

Note: this is naboo: plains from bf1
Hidden/Spoiler:
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

---------------------------------------------------------------------------
-- 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 ScriptPostLoad()
--This defines the CPs. These need to happen first
AddAIGoal(3, "Deathmatch", 100)
cp1 = CommandPost:New{name = "CP1"}
cp2 = CommandPost:New{name = "CP11"}
cp3 = CommandPost:New{name = "CP2"}
cp4 = CommandPost:New{name = "CP3"}
cp5 = 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:AddCommandPost(cp5)

conquest:Start()

EnableSPHeroRules()
end

function ScriptInit()
StealArtistHeap(800*1024)
-- Designers, these two lines *MUST* be first.
SetPS2ModelMemory(3500000)
ReadDataFile("ingame.lvl")

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

SetTeamName(ALL, "Alliance")
SetTeamName(IMP, "Empire")
SetTeamName(3, "Locals")

SetTeamAggressiveness(ALL, 1.0)
SetTeamAggressiveness(IMP, 1.0)

SetMemoryPoolSize("Music", 40)

SetMaxFlyHeight(100)
SetMaxPlayerFlyHeight(100)

ReadDataFile("dc:sound\\geo.lvl;geo1cw")
ReadDataFile("sound\\nab.lvl;nab2gcw")
ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_short",
"all_inf_medium",
"all_inf_long",
"all_inf_antiveh",
"all_inf_support",
"all_inf_scout",
"all_inf_builder",
"all_inf_heavy",
"all_inf_jettrooper",
"all_inf_trapper")

ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_short",
"imp_inf_medium",
"imp_inf_long",
"imp_inf_antiveh",
"imp_inf_support",
"imp_inf_scout",
"imp_inf_builder",
"imp_inf_heavy",
"imp_inf_jettrooper",
"imp_inf_trapper")
ReadDataFile("SIDE\\GUN.lvl",
"gun_inf_rider",
"gun_inf_soldier",
"gun_walk_kaadu")



-- Level Stats
ClearWalkers()
SetMemoryPoolSize ("EntityWalker",-1)
AddWalkerType(0, 0) -- 8 droidekas (special case: 0 leg pairs)
AddWalkerType(1, 6) --
AddWalkerType(2, 1) -- 2 spider walkers with 2 leg pairs each
AddWalkerType(3, 0) -- 2 attes with 3 leg pairs each
SetMemoryPoolSize("Weapon", 280)
SetMemoryPoolSize ("CommandHover",25)
SetMemoryPoolSize("EntityFlyer", 25)
-- SetMemoryPoolSize("EntityTauntaun", 0)
SetMemoryPoolSize("EntityPortableTurret", 250)
SetMemoryPoolSize("EntityHover", 50)
SetMemoryPoolSize("EntityCarrier", 0)
SetMemoryPoolSize("MountedTurret", 100)
SetMemoryPoolSize("EntityBuildingArmedDynamic", 0);
SetMemoryPoolSize("PowerupItem", 40)
SetMemoryPoolSize("EntityMine", 100)
SetMemoryPoolSize("OrdnanceTowCable", 0)
SetMemoryPoolSize("Aimer", 220)

SetSpawnDelay(10.0, 0.25)

SetupTeams{
all = {
team = ALL,
units = 32,
reinforcements = 150,
soldier = { "all_inf_short",3, 6},
assault = { "all_inf_medium",3,6},
engineer = { "all_inf_long",2,4},
sniper = { "all_inf_antiveh",1,4},
officer = { "all_inf_support",1,4},
special = { "all_inf_scout",1,4},
},
imp = {
team = IMP,
units = 32,
reinforcements = 150,
soldier = { "imp_inf_short",3, 6},
assault = { "imp_inf_medium",3,6},
engineer = { "imp_inf_long",2,4},
sniper = { "imp_inf_antiveh",1,4},
officer = { "imp_inf_support",1,4},
special = { "imp_inf_scout",1,4},
},
}

AddUnitClass(ALL, "all_inf_heavy",1,4)
AddUnitClass(ALL, "all_inf_trapper",1,4)
AddUnitClass(IMP, "imp_inf_heavy",1,4)
AddUnitClass(IMP, "imp_inf_trapper",1,4)
AddUnitClass(ALL, "all_inf_jettrooper",1,4)
AddUnitClass(IMP, "imp_inf_jettrooper",1,4)
AddUnitClass(ALL, "all_inf_builder",1,4)
AddUnitClass(IMP, "imp_inf_builder",1,4)



-- Local Stats
SetTeamIcon(ALL, "all_icon")
AddUnitClass(3, "gun_inf_soldier", 5)
AddUnitClass(3, "gun_inf_rider", 2)
SetUnitCount(3, 7)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(3,DEF)





-- Attacker Stats
SetTeamAsEnemy(ATT,3)

-- Defender Stats
SetTeamAsEnemy(DEF,3)

ReadDataFile("dc:NAB\\nab1.lvl","naboo1_conquest")
ReadDataFile("dc:DAK\\NAB1.lvl")

SetSpawnDelay(10.0, 0.25)
SetDenseEnvironment("false")

-- Birdies
SetNumBirdTypes(1);
SetBirdType(0,1.0,"bird");





-- Sound
OpenAudioStream("sound\\nab.lvl", "nabgcw_music");
OpenAudioStream("sound\\gcw.lvl", "gcw_vo");
OpenAudioStream("sound\\gcw.lvl", "gcw_tac_vo");
OpenAudioStream("sound\\nab.lvl", "nab1");
OpenAudioStream("sound\\nab.lvl", "nab1");

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_nab_amb_start", 0,1);
SetAmbientMusic(ALL, 0.99, "all_nab_amb_middle", 1,1);
SetAmbientMusic(ALL, 0.1,"all_nab_amb_end", 2,1);
SetAmbientMusic(IMP, 1.0, "imp_nab_amb_start", 0,1);
SetAmbientMusic(IMP, 0.99, "imp_nab_amb_middle", 1,1);
SetAmbientMusic(IMP, 0.1,"imp_nab_amb_end", 2,1);

SetVictoryMusic(ALL, "all_nab_amb_victory");
SetDefeatMusic (ALL, "all_nab_amb_defeat");
SetVictoryMusic(IMP, "imp_nab_amb_victory");
SetDefeatMusic (IMP, "imp_nab_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");

SetPlanetaryBonusVoiceOver(IMP, IMP, 0, "imp_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(IMP, ALL, 0, "imp_bonus_all_medical");
SetPlanetaryBonusVoiceOver(IMP, IMP, 1, "");
SetPlanetaryBonusVoiceOver(IMP, ALL, 1, "");
SetPlanetaryBonusVoiceOver(IMP, IMP, 2, "imp_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(IMP, ALL, 2, "imp_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(IMP, IMP, 3, "imp_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(IMP, ALL, 3, "imp_bonus_all_hero");
SetPlanetaryBonusVoiceOver(IMP, IMP, 4, "imp_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(IMP, ALL, 4, "imp_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(IMP, IMP, 5, "imp_bonus_imp_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(IMP, ALL, 5, "imp_bonus_all_sabotage");
SetPlanetaryBonusVoiceOver(IMP, IMP, 6, "");
SetPlanetaryBonusVoiceOver(IMP, ALL, 6, "");
SetPlanetaryBonusVoiceOver(IMP, IMP, 7, "imp_bonus_imp_training");--advanced training
SetPlanetaryBonusVoiceOver(IMP, ALL, 7, "imp_bonus_all_training");--advanced training

SetPlanetaryBonusVoiceOver(ALL, ALL, 0, "all_bonus_all_medical");
SetPlanetaryBonusVoiceOver(ALL, IMP, 0, "all_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(ALL, ALL, 1, "");
SetPlanetaryBonusVoiceOver(ALL, IMP, 1, "");
SetPlanetaryBonusVoiceOver(ALL, ALL, 2, "all_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(ALL, IMP, 2, "all_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(ALL, ALL, 3, "all_bonus_all_hero");
SetPlanetaryBonusVoiceOver(ALL, IMP, 3, "all_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(ALL, ALL, 4, "all_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(ALL, IMP, 4, "all_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(ALL, ALL, 5, "all_bonus_all_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(ALL, IMP, 5, "all_bonus_imp_sabotage");
SetPlanetaryBonusVoiceOver(ALL, ALL, 6, "");
SetPlanetaryBonusVoiceOver(ALL, IMP, 6, "");
SetPlanetaryBonusVoiceOver(ALL, ALL, 7, "all_bonus_all_training");--advanced training
SetPlanetaryBonusVoiceOver(ALL, IMP, 7, "all_bonus_imp_training");--advanced training

SetAttackingTeam(ATT);

--Opening Satalite Shot
--Nab1 Plains
--Hill
AddCameraShot(0.983066, -0.039190, 0.178868, 0.007131, 44.779041, -92.555016, 223.609207);
--Pillars
AddCameraShot(0.558071, -0.004864, -0.829747, -0.007232, -99.522423, -104.189438, 102.993027);
--Center
AddCameraShot(-0.180345, 0.002299, -0.983521, -0.012535, 38.772453, -105.314598, 24.777697);


end
i am using a custom era.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: weird problem converting bf1 maps to swbf2

Post by lucasfart »

Well for a start, I wouldn't add custom era's until you get the map working fine. Have you tried a manual clean and munge? And this looks important:

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:NAB\nab1.lvl
If it can't find the .lvl file, that's why your cp's aren't showing up, as your cp's are in that .lvl file. Make sure you've given it the right name in your lua.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

conversion troubles

Post by Dakota »

sorry i haven't responded in 2 days, its testing time at the school.

anyway i have noticed that there is no nab.lvl file being created. what i find weird is that i can play the map and see it all but not spawn because spawns aren't there.

i have manual cleaned and munged and it didn't work, i will look into it more, but for now i am not sure what to do.

EDIT
i've been using this tutorial: http://www.gametoast.com/forums/viewtop ... =27&t=3574


i got the map to actually work but it has problems, no ai will spawn, i can spawn, the sky has a big black ring at the bottom excluding a small part of that ring, the vehicles and turrets aren't there, i get a load of level 3 errors, and it seems like the game isn't reading the cps yet i can spawn at them, heres the log errors.
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:NAB\nab1.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP3"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP4"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP2"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\HintManager.cpp(210)
Hint references nonexistant command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "all_hover_combatspeeder"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "CP1"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_item_vehiclerecharge"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1172)
Could not find odf "com_weap_gunturret"!

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1222)
Attempting to build an object, , that does not have an .odf file associated with it

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to index a nil value
stack traceback:
(none): in function `AddCommandPost'
(none): in function `ScriptPostLoad'
help.

Edit:

heres the lua
Hidden/Spoiler:
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

---------------------------------------------------------------------------
-- 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 ScriptPostLoad()

--This defines the CPs. These need to happen first
AddAIGoal(3, "Deathmatch", 100)

cp1 = CommandPost:New{name = "CP1"}
cp2 = CommandPost:New{name = "CP2"}
cp3 = CommandPost:New{name = "CP3"}
cp4 = CommandPost:New{name = "CP4"}
cp5 = CommandPost:New{name = "CP11"}

--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(CP11)

conquest:Start()
EnableSPHeroRules()
end

function ScriptInit()
StealArtistHeap(800*1024)
-- Designers, these two lines *MUST* be first.
SetPS2ModelMemory(3500000)
ReadDataFile("ingame.lvl")

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

SetTeamName(ALL, "Alliance")
SetTeamName(IMP, "Empire")
SetTeamName(3, "Locals")

SetTeamAggressiveness(ALL, 1.0)
SetTeamAggressiveness(IMP, 1.0)

SetMemoryPoolSize("Music", 40)

SetMaxFlyHeight(100)
SetMaxPlayerFlyHeight(100)

ReadDataFile("dc:sound\\geo.lvl;geo1cw")
ReadDataFile("sound\\nab.lvl;nab2gcw")
ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_short",
"all_inf_medium",
"all_inf_long",
"all_inf_antiveh",
"all_inf_support",
"all_inf_scout",
"all_inf_builder",
"all_inf_heavy",
"all_inf_jettrooper",
"all_inf_trapper")

ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_short",
"imp_inf_medium",
"imp_inf_long",
"imp_inf_antiveh",
"imp_inf_support",
"imp_inf_scout",
"imp_inf_builder",
"imp_inf_heavy",
"imp_inf_jettrooper",
"imp_inf_trapper")
ReadDataFile("SIDE\\GUN.lvl",
"gun_inf_rider",
"gun_inf_soldier",
"gun_walk_kaadu")



-- Level Stats
ClearWalkers()
SetMemoryPoolSize ("EntityWalker",-1)
AddWalkerType(0, 0) -- 8 droidekas (special case: 0 leg pairs)
AddWalkerType(1, 6) --
AddWalkerType(2, 1) -- 2 spider walkers with 2 leg pairs each
AddWalkerType(3, 0) -- 2 attes with 3 leg pairs each
SetMemoryPoolSize("Weapon", 280)
SetMemoryPoolSize ("CommandHover",25)
SetMemoryPoolSize("EntityFlyer", 25)
-- SetMemoryPoolSize("EntityTauntaun", 0)
SetMemoryPoolSize("EntityPortableTurret", 250)
SetMemoryPoolSize("EntityHover", 50)
SetMemoryPoolSize("EntityCarrier", 0)
SetMemoryPoolSize("MountedTurret", 100)
SetMemoryPoolSize("EntityBuildingArmedDynamic", 0);
SetMemoryPoolSize("PowerupItem", 40)
SetMemoryPoolSize("EntityMine", 100)
SetMemoryPoolSize("OrdnanceTowCable", 0)
SetMemoryPoolSize("Aimer", 220)

SetSpawnDelay(10.0, 0.25)

SetupTeams{
all = {
team = ALL,
units = 32,
reinforcements = 150,
soldier = { "all_inf_short",3, 6},
assault = { "all_inf_medium",3,6},
engineer = { "all_inf_long",2,4},
sniper = { "all_inf_antiveh",1,4},
officer = { "all_inf_support",1,4},
special = { "all_inf_scout",1,4},
},
imp = {
team = IMP,
units = 32,
reinforcements = 150,
soldier = { "imp_inf_short",3, 6},
assault = { "imp_inf_medium",3,6},
engineer = { "imp_inf_long",2,4},
sniper = { "imp_inf_antiveh",1,4},
officer = { "imp_inf_support",1,4},
special = { "imp_inf_scout",1,4},
},
}

AddUnitClass(ALL, "all_inf_heavy",1,4)
AddUnitClass(ALL, "all_inf_trapper",1,4)
AddUnitClass(IMP, "imp_inf_heavy",1,4)
AddUnitClass(IMP, "imp_inf_trapper",1,4)
AddUnitClass(ALL, "all_inf_jettrooper",1,4)
AddUnitClass(IMP, "imp_inf_jettrooper",1,4)
AddUnitClass(ALL, "all_inf_builder",1,4)
AddUnitClass(IMP, "imp_inf_builder",1,4)



-- Local Stats
SetTeamIcon(ALL, "all_icon")
AddUnitClass(3, "gun_inf_soldier", 5)
AddUnitClass(3, "gun_inf_rider", 2)
SetUnitCount(3, 7)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(3,DEF)





-- Attacker Stats
SetTeamAsEnemy(ATT,3)

-- Defender Stats
SetTeamAsEnemy(DEF,3)

ReadDataFile("dc:NAB\\nab1.lvl","naboo1_conquest")
ReadDataFile("dc:DAK\\NAB1.lvl")

SetSpawnDelay(10.0, 0.25)
SetDenseEnvironment("false")

-- Birdies
SetNumBirdTypes(1);
SetBirdType(0,1.0,"bird");





-- Sound
OpenAudioStream("sound\\nab.lvl", "nabgcw_music");
OpenAudioStream("sound\\gcw.lvl", "gcw_vo");
OpenAudioStream("sound\\gcw.lvl", "gcw_tac_vo");
OpenAudioStream("sound\\nab.lvl", "nab1");
OpenAudioStream("sound\\nab.lvl", "nab1");

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_nab_amb_start", 0,1);
SetAmbientMusic(ALL, 0.99, "all_nab_amb_middle", 1,1);
SetAmbientMusic(ALL, 0.1,"all_nab_amb_end", 2,1);
SetAmbientMusic(IMP, 1.0, "imp_nab_amb_start", 0,1);
SetAmbientMusic(IMP, 0.99, "imp_nab_amb_middle", 1,1);
SetAmbientMusic(IMP, 0.1,"imp_nab_amb_end", 2,1);

SetVictoryMusic(ALL, "all_nab_amb_victory");
SetDefeatMusic (ALL, "all_nab_amb_defeat");
SetVictoryMusic(IMP, "imp_nab_amb_victory");
SetDefeatMusic (IMP, "imp_nab_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");

SetPlanetaryBonusVoiceOver(IMP, IMP, 0, "imp_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(IMP, ALL, 0, "imp_bonus_all_medical");
SetPlanetaryBonusVoiceOver(IMP, IMP, 1, "");
SetPlanetaryBonusVoiceOver(IMP, ALL, 1, "");
SetPlanetaryBonusVoiceOver(IMP, IMP, 2, "imp_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(IMP, ALL, 2, "imp_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(IMP, IMP, 3, "imp_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(IMP, ALL, 3, "imp_bonus_all_hero");
SetPlanetaryBonusVoiceOver(IMP, IMP, 4, "imp_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(IMP, ALL, 4, "imp_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(IMP, IMP, 5, "imp_bonus_imp_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(IMP, ALL, 5, "imp_bonus_all_sabotage");
SetPlanetaryBonusVoiceOver(IMP, IMP, 6, "");
SetPlanetaryBonusVoiceOver(IMP, ALL, 6, "");
SetPlanetaryBonusVoiceOver(IMP, IMP, 7, "imp_bonus_imp_training");--advanced training
SetPlanetaryBonusVoiceOver(IMP, ALL, 7, "imp_bonus_all_training");--advanced training

SetPlanetaryBonusVoiceOver(ALL, ALL, 0, "all_bonus_all_medical");
SetPlanetaryBonusVoiceOver(ALL, IMP, 0, "all_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(ALL, ALL, 1, "");
SetPlanetaryBonusVoiceOver(ALL, IMP, 1, "");
SetPlanetaryBonusVoiceOver(ALL, ALL, 2, "all_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(ALL, IMP, 2, "all_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(ALL, ALL, 3, "all_bonus_all_hero");
SetPlanetaryBonusVoiceOver(ALL, IMP, 3, "all_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(ALL, ALL, 4, "all_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(ALL, IMP, 4, "all_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(ALL, ALL, 5, "all_bonus_all_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(ALL, IMP, 5, "all_bonus_imp_sabotage");
SetPlanetaryBonusVoiceOver(ALL, ALL, 6, "");
SetPlanetaryBonusVoiceOver(ALL, IMP, 6, "");
SetPlanetaryBonusVoiceOver(ALL, ALL, 7, "all_bonus_all_training");--advanced training
SetPlanetaryBonusVoiceOver(ALL, IMP, 7, "all_bonus_imp_training");--advanced training

SetAttackingTeam(ATT);

--Opening Satalite Shot
--Nab1 Plains
--Hill
AddCameraShot(0.983066, -0.039190, 0.178868, 0.007131, 44.779041, -92.555016, 223.609207);
--Pillars
AddCameraShot(0.558071, -0.004864, -0.829747, -0.007232, -99.522423, -104.189438, 102.993027);
--Center
AddCameraShot(-0.180345, 0.002299, -0.983521, -0.012535, 38.772453, -105.314598, 24.777697);


end
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: conversion troubles

Post by AQT »

Make sure the command post names in your lua and those in ZE match up with each other. Case sensitivity does matter.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Weird problem converting SWBF1 maps to SWBF2

Post by Dakota »

they match.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Weird problem converting SWBF1 maps to SWBF2

Post by AQT »

Alright, whatever you say...

So what exactly are you trying to do here?
Dakota wrote:

Code: Select all

ReadDataFile("dc:NAB\\nab1.lvl","naboo1_conquest")
ReadDataFile("dc:DAK\\NAB1.lvl")
Are you doing the conversion of the same map twice and placing the .lvl files in two different folders, one called NAB and one called DAK, both located in addon\***\data\_LVL_PC? What's going on? :?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Weird problem converting SWBF1 maps to SWBF2

Post by Dakota »

that must be whats wrong with my map, i have other maps that i needed to convert and swbf2 maps that i modified and they're in a folder called DAK in my mod's folder, i'll fix that part of the lua and see what happens.

the sky is fixed but the vehicles, turrets, and ai aren't spawning and the cps are doubled. the only vehicles spawning are the kaadu and their animations aren't really working (i'll probably take them off the map later on).
Post Reply