-
Notifications
You must be signed in to change notification settings - Fork 13
Creating Your First Map
Click here for a different tutorial - a quick outline on the commands you should use to create a map. Only use that one if you have created a map before and know the arguments required for each command etc.
This tutorial assumes you already have the following things set up and ready to go:
- A complete TF2 map already made, including capture points. We recommend this one, by SethBling. If you use that one, we recommend using WorldEdit to edit out all of the redstone/command blocks under the map as it's not needed. Users have reported slow startup times when leaving it in.
- A lobby for the red and blue team for each map. Each map requires two lobbies, one for each team. If you have 3 maps, you will need 6 lobbies total. Players are sent to the lobby to choose their class before the game starts. Ideally, have signs with the names of all your classes, which will later correspond to buttons players use to choose their class.
- A global lobby. This is where players are sent when they type /tf2 join and when the game ends, it ideally contains the lobby boards for each of your maps.
- Make a WorldEdit selection around the entire map, and type /tf2 create map <map name>.
- Use /tf2 set playerlimit <map name> <#> to set the map's player limit. Don't set this number ridiculously high! It's used to automatically start the game when a certain percentage of the maximum amount of players have joined (it defaults to 50%).
- Do /tf2 set redtp <map name> <#> to set the delay (in seconds) for which the red team is teleported after the game starts.
- Finally, /tf2 set timelimit <map name> <#> to set the amount of time games will run for.
Go to the location of your global lobby, and type: /tf2 set spawn lobby
After that, you need to define the spawns for your map. All spawns are created with this command: /tf2 set spawn <map name>. This will open a GUI (no client mods needed) that allows you to select the spawn you would like to set.
You must set spawns for the following:
- Red team spawn (where the red team is teleported when the game starts).
- Blue team spawn (where the blue team is teleported when the game starts).
- Red team lobby (where players on the red team are sent to choose their class before the game starts).
- Blue team lobby (where players on the blue team are sent to choose their class before the game starts).
You can now place class buttons in both the red and blue team lobbies for your map. Use the following command: /tf2 create classbutton <normal|donator> <class name>
The command will give you a button, which when placed, will become a class button. If it is a normal class button, players will need the tf2.button.normal permission to use it. If it's a donator class button, players will need the tf2.button.donator permission to use it.
If you spell a class name wrong or wish to re-do the button, simply destroy it and create it again.
Each map can have an unlimited amount of capture points. If you used the map we mentioned above, each map included has two. Stand on each capture point and type: /tf2 set capturepoint <map id> <#>
The number being the number of the capture point, start at 1, and increase it with each capture point.
You can check what you've already done and what you need to do to setup a map by issuing this command: /tf2 checkdata <map name>
Everything should be successful so far except the creation of your lobby wall, which we'll do next.
To create your lobby wall, place a single sign on a wall, formatted like this:
Here's an example of one with the map name default:
It should automatically create more signs next to it and format them accordingly.

