CTF Flags are not capturable
Moderator: Moderators
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
CTF Flags are not capturable
I moved the flags and bases of the flags around in CTF and for some reason the unit cannot pick up the enemy flag. What is wrong?
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: CTF Flags are not capturable
Post your LUA and your flag's properties, I think you skipped something...
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: CTF Flags are not capturable
Did you move the regions for the flag zones as well?
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: CTF Flags are not capturable
I moved the regions, flags and bases. Still no luck. And yes they are all corresponding to the right side. The flags for some reason can not be captured.
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: CTF Flags are not capturable
Just a shot in the dark, is this for GCW?
If you look at the LUAs for it you may find that they reference the CIS and REP instead of IMP and ALL as the teams you just have to change all the CIS and REP to IMP and ALL. You would have to change the bits in green.
If you look at the LUAs for it you may find that they reference the CIS and REP instead of IMP and ALL as the teams you just have to change all the CIS and REP to IMP and ALL. You would have to change the bits in green.
Hidden/Spoiler:
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: CTF Flags are not capturable
That doesn't make sense though. They worked before but for some reason when I moved them they can't be captured. I changed the cis and rep to all and imp as you said though and I will let you know if that works now.
Nope, It still doesn't work.
Didn't crash or anything but didn't work.
Here is the lua if it is important:
Nope, It still doesn't work.
Here is the lua if it is important:
Hidden/Spoiler:
Last edited by elfie on Thu Jun 12, 2008 4:33 pm, edited 1 time in total.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: CTF Flags are not capturable
Did you rename anything, they have to be named the same as the LUA calls:
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}
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: CTF Flags are not capturable
I have it the same as what you posted tean. Maybe I should try a clean or something? Or I could try running the debug and search for flag or something. Thanks for all this help you are giving me though guys! Even though I haven't solved the problem yet I have learned a lot more about Capture the flag mode.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: CTF Flags are not capturable
A manual clean is always a good idea when you're stuck. Don't feel bad though, I still have issues sometimes with CTF.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: CTF Flags are not capturable
Your custom units are allowed to pick up/carry flags right?
Again, all units (AI and human) can't pickup the flags correct? They run to them and stand on top of it, but can't pick it up? Have you tried trying to pickup your team's flag instead of the enemy's?
There is nothing in the error log?
Again, all units (AI and human) can't pickup the flags correct? They run to them and stand on top of it, but can't pick it up? Have you tried trying to pickup your team's flag instead of the enemy's?
There is nothing in the error log?
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: CTF Flags are not capturable
Yes they are allowed to pick up flags. No they cannot pick up flags. Yes they stand near the flag and run ontop of it but cannot pick it up. I have tried picking up my own flag but it still doesn't work.[RDH]Zerted wrote:Your custom units are allowed to pick up/carry flags right?
Again, all units (AI and human) can't pickup the flags correct? They run to them and stand on top of it, but can't pick it up? Have you tried trying to pickup your team's flag instead of the enemy's?
There is nothing in the error log?
I will check my error log.
EDIT
Code: Select all
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-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: CTF Flags are not capturable
The Entity "team1_capture" not found means it can't find the capture regions for the flags. To confirm they are there go into ZE switch to the CTF layer click on regions you should see the two regions listed there. If not you will have to make them.
If they are there confirm there are named the same as the lua and since you moved the flag home you should also move the capture region to the base as well if you haven't already.
If they are there confirm there are named the same as the lua and since you moved the flag home you should also move the capture region to the base as well if you haven't already.
