Page 1 of 1

Error with capture the flag

Posted: Sun Oct 05, 2008 10:02 pm
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

Re: error with capture the flag

Posted: Sun Oct 05, 2008 10:06 pm
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?

Re: error with capture the flag

Posted: Sun Oct 05, 2008 10:12 pm
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

Re: error with capture the flag

Posted: Sun Oct 05, 2008 10:18 pm
by obiboba3po
yesh if you deleted one of the things that would cause a problem. :)

Re: error with capture the flag

Posted: Sun Oct 05, 2008 10:44 pm
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.....

Re: error with capture the flag

Posted: Sun Oct 05, 2008 10:59 pm
by MasterSaitek009
Post your lua. We can't tell you much without it.

Re: error with capture the flag

Posted: Sun Oct 05, 2008 11:12 pm
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

Re: error with capture the flag

Posted: Mon Oct 06, 2008 3:51 am
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

Re: error with capture the flag

Posted: Mon Oct 06, 2008 9:04 am
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)

Re: error with capture the flag

Posted: Mon Oct 06, 2008 4:56 pm
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?????

Re: error with capture the flag

Posted: Mon Oct 06, 2008 10:42 pm
by FragMe!
Are you still getting the same error?

Re: error with capture the flag

Posted: Mon Oct 06, 2008 10:45 pm
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????

Re: error with capture the flag

Posted: Mon Oct 06, 2008 11:19 pm
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.

Re: error with capture the flag

Posted: Tue Oct 07, 2008 4:59 pm
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????