Error with capture the flag

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
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Error with capture the flag

Post by destos »

well guys i have a big problem... i started working on this map today and its a 2flag ctf... i go and test the map and bam i got a crash... i looked at the error log and i get this
Hidden/Spoiler:
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team1_capture" not found
updating markers for flag: flag2
no carrier

Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team2_capture" not found
updating markers for flag: flag1
no carrier
i have no idea why i got this error... i havent even touched the lua or anything to do with the flags
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: error with capture the flag

Post by obiboba3po »

thats either the capture region or the actual capture region object. you may have accidentally deleted them or renamed them in ZE. did you do anything in ZE?
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

.... hmmm ok after looking into ZE... the name of the carriers is the name of the object..... i think my map was just made that way lol ill edit it to what the lua says cross ure fingers

edit* ok i found the problem =D i might have deleted one of the things so it didnt have a team on it lol TY guys.... now i can finally get on to the more stressful stuff =P
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: error with capture the flag

Post by obiboba3po »

yesh if you deleted one of the things that would cause a problem. :)
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

nah.... i took a second look i clicked on the wrong map....... :funny2: but yea it doesnt work .......same error message and all.....
MasterSaitek009
Black Sun Slicer
Posts: 619
Joined: Wed Aug 23, 2006 4:10 pm

Re: error with capture the flag

Post by MasterSaitek009 »

Post your lua. We can't tell you much without it.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: error with capture the flag

Post by FragMe! »

If it is GCW CTF that is crashing that is because the LUA is created wrong. This is true for 1CTF as well.
This is what is created:
Hidden/Spoiler:
ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveCTF")

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

SoundEvent_SetupTeams( ALL, 'all', IMP, 'imp' )

SetProperty("flag1", "GeometryName", "com_icon_republic_flag")
SetProperty("flag1", "CarriedGeometryName", "com_icon_republic_flag_carried")
SetProperty("flag2", "GeometryName", "com_icon_cis_flag")
SetProperty("flag2", "CarriedGeometryName", "com_icon_cis_flag_carried")


--This makes sure the flag is colorized when it has been dropped on the ground
SetClassProperty("com_item_flag", "DroppedColorize", 1)

--This is all the actual ctf objective setup
ctf = ObjectiveCTF:New{teamATT = REP, teamDEF = CIS, captureLimit = 5, textATT = "game.modes.ctf", textDEF = "game.modes.ctf2", hideCPs = true, multiplayerRules = true}
ctf:AddFlag{name = "flag1", homeRegion = "team1_capture", captureRegion = "team2_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}
ctf:AddFlag{name = "flag2", homeRegion = "team2_capture", captureRegion = "team1_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}

ctf:Start()

EnableSPHeroRules()

end

This is what it should be:
Hidden/Spoiler:
ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveCTF")

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

SoundEvent_SetupTeams( ALL, 'all', IMP, 'imp' )

SetProperty("flag2", "GeometryName", "com_icon_alliance_flag")
SetProperty("flag2", "CarriedGeometryName", "com_icon_alliance_flag_carried")
SetProperty("flag1", "GeometryName", "com_icon_imperial_flag")
SetProperty("flag1", "CarriedGeometryName", "com_icon_imperial_flag_carried")


--This makes sure the flag is colorized when it has been dropped on the ground
SetClassProperty("com_item_flag", "DroppedColorize", 1)

--This is all the actual ctf objective setup
ctf = ObjectiveCTF:New{teamATT = IMP, teamDEF = ALL, captureLimit = 5, textATT = "game.modes.ctf", textDEF = "game.modes.ctf2", hideCPs = true, multiplayerRules = true}
ctf:AddFlag{name = "flag1", homeRegion = "team1_capture", captureRegion = "team2_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}
ctf:AddFlag{name = "flag2", homeRegion = "team2_capture", captureRegion = "team1_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}

ctf:Start()

EnableSPHeroRules()

end
Basically change all the REP and CIS references to IMP and ALL
Oh and make sure the capture regions and everything is correct
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

well it crashes for both eras..... but i will fix the gcq i think thats why that is crashing...
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
Conquest = ScriptCB_DoFile("ObjectiveCTF")
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()

SoundEvent_SetupTeams( REP, 'rep', CIS, 'cis' )

SetProperty("flag1", "GeometryName", "com_icon_republic_flag")
SetProperty("flag1", "CarriedGeometryName", "com_icon_republic_flag_carried")
SetProperty("flag2", "GeometryName", "com_icon_cis_flag")
SetProperty("flag2", "CarriedGeometryName", "com_icon_cis_flag_carried")

--This makes sure the flag is colorized when it has been dropped on the ground
SetClassProperty("com_item_flag", "DroppedColorize", 1)

--This is all the actual ctf objective setup
ctf = ObjectiveCTF:New{teamATT = REP, teamDEF = CIS, captureLimit = 5, textATT = "game.modes.ctf", textDEF = "game.modes.ctf2", hideCPs = true, multiplayerRules = true}
ctf:AddFlag{name = "flag1", homeRegion = "team1_capture", captureRegion = "team2_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}
ctf:AddFlag{name = "flag2", homeRegion = "team2_capture", captureRegion = "team1_capture",
capRegionMarker = "hud_objective_icon_circle", capRegionMarkerScale = 3.0,
icon = "", mapIcon = "flag_icon", mapIconScale = 3.0}

ctf:Start()

EnableSPHeroRules()

end
heres for CW
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: error with capture the flag

Post by FragMe! »

The errors you were getting in the first post are refering to the capture regions as defined on the appropriate layer in ZE.
Go into the region tab and when you select a region make sure something is in both boxes at the top and the one on the side. I forget thier names
right now and I am not at my home comp to check. And make sure the names are the same as what is in the LUA (and/or the error message which is the same thing). If nothing is in the right most box at the top (I have seen this before) just type in the same thing that is in the box on the right side.
It should be team1_capture (or team2)
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

checked that it all fine... i even had obi help me on xfire... me and him cant find a thing wrong..... could it be that somehow the entire map just didnt munge well and i need to clean and munge it again

*edit... nope it still crashes.... i cant figure out why it crashes..... i checked ZE i have everythign right in my lua i have everything right.... is there anything else that can poissibly be the cause?????
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: error with capture the flag

Post by FragMe! »

Are you still getting the same error?
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

yeppers.... but recently i had a idea... a very kool idea... i realized that i had remade the capture region.... could the error be that its not the exact size that the lua says (like when it says capture marker radius=3.0) could it be i need to fix it for my certain capture regoin that i edited????
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: error with capture the flag

Post by FragMe! »

the capture region can be any size, the thing you are refering to is the glowing cone shape thing.
the important thing is the names are right which you have confirmed is.
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: error with capture the flag

Post by destos »

now that i have thought about it.... i beleive that this is a massive glitch.... i mean looking back at the lua it says
Hidden/Spoiler:
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team1_capture" not found
updating markers for flag: flag2
no carrier

Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team2_capture" not found
updating markers for flag: flag1
no carrier
and yet if it didnt know where the capture region was would it also ask for flag1 carrier for team1???? and the same with team2????
Post Reply