"unable to find level chunk" errors [Solved]

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
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

"unable to find level chunk" errors [Solved]

Post by genaral_mitch »

I started a map, I'm editing felucia and set up all my units, but only Deviss and Bly show up. So I made an error log and I get this error

Code: Select all

Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_inf_327th_trooper1 in C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\AddOn\FAL\Data\_lvl_pc\SIDE\rep.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_inf_327th_trooper2 in C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\AddOn\FAL\Data\_lvl_pc\SIDE\rep.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_inf_327th_trooper3 in C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\AddOn\FAL\Data\_lvl_pc\SIDE\rep.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_inf_327th_trooper5 in C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\AddOn\FAL\Data\_lvl_pc\SIDE\rep.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk  in dc:SIDE\rep.lvl
at first, I at first I didb't jave the units even in the side, so I set them up perfectly , (look up) I get that error. I also did a search, but I didn't find a way to solve it.
Last edited by genaral_mitch on Thu Jan 07, 2010 10:37 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: "unable to find level chuck" problem

Post by Fiodis »

Vista? Win7? Are you running VM as an admin? And - sorry to ask this. I know you said you set everything up right, but are you sure about the REQs?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: "unable to find level chuck" problem

Post by MercuryNoodles »

Try a clean and remunge of the rep side. Sometimes VM has a little hiccup during the munge process.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: "unable to find level chunk" problem

Post by genaral_mitch »

@Fiodis, I'm positive I did it right. But I didn't have it on Admin, so i'll try that.

@Mercury, I already tried a MC, but trying again won't hurt.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: "unable to find level chunk" problem

Post by Xavious »

Might want to post some files so someone can double check. Lua, reqs (the main one and the individual reqs), as well as the odf names.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: "unable to find level chunk" problem

Post by genaral_mitch »

Side req:
Hidden/Spoiler:
ucft
{
REQN
{
"lvl"
"rep_bldg_forwardcenter"
"rep_fly_anakinstarfighter_sc"
"rep_fly_arc170fighter_dome"
"rep_fly_arc170fighter_sc"
"rep_fly_assault_dome"
"rep_fly_cat_dome"
"rep_fly_gunship"
"kam_fly_ride_gunship"
"rep_fly_gunship_sc"
"rep_fly_gunship_dome"
"rep_fly_jedifighter_dome"
"rep_fly_jedifighter_sc"
"rep_fly_ride_gunship"
"rep_fly_vwing"
"rep_hero_aalya"
"rep_hero_anakin"
"rep_hero_cloakedanakin"
"rep_hero_kiyadimundi"
"rep_hero_macewindu"
"rep_hero_macewindu_obi"
"rep_hero_obiwan"
"rep_hero_yoda"
"rep_hover_fightertank"
"rep_hover_barcspeeder"
"rep_inf_327th_trooper_1"
"rep_inf_327th_trooper_2"
"rep_inf_327th_trooper_3"
"rep_inf_327th_trooper_5"
"rep_inf_comand_deviss"
"rep_inf_commander_bly"
"rep_inf_ep2_jettrooper"
"rep_inf_ep2_jettrooper_training"
"rep_inf_ep2_jettrooper_rifleman"
"rep_inf_ep2_jettrooper_sniper"
"rep_inf_ep2_officer"
"rep_inf_ep2_officer_training"
"rep_inf_ep2_pilot"
"rep_inf_ep2_rifleman"
"rep_inf_ep2_rocketeer"
"rep_inf_ep2_rocketeer_chaingun"
"rep_inf_ep2_sniper"
"rep_inf_ep2_marine"
"rep_inf_ep3_engineer"
"rep_inf_ep3_jettrooper"
"rep_inf_ep3_officer"
"rep_inf_ep3_pilot"
"rep_inf_ep3_rifleman"
"rep_inf_ep3_marine"
"rep_inf_ep3_rocketeer"
"rep_inf_ep3_sniper"
"rep_inf_ep3_sniper_felucia"
"rep_walk_atte"
"rep_walk_atte_nospawn"
"rep_walk_oneman_atst"
"rep_veh_remote_terminal"
"uta1_prop_gunship"
"uta_fly_ride_gunship"
"uta_fly_ride_gunshipmyg"

}
}
Unit's req:
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"rep_inf_327th_trooper_1"
}
}
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"rep_inf_327th_trooper_2"
}
}
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"rep_inf_327th_trooper_3"
}
}
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"rep_inf_327th_trooper_5"
}
}
Like I said, bly and dev work. .lua:
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

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

---------------------------------------------------------------------------
-- 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
cp1 = CommandPost:New{name = "cp1-1"}
cp2 = CommandPost:New{name = "cp2-1"}
cp3 = CommandPost:New{name = "cp3-1"}
cp4 = CommandPost:New{name = "cp4-1"}
cp5 = CommandPost:New{name = "cp5-1"}
cp6 = CommandPost:New{name = "cp6-1"}


--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:AddCommandPost(cp6)

conquest:Start()
EnableSPHeroRules()

end

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

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

SetMemoryPoolSize("Music", 39)


ReadDataFile("sound\\fel.lvl;fel1cw")
SetMaxFlyHeight(53)
SetMaxPlayerFlyHeight (53)
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_327th_trooper1",
"rep_inf_327th_trooper2",
"rep_inf_327th_trooper3",
"rep_inf_327th_trooper5",
"rep_inf_comand_deviss",
"rep_inf_commander_bly",
"rep_hero_aalya",
"rep_walk_oneman_atst")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"CIS_inf_officer",
"cis_inf_droideka",
"cis_hero_jangofett",
"cis_tread_snailtank")

--ReadDataFile("SIDE\\geo.lvl",
--"geo_walk_acklay")

SetAttackingTeam(ATT)
SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_327th_trooper1",9, 25},
assault = { "rep_inf_327th_trooper2",1, 4},
engineer = { "rep_inf_327th_trooper3",1, 4},
sniper = { "rep_inf_327th_trooper5",1, 4},
officer = { "rep_inf_comand_deviss",1, 4},
special = { "rep_inf_commander_bly",1, 4},

},
cis = {
team = CIS,
units = 32,
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(REP, "rep_HERO_aalya")
SetHeroClass(CIS, "cis_hero_jangofett")


-- Level Stats
ClearWalkers()
-- AddWalkerType(0, 8)
--AddWalkerType(5, 2) -- 2 attes with 2 leg pairs each
--AddWalkerType(3, 1) -- 3 acklays with 3 leg pairs each
AddWalkerType(1, 2)
AddWalkerType(0, 4)
local weaponCnt = 260
SetMemoryPoolSize("Aimer", 20)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 200)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityHover", 3)
SetMemoryPoolSize("EntityFlyer", 6)
SetMemoryPoolSize("EntitySoundStream", 1)
SetMemoryPoolSize("EntitySoundStatic", 0)
SetMemoryPoolSize("EntityWalker", 5)
SetMemoryPoolSize("MountedTurret", 6)
SetMemoryPoolSize("Obstacle", 400)
SetMemoryPoolSize("PathNode", 512)
SetMemoryPoolSize("TreeGridStack", 280)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:FAL\\fel1.lvl", "fel1_conquest")
SetDenseEnvironment("false")
SetAIViewMultiplier(0.65)
--AddDeathRegion("Sarlac01")

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


-- Sound Stats

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\\fel.lvl", "fel1")
OpenAudioStream("sound\\fel.lvl", "fel1")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
-- OpenAudioStream("sound\\fel.lvl", "fel1_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(1, "Repleaving")
SetOutOfBoundsVoiceOver(2, "Cisleaving")

SetAmbientMusic(REP, 1.0, "rep_fel_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_fel_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2,"rep_fel_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_fel_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_fel_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2,"cis_fel_amb_end", 2,1)

SetVictoryMusic(REP, "rep_fel_amb_victory")
SetDefeatMusic (REP, "rep_fel_amb_defeat")
SetVictoryMusic(CIS, "cis_fel_amb_victory")
SetDefeatMusic (CIS, "cis_fel_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
AddCameraShot(0.896307, -0.171348, -0.401716, -0.076796, -116.306931, 31.039505, 20.757469)
AddCameraShot(0.909343, -0.201967, -0.355083, -0.078865, -116.306931, 31.039505, 20.757469)
AddCameraShot(0.543199, 0.115521, -0.813428, 0.172990, -108.378189, 13.564240, -40.644150)
AddCameraShot(0.970610, 0.135659, 0.196866, -0.027515, -3.214346, 11.924586, -44.687294)
AddCameraShot(0.346130, 0.046311, -0.928766, 0.124267, 87.431061, 20.881388, 13.070729)
AddCameraShot(0.468084, 0.095611, -0.860724, 0.175812, 18.063482, 19.360580, 18.178158)



end
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: "unable to find level chunk" problem

Post by Xavious »

You've got underscores before the numbers in your units' names in the reqs, but not in the lua.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: "unable to find level chunk" problem

Post by genaral_mitch »

:faint:
Post Reply