Page 1 of 1

AHH severity 5 error!!!!

Posted: Wed Jul 02, 2008 11:26 pm
by wishihadaname
omg bbq idk what i did wrong but the game is giving me a fatal error and i have absolutely no idea what i did wrong my BFrong2.log just says this

Message Severity: 5
.\Source\GameState.cpp(1283)
Could not open MISSION\TCAg_con.lvl

and i had a mungelog that said i was missing a coma or something somewere but i can't seem to find anything missing can someone help i really don't wanna retype my entire lua.

lua.

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

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

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

function ScriptPostLoad()


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


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


SetUberMode(1)
SetMaxFlyHeight(80)
SetMaxPlayerFlyHeight(70)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",70) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",850) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",850) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",850) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",750) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",8000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",140) -- should be ~1x #combo -- 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_hover_combatspeeder",
"all_inf_wookiee")

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

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_mortar",
"tur_bldg_beam",
"tur_bldg_laser",
"tur_bldg_hoth_dishturret",
"tur_bldg_recoilless_nab_auto")

ReadDataFile(dc:SIDE\\all.lvl",
"all_hero_luke_storm",
"all_fly_ywing_sc")

SetupTeams{
all = {
team = ALL,
units = 70,
reinforcements = 1200,
soldier = { "all_inf_rifleman",9, 40},
assault = { "all_inf_rocketeer",1,10},
engineer = { "all_inf_engineer",1,10},
sniper = { "all_inf_sniper",1,5},
officer = { "all_hero_luke_storm",1,1},
special = { "all_inf_wookiee",1,4},

},
imp = {
team = IMP,
units = 231,
reinforcements = 1800,
soldier = { "imp_inf_rifleman",9, 100},
assault = { "imp_inf_rocketeer",1,30},
engineer = { "imp_inf_engineer",1,30},
sniper = { "imp_inf_sniper",1,30},
officer = { "imp_hero_darthvader",1,1},
special = { "imp_inf_dark_trooper",1,30},
}
}

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

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

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

SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:TCA\\TCA.lvl", "TCA_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
and mungelog

C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TCA\TCAg_con.lua:107: function arguments expected near `\'
ERROR[scriptmunge scripts\TCA\TCAg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TCA\TCAg_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings

WARNING[PC_modelmunge msh\tat3_bldg_jabba.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\tat3_bldg_jabba.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\tat3_bldg_jabba.msh]:SplitSkinnedSegments: WARNING: resorting to brute force, this may take a while...
WARNING[PC_modelmunge msh\tat3_bldg_jabba.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\tat3_bldg_rancor.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\tat3_bldg_rancor.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\tat3_prop_CZ1droid_parts.msh]:tat3_prop_CZ1droid_parts has 1588 vertices and NO COLLISION GEOMETRY (WILL BE SLOW)!
0 Errors 7 Warnings

i have no idea what i did wrong :cpu:

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 12:46 am
by Teancum
C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TCA\TCAg_con.lua:107: function arguments expected near `\'
ERROR[scriptmunge scripts\TCA\TCAg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TCA\TCAg_con.lua]:Could not read input file. [continuing]

Open the LUA in Notepad, hit CTRL+G, type 107 (line 107) and look for an error.

