Difference between revisions of "Talk:TF2/Creating a Payload Map"

From Valve Developer Community
Jump to: navigation, search
(I Cant Get My map to work.)
(I Cant Get My map to work.)
Line 115: Line 115:
anyone have any ideas whats going wrong?.
anyone have any ideas whats going wrong?.
needing help --[[User:Robotnorris03|Robot]] 08:38, 18 Aug 2008 (PDT)
needing help --[[User:Robotnorris03|Robot]] 08:38, 18 Aug 2008 (PDT)
::Fixed dont worry, although my map doesn't recognize spawn points.

Revision as of 09:21, 18 August 2008

Before anyone asks I started this page on 3rd may 2008, feel free to make adjustments whenever you feel necessary. This tutorial was made from reverse engineering pl_goldrush and creating my own map which is shown in the tutorial. If after following the example completely and finding that it doesn't work right please either adjust the page if you know the solution to what I've missed or add a reply here. --NekoBaron 10:40, 3 May 2008 (PDT)

Payload Camera

For those of who have been making custom payload maps, have you noticed that one of the camera views (which you can view by cycling through all the camera views while you are dead) is from the center of the cart?

It's appears that the func_train has it's own camera built in, but I have found no way to change it or disable it. It's not necessary for the payload system, but the camera view from inside the cart doesn't look that nice, and i'm sure most mappers would want to change it. --Spacemonkey 15:07, 1 Jul 2008 (PDT)


First, congratulations on the excellent work with the tutorial. Alright, so I decompiled GoldRush to examine how this thing is built, but I couldn't find how Valve laid down the traintracks on the map, they are simply not there, do you have any idea how it's done? --Baliame (talk) 14:49, 4 May 2008 (PDT)

Thanks this is my first wiki submission, if they aren't there then the de compiler your using probably isn't gathering all the information, I presume that your on about the actual track it self being all the props themselves (other wise your on about the path_track which is covered). You could try using another decompiler I used one called VMEX ( http://www.geocities.com/cofrdrbob/vmex.html ) to look at pl_goldrush. Or if you want you can have a look at the source for the map used in the tutorial it self which comes with the map http://www.fpsbanana.com/maps/53448 and see what I used. When you actually get to look at the track close up you can easily see all the small joins and overlaps but these aren't seen when running around. --NekoBaron 15:24, 4 May 2008 (PDT)
Oh right, I just figured it out. VMEX crapped all over itself when I tried to decompile it with prop_statics, there we go, they ARE prop_statics.--Baliame (talk) 07:57, 6 May 2008 (PDT)


It says "Click on and find the properties of the Bomb_CapZone" but where is this entity supposed to be? what type of entity is it? I don't see anything previous to this about creating it, yet it sounds like we have to find it...but how can you find something that was never there to begin with? Entice 20:53, 8 May 2008 (PDT)

At least you HAVE entities in your version. For the time being, I'm stuck with 3.4 and not even a playerstart! --JeffMOD 04:43, 9 May 2008 (PDT)
Apologies, I was half tired writing all this in one go, Bomb_CapZone is meant to be Bomb_CapArea and I've edited the wiki to show that, If you see any other problems just write here again.--NekoBaron 18:24, 11 May 2008 (PDT)
SetSpeedDirAccel shows up as red letters...I'm gonna try and do SetSpeedDir, that is black...hopefully it will work. Entice 20:17, 11 May 2008 (PDT)
hmm...I ran the game both ways and each time I touched the cart the game froze...I ran the map for problems and other than that SetSpeedDirAccel is the Bomb_Train has unused keyvalue for "ManualAccelSpeed" but it is set to 70. Entice 20:34, 11 May 2008 (PDT)
SetSpeedDirAccel does work even if it shows as broken (I copied them from goldrush and they give the train a smoother acceleration, along with the 3 keywords added to it), at a guess do you have 2 capture points with the same index? Ive had a map crash when you touch the capture zone and it crashed the game.--NekoBaron 03:57, 12 May 2008 (PDT)
I didn't have my 2nd capture point set up yet, but I made it and put it out in the middle of nowhere...the cart moves now...but I've got more problems =/

1. Bomb cart moves backwards. 2. cart stops just before the cap point, where it starts moving upwards onto the cap thing and it just stops. I looked at the track but it seems fine...what else would cause that? Entice 19:58, 12 May 2008 (PDT)

I'm guessing the train is facing the wrong way, have it pointing right in hammer (the track should turn it around in game), I can't really tell with out seeing it myself so only suggestion is to download this map http://www.fpsbanana.com/maps/53448 which the tutorial was made on, that map works fine apart from the cap warning sounds which is fix in the tutorial.--NekoBaron 01:32, 13 May 2008 (PDT)

ok, I got the cart turned around...but now I found a new problem. The cart moves forward without anyone near it...but I have case 1 set to 0 speed accel. oh, and the cart doesn't move backwards all the time (when there is nobody near). Entice 18:36, 13 May 2008 (PDT)

I really cant give any more specific help other than re read the tutorial and check if everything was done accordingly / check it against the example map, I just went though the tutorial myself again and apart from some unrelated things the train worked fine. --NekoBaron 11:09, 14 May 2008 (PDT)
alright, I'll see what I can do...thanks a bunch for the tutorial, helped a ton =D Entice 18:03, 14 May 2008 (PDT)

AH! I found out why the cart kept moving...I had the bomb logic case for Case01 set to 1 instead of 0. Entice 21:00, 15 May 2008 (PDT)

Bomb Flashing Light

I noticed while playing goldrush that the bomb has a flashing light on while it is being pushed, however my map made with this tutorial does not have this, and the tutorial says nothing about it, so I was just wondering if you knew about the light or not, and if you do, do you know how to fix it? --Deth 8:52, 28 May 2008 (PDT)

I know of the light but personally I didn't care for the details, its an entity linked to the train that shows when it moves forward. Its not a case of fixing it but adding it in something I felt that the tutorial didn't need as with the cart sparks. If you want to add it you'll need to look at goldrush it self and open it up with vmex, sorry I cant give much help currently :/.--NekoBaron 04:09, 28 May 2008 (PDT)
That's ok, i'll figure it out one of these days, Thanks for making this great tutorial it helped me a whole bunch, I would have never got payload working without you! =) --Deth 6:54, 28 May 2008 (PDT)

Final Explosion

I have looked through your tutorial and (it might be just me) but i can't seem to find anything on how to create an explosion, once you have caputered every control point in the level. The best and only example i can think of is at the end of Goldrush, when the bomb falls into the hole and creates an explosion that wreaks havoc among the scenery and players. --XGBUKx Simple 09:57, 7 Jun 2008 (PDT)

It's not in the tutorial as it's not a key part to getting a payload system to work, plus its not a real time explosion. There is around 30(at a guess) animated props used at the end of goldrush to create the explosion effect so you can either use some of the goldrush models or model and animate your own.--NekoBaron 21:23, 9 Jun 2008 (PDT)
Animating your own, will be very difficult, but possible.--Gear 22:53, 9 Jun 2008 (PDT)

I would suggest having a look at the particle editor (run your TF2 game with the extension '-tools') You can extract the particle files from the TF2 content file to see how they work, then make a custom one to use in your map. I created a custom explosion for my map pl_cave, however TF2 has a problem with finding the particle files and the particle_manifest.txt which I packed in with the bsp. Which means currently the only way to get it working is for the user to install the files manually in their own folder.--Spacemonkey 15:13, 1 Jul 2008 (PDT)

i htink its something like goldrush_cinefx--Pyromancer 20:00, 26 Jul 2008 (PDT)

My cart won't spawn!

I've been following your instructions all the way through and made the settings the same as in PL_OrangeBomb but my cart still wont spawn. Any help ?

What do you mean 'won't spawn'? It doesn't need to spawn, it's already there when the map loads. You mean the cart's not visible?
Maybe you are using the wrong prop type, use prop_dynamic, if you use prop_static it won't show up.
But the func_train should still exist, even if you can't see it, it should move and make the cart noises. --Spacemonkey 15:16, 1 Jul 2008 (PDT)
Great tutorial dude. Easy to follow and very descriptive. I have however been having the same problem as the gentleman above. My cart is invisible (It still moves along the track but I can't see it nor collide with it. I have also had other problems such as the train does not stop once I have stopped capping it, the train won't register when it has passed a checkpoint, the last checkpoint isn't showing up on the hud nor does the round end when it reaches the end of the track. Those problems are probably unrelated though. I think part of the problems may have to do with Hammer not recognising the command 'SetSpeedDirAccel'?
If the train is built near where it starts and it appears no where except invisibly on the tracks, the only thing I could guess would be the parenting not being set correctly or using strange textures for the brushes. (also don't forget to press the sig+time stamp button when posting on this page) --NekoBaron 02:03, 4 Jul 2008 (PDT)

6/13/08 Updates

  • Removed: Note about default FGD missing the value. Comes with fgd by default.
  • Added:
    Note.png Note: Track_A_23 is the path_track before the center of the Capture Point. Adjust as necessary.
  • Added:
    Note.png Note: If you want to change the skin of the model for the Midpoint, Here would be where to do it.
  • Note.png Edit: I wrote the addition about the Track 23, and I didn't even see/read it when I came back to it.

--Lord Ned


This page seems more like a "this is how you make a Payload map" rather then "How to make a Payload Map". I can understand using and giving values, but I feel that there should be much more explanation into the game mode, how the track is placed, and simple goals for the player.--Gear 16:03, 1 Jul 2008 (PDT)

Understandable but I think thats starting to move into the theory of PL maps, I based it off the other TF2 tutorials to be perfectly honest which in my opinion do the job of showing what you need to do. Not against the idea but its a lot of work to redo it all in one go, might be something to tack on the end of this or add more to the PL sections of the TF2_Design_Theory or TF2/Basic_Map_Construction pages. --NekoBaron 07:08, 2 Jul 2008 (PDT)
Yeah the Design theory map is a basic summary of how map modes work, but of course this page can stay, what I meant maybe by a re-write is having a new page that takes about Payload more in depth, currently if you look at the other gameplay modes, we already have some pretty explainable situations along with how to make a payload map, perhaps you can just add in some information as to why a payload map is fun to make, how it benefit's the game, and some hard points on it before diving into the real logic.--Gear 12:42, 2 Jul 2008 (PDT)

Payload Issues

I'm having trouble with my payload map. I have two control points set up, the track finished, and the final cap all ready; and have followed the tutorial as close as I can recall. However, I am having an issue where the payload is moving backwards. When it is moving backwards, obviously blue would want to stop it, however when I was playing as a blue scout, (testing the points) I moved it perfectly to the first cap point, and then it stopped after it hit the cap. It paused for 20 seconds like it would normally do if there were nobody around. Then, it began moving backward, behind my disabled Track_A_#. I was confounded, then I went to stop it and IT WOULD NOT STOP!!! aaaaaahhh. What did I do wronggg? I assume it was the trigger "OnCapTeam2" not working because the logic shows it in red letters. Help, please!EDIT: I have looked at pl_orangebomb, and for some reason, the OnCapTeam2 on that map works, whereas mine does not. Is there something that I missed while making it, or did I set up CP_Master wrong? or what... Everything pretty much works now except for the mid point cap, and as soon as that is fixed I can move on to mapping further than trying to debug the map. (Note this is my first map with hammer, however I have had mapping experience with quake2 and Urban Terror (a quake3 mod)) --dormedas

Are you trying to call OnCapTeam2 on a CP_Master? If so thats why its not working, CP_Master is not a control point, its should be on a team_control_point so I would suggest to have a close look at what entities you are using. --NekoBaron 07:22, 12 Jul 2008 (PDT)


can you make the traintracks go uphill?--Pyromancer 19:59, 26 Jul 2008 (PDT)

Have you played goldrush at all (the cart goes uphill on that)? Trains can go in any direction you want to, you should try experimenting before posting.--NekoBaron 02:00, 27 Jul 2008 (PDT)
Major FacePalm*--Gear 06:00, 27 Jul 2008 (PDT)
sorry, my bad, but the question was more of, how would you make a hill?--Pyromancer 08:25, 27 Jul 2008 (PDT)
Displacement terrain should work.ˇThen rotate the tracks on X or Y axis, depending on Z. --Baliame (talk) 10:19, 27 Jul 2008 (PDT)

Multiple paths

Is it possible to create a payload train track that can follow multiple paths via a rail switch? You know, a rail leading up to a Y shaped piece of track that can either make the train go to the left or right depending on a switch. Would that be possible?

Here's a picture of what I'm talking about, by the way. --Machrider 23:23, 12 Aug 2008 (PDT)

I was thinking of making a map where the BLU team could take a detour in case the RED team had them cornered on one side of the map. But at the same time, however, the detour would have a tradeoff (possibly be longer or have more spots that are advantageous to RED and harder to navagate for BLU). It would add an awesome degree of unpredictability and strategy to this mode. --Machrider 23:32, 12 Aug 2008 (PDT)

Its totally possible and some one is allready doing a payload map with detour sections, go to http://www.fpsbanana.com/threads/116541?114 to have a look. --NekoBaron 06:50, 15 Aug 2008 (PDT)

Silencing the Announcer

First off, GREAT tutorial. Besides forgetting to give my second control point a unique index number, I had little trouble follow your instructions. However, for my purposes, I do not want the announcer to say ANYTHING during the game. You said she was controlled by the team train watcher entity, but I don't know how to hush the broad up. The teamtrainwatcher entity doesn't seem to accept any inputs or have any parameters involving announcements. Is there a way to stop her from talking? --MrStump 12:39, 15 Aug 2008 (PDT)

I Cant Get My map to work.

Ive made a map, track and path all there. My Cart wont work, wont move forwards even tho the HUD says it is. ive done everything the tutorial says. anyone have any ideas whats going wrong?. needing help --Robot 08:38, 18 Aug 2008 (PDT)

Fixed dont worry, although my map doesn't recognize spawn points.