Adding CTF
Moderator: Moderators
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Adding CTF
last step for my map is adding a CTF mode. I searched "add ctf" and other things like that, and checked the everything you need thread but all I got was how to add hunt. Can anyone point me in the direction of a tutorial on how to add CTF or something of the sorts? 
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding CTF
ArkAngel wrote:checked the everything you need thread but all I got was how to add hunt.
The FAQ / Everything You Need Thread Version 2.0 wrote:...
Miscellaneous
... ...
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
oh wow... derp sorry AQT thanks tho
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding CTF
No need to apologize. Next time when looking through a huge list like the FAQ/EYN thread, just hit ctrl + F and type in the keywords of whatever you're looking for. I typed in "CTF" and the only match that came up was the above tutorial. 
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
8-Place ctf_spawn1 and ctf_spawn2 paths on this layer. It doesn't matter what you name these, they just need to be put in your SpawnPath section of your CP properties later.
what exactly does that mean? do I make a new path in the ctf_common layer named ctf_spawn1 with 1 node and another named ctf_spawn2? where do I put these?
also, what about the LUA scripts? should I just use a stock map CTF LUA but change all the *** to my maps initials?
EDIT- wow I think I overthunk that one... ctf_spawn1 and 2 is for spawning AI... but yeah about the scripts
EDIT
shameful bump, but I really need more help in adding CTF than that guide. how do I do the scripts/is there more to it than the scripts?
Double posting is against the RULES, please EDIT your post instead -Staff
what exactly does that mean? do I make a new path in the ctf_common layer named ctf_spawn1 with 1 node and another named ctf_spawn2? where do I put these?
also, what about the LUA scripts? should I just use a stock map CTF LUA but change all the *** to my maps initials?
EDIT- wow I think I overthunk that one... ctf_spawn1 and 2 is for spawning AI... but yeah about the scripts
EDIT
shameful bump, but I really need more help in adding CTF than that guide. how do I do the scripts/is there more to it than the scripts?
Double posting is against the RULES, please EDIT your post instead -Staff
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Adding CTF
then check this tutorial out, only that you do it for ctf instead of hunt
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
alright I followed that guide, and I got these three errors in my error log
Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk in MISSION.lvl
Message Severity: 3
.\Source\LuaHelper.cpp(112)
OpenScript(BOBc_1flag): script (80c3a77f) not found
Message Severity: 5
.\Source\GameState.cpp(1283)
Could not open MISSION\BOBc_1flag.lvl
I looked at the error log errors explained topic, and the first one can be fixed with a manual clean it said, but the others... yeah. I'm not sure which BOBc_1flag script it's referring to, or what BOBc_1flag.lvl is.
Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk in MISSION.lvl
Message Severity: 3
.\Source\LuaHelper.cpp(112)
OpenScript(BOBc_1flag): script (80c3a77f) not found
Message Severity: 5
.\Source\GameState.cpp(1283)
Could not open MISSION\BOBc_1flag.lvl
I looked at the error log errors explained topic, and the first one can be fixed with a manual clean it said, but the others... yeah. I'm not sure which BOBc_1flag script it's referring to, or what BOBc_1flag.lvl is.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Adding CTF
the BOBc_iflag script is the lua for the 1flag-mode
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
Hidden/Spoiler:
- [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: Adding CTF
Don't forget to edit your req files...
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
I did, here's my bobc_1flag.req
Hidden/Spoiler:
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding CTF
Did you remember to add the mode into the addme.lua, add ctf to the ZE modes window, and did you create/have a 1flag layer?
- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
ahh sorry I was away for a couple days. well, I'm actually ABLE to play the 1flag mode now, however no AI spawn, there isn't a flag, and there's no score counter (just shows the reinforcements). the command posts/paths are in ctf_common layer, and the com_item_flag is in the 1flag layer
here's the LUA:
here's the LUA:
Hidden/Spoiler:
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Adding CTF
You don't have a flag data memory pool. I don't know how important it is but from the Death Star lua:
Code: Select all
SetMemoryPoolSize ("FlagItem", 1)- ArkAngel
- Rebel Sergeant

- Posts: 215
- Joined: Fri Nov 13, 2009 10:00 am
Re: Adding CTF
that didn't do anything, and when I play it's basically conquest w/o capturable CPs, and the reinforcements don't change (and theres no AI) I think I'm just gonna delete all the CTF stuff and try again from scratch.
- SW_elite
- Filthy Thief

- Posts: 507
- Joined: Sat Jan 02, 2010 6:43 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia!!!
Re: Adding CTF
So im guessing you didnt hit the CTF tab when you made your map... I say if you want it done the easy way, cut your existing map to your desktop, make another map with the same name and click the CTF option you want, then copy your world folder and all your sides, then just copy the lua... Simple, although you still will get one problem but thats easy to fix.