And for the record, don't even bother trying the map if you have errors in the mungelog. Warnings are ok, errors are not.

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 10:07 am
by obiboba3po
woah...severity 5.....and i thought they were just fictional lol........anyways....i looked at youre lua, and as Teancum said, at line 107, there is a ywing being called up but otherwise i dont notice anything wrong there. i think a severity 5 can only be caused if something is deleted. you said "re-type youre entire lua". im assuming its not deleted, but if it is, thats a problem. anyways, i suggest you do a clean on everything and then munge everything over again. it will take maybe 30 min max, but that solves the problem a lot.

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 10:11 am
by Teancum
Severity 5's happen when there is a corrupt addme.script (addme.lua that's munged) or corrupt mission.lvl. Severity 5 basically tells you that it tried to read the addon directory at startup but crashed due to one of those being bad in an addon map.

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 10:21 am
by obiboba3po
oh, didnt know that, never had a sev. 5. and another thing Teancum, somethimes i get mungelog errors and when i run the game everythings fine. its mainly the expecting bracket thing but most of the time nothing ever happens.

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 11:26 am
by wishihadaname
ya i figured out what it was had to reread the entire lua and cross referance with one of my working once i had this problem i forgot a quotation mark in the dc:SIDE\\all.lvl" i forgot the first quotation mark now im having another problems *sigh figures* im not sure how to do this but i wanna make a unit called Captain General Skywalker *aka ubar luke post movie #6* but idk how to get what i wanted to make my design is basikly take jedi luke and switch his apearance with stormtrooper luke then edit the color scheme or the armour to be camo with a huge rebel simbol on the front. then i also wanna add more weapons but i can't seem to get any unit to have more then four but im 100% sure it can be done because in the 607th geonosis mod all the elite units have 6+ weapons idk how to do that though, also how do i switch lukes skin and how do i edit its colors?

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 1:07 pm
by Teancum
obiboba3po wrote:oh, didnt know that, never had a sev. 5. and another thing Teancum, somethimes i get mungelog errors and when i run the game everythings fine. its mainly the expecting bracket thing but most of the time nothing ever happens.
You shouldn't ever run the game if you get mungelog errors. If it runs fine for you that's one thing, but you can guarantee someone else will say it's crashing.

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 3:44 pm
by wishihadaname
ok well how do i do the whole editing a hero thing cas i don't recognise half the lua for luke andi don't wanna mess it up beyond repair can i get some advice as to how to change the jedi version of lukes skin and how to give him mroe then 4 weapons also my y-wing is messing up again i edited it to be notably slower so that it is easier to fly on a ground map but now its not spawning if and the munge log says a com_veh_weap something something is missing but i thought the common side was automaticaly included in all sides if not how do i get this to work i already tried munging common but it doesn't work and i am using hte correct y wing the one that has sc at the end it works from the regular folder so how come it won't work from the almost identical edited folder i created?

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 3:49 pm
by Teancum
Sorry, couldn't read that. Can you put some periods and capitalization in please?

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 4:29 pm
by Aman/Pinguin
wishihadaname wrote:ok well how do i do the whole editing a hero thing cas i don't recognise half the lua for luke andi don't wanna mess it up beyond repair can i get some advice as to how to change the jedi version of lukes skin and how to give him mroe then 4 weapons also my y-wing is messing up again i edited it to be notably slower so that it is easier to fly on a ground map but now its not spawning if and the munge log says a com_veh_weap something something is missing but i thought the common side was automaticaly included in all sides if not how do i get this to work i already tried munging common but it doesn't work and i am using hte correct y wing the one that has sc at the end it works from the regular folder so how come it won't work from the almost identical edited folder i created?

omg! There is 1 punctuation character in that whole text!

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 4:54 pm
by wishihadaname
... ok there are three dots for you now apart from correcting my horid gramar what should i do?

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 4:57 pm
by Aman/Pinguin
Teancum wrote:Can you put some periods and capitalization in please?

Re: AHH severity 5 error!!!!

Posted: Thu Jul 03, 2008 5:33 pm
by wishihadaname
ok here is what im trying to do. i want to create a unit based off of the luke skywalker jedi mode. this unit i want to switch the skin to the luke skywalker stromtrooper mode and i also want to edit the skin. also i want to add more weapons for that unit (currently i need 6 slots). and lastly i want to rename it from just Luke Skywalker to Captain General Skywalker what do you think? can i do that and if so how.

Re: AHH severity 5 error!!!!

Posted: Fri Jul 04, 2008 2:36 am
by computergeek
Changing the colors of the armor would be done using the GIMP and as for putting lukes head on a stormtrooper body, I think that has to be hex-edited (I do not know how, but I am sure others do) and changing lukes name can be done in editlocalize.bat in your C:\BF2 Mod Tools\Data_ABC folder, where you will need to set up your hero's name .etc. I knew how to do this a year agom but I forgot how to