Team Fortress 2
Addest 2012년 8월 16일 오전 10시 38분
2
How to host your own MvM server (SIMPLE)
1. Click on the "+" sign on the main menu for "Create Server"
2. Select a map from the scroll down menu (MvM maps for MvM mode obviously)
3. Under the "Game" tab enter a hostname
3a. FOR MvM MODE 32 PLAYERS IS REQUIRED!!!!!!!!! (IMPORTANT)
3b. Otherwise, set it to what you want.
4. Create a server password for private, leave it blank for public
5. Other options are discretionary
6. Launch your server
7. Once in the game, go into the dev console (~ by default if enabled) and type the following (Followed by hitting enter)

sv_lan 0

Once you have entered that, type the following in console(yourmapnamehere being a map YOU choose)

map yourmapnamehere

7a. Your server will reset and load the map up
8. Congratulations, you now have your very own TF2 server!

------------------------EXTRA STUFF/HELP------------------------

BONUS TIPS!
Port forward port 27015 to allow hosting if you are having issues
sv_lan 0 lists your game on the server list for all to find and allows players to join
Can't get to the Dev console? Enable it in Options > Keyboard > Advanced...
Here are the three MvM map names
mvm_coaltown
mvm_decoy
mvm_mannworks

EDIT: DO THIS TO CHANGE YOUR PORT
In the launch options for TF2 use +clientport 270xx +clientport 270xx (Replace the x's with numbers you want to use, do not use 27020. And you have to use 05-32, no higher)

Extra help (Thanks to STD|Flinty for these)
List of TF2 CVAR commands
http://www.dodbits.com/dods/index.php/tf2/66-team-fortress-cvars-september-2011

Port Forwarding guides
http://portforward.com/english/routers/port_forwarding/routerindex.htm
Addest 님이 마지막으로 수정; 2012년 8월 16일 오후 8시 47분
< >
전체 댓글 123개 중 61~75개 표시 중
Meat64 2012년 8월 16일 오후 7시 33분 
would it be: +clientport 27005 27032
Addest 2012년 8월 16일 오후 8시 45분 
+clientport 270xx (Replace the x's with numbers you want to use, do not use 27020. And you have to use 05-32, no higher)
Addest 님이 마지막으로 수정; 2012년 8월 16일 오후 8시 47분
iSZCORE 2012년 8월 16일 오후 8시 57분 
thanks for the tutorial Addest ;)
now i can play MvM with my friends :3
Brasten 2012년 8월 17일 오전 12시 17분 
{KTb} * Bubble Tea yo*님이 먼저 게시:
 Platypus님이 먼저 게시:
{KTb} * Bubble Tea yo*님이 먼저 게시:
Is there any way to do this on mac? It's not letting people join, just keeps saying server not responding.

I may be able to help you out there. Are you behind a home router?

I've been running Peer to Peer ad-hock games from my MacPro(10.6.8) most of today. I had to set my router to port 27015 to get people to join. In theory the OSX fire wall should be letting port 27015 in while the hl2.app that is TF2 is running.


Also, I've added this to my autoexec.cfg file (team fortress 2/tf/cfg/autoexec.cfg)

alias "mvm_server_setup" "maxplayers 32; sv_lan 0; heartbeat; mp_allowspectators 0; tf_mvm_min_players_to_start 1; map mvm_coaltown"

That way all I have to do is run mvm_server_setup from the console and boom, up it goes.

how exactly do I do this? LOL

If you're looking to setup a "Listen" or "Local" server for TF2 you need to do a few things.
1- Check what brand of home rounter your using.

2- Look up instructions on how to do Port Forwarding or ask the person who controls the router for assistacne.

2a- Addest added link for portforward.com which has many walkthroughs.

3- Once you have setup the port forward to your Macintosh you will need to add TF2 to your Firewall.

3a- Go to System Preferences > Security > Firewall > Advanced (you will need to use your Admin account password to unlock)

3b- Start TF2 from steam, when fully loaded use Command Tab to switch back to the Finder.

3c- Right click (two finger click if track pad) on the hl2_osx app that should have show up a the end of your Dock. Move the mouse over Options > Show in Finder. This will take you to the actual TF2 App.

3d- Drag hl2_osx into the box in the System Preferences security window from 3a. Make sure Allow incoming connections is selected. Click okay.

You should now be able to at least follow Addest guide for getting MvM running.

As for creating autoexec.cfg you will want to read over http://wiki.teamfortress.com/wiki/Scripting#Aliases

You can create your own autoexec.cfg file using in Finder, the Go menu on the top menu bar. Pick Go to Folder. In Go copy and past the following (do not include {} ):

~/Library/Application Support/Steam/Steam Apps/{your steam account name}/team fortress 2/tf/cfg

This will open a Finder window to that location. I am assuming you are on OS 10.7 (Lion) or higher, correct? If the above doesn't work just use Go and ~/Library . Then follow the file path manually.

You will no need to use TextEdit or TextWrangler (very good for doing code stuff, you can find it by Googling or in the MacAppStore) to make a new text file and name it autoexec.cfg. Make sure it has the .cfg ending and not .txt or .rtf. If you have to change the file name. If you didn't save your new autoexec.cfg into /team fortress 2/tf/cfg just drag and drop it in from where ever you did save it.

In the autoexec.cfg you can make your own custom binds (see Scripting above) that load each time you boot TF2. The alias I have setup to quick launch a MvM server is the following:

alias "mvm_server_setup" "maxplayers 32; sv_lan 0; heartbeat; mp_allowspectators 0; tf_mvm_min_players_to_start 1; map mvm_coaltown"

alias "mvm_server_setup" - tells TF2 that anytime you type mvm_server_setup into the console you want the following command run.

maxplayers 32 - sets the server size to 32 players (required for MvM)

sv_lan 0 - allows the server to be visible to both the sever browser and the MvM match making service

heartbeat - basically gets your server to poke the master list server and say YO! I'M ALIVE!

mp_allowspectators 0; - should in theory stop people from joining the spectator team and using up slots that Bots need. Doesn't really work.

tf_mvm_min_players_to_start 1 - lets you start playing by yourself if no one joins up right away.

map mvm_coaltown - tells the server to start up and load mvm_coaltown, this will let you play all 3 mvm maps in order. To change the map mid game use the Console and changelevel "level name here". Do not use the "map" command as that is for starting the server only, chances are good you'll just crash the game.

To the above you can add:

sv_password {your password here}; - this sets a password for your server which must be entered by people joining, good for locking things down for friends only

hostname {name of your server name here} - if you feel like being more then Team Fortress Server


A fully setup alias could look like:

alias "mvm_server_setup" "hostname MvM Peer2Peer; sv_password buzzoffthisismymvmgame; maxplayers 32; sv_lan 0; heartbeat; mp_allowspectators 0; tf_mvm_min_players_to_start 1; map mvm_coaltown"
Brasten 2012년 8월 17일 오전 12시 25분 
Dewes님이 먼저 게시:

I found something that may help

sv_visiblemaxplayers 6

so it just show 6 to max player on server and with that no spectator join in (I hope)

It doesn't work like you'd think. It actually seems to stop Bots from spawning as well.

I will have to try:

mm_max_spectators 1 or maybe 0

and

mp_humans_must_join_team red - as i think the Bots are on Blue technically. My hypothesis is that it should force maxed human players off spectator (where the match maker puts them) and on to red, which is full, so it will either kick them or bump them back to spectator.
Robo Chicken 2012년 8월 17일 오전 5시 23분 
Thank you Now I can play with my friends without waiting in this stupid queue
Robly18 2012년 8월 17일 오전 6시 26분 
When I make my own server like that it always tells me something along the likes of "Setting sv_lan to 0 (no heartbeat, no C class) (Def. 0)"
It ends up not working.
And yes, I am port fowarded. I can host non-hamachi minecraft servers, for instance, like a charm.

EDIT:

What happens is, I say sv_lan 0, but when I check the lan status by saying sv_lan it says it's still lan. Here's what the console says:

] sv_lan 0
] sv_lan
"sv_lan" = "0"
- Server is a lan server ( no heartbeat, no authentication, no non-class C addresses )
Robly18 님이 마지막으로 수정; 2012년 8월 17일 오전 6시 35분
The Engie 2012년 8월 17일 오전 8시 40분 
how do you adjust the port. Do you do it via Console or adjusting game files?
Addest 2012년 8월 17일 오전 11시 46분 
Bump. PS: The other guide out there, is incorrect.
Addest 2012년 8월 17일 오후 6시 55분 
Bumporooney
Brasten 2012년 8월 18일 오전 9시 55분 
Addest님이 먼저 게시:
Bumporooney

Hey Addest, more info for that first post, extra console commands and server setup options.

sv_vote_failure_timer_mvm 120
/ / - That the vote fails in MVM can not be re-Submitted for this long

tf_mvm_min_players_to_start 2
/ / - Minimum number of players connected to start the countdown timer

tf_mvm_popfile "=" "
/ / - Restart the current map with a different file Population.

tf_mvm_skill "=" 3 "min. 1.000000 max. 5.000000
/ / - Sets the challenge level of the invading army bot. EASIEST = 1, 3 = normal, 5 = hardest

sv_vote_issue_kick_allowed_mvm 0
/ / - Can people hold votes to kick players from the server in MVM?

sv_vote_issue_changelevel_allowed_mvm 0
/ / - Can people hold votes to change levels in MVM?

sv_vote_issue_mvm_challenge_allowed 1
/ / - Can people hold votes to set the challenge level?

tf_mm_servermode 0
/ / - Activates / deactivates Lobby-based hosting mode.
/ / 0 = not active
/ / 1 = Put ​​in quickplay pool (based on current map)
/ / 2 = Put ​​in MVM pool. (Lobby will control current map)

tf_mvm_missioncyclefile tf_mvm_missioncycle.res
/ / - Name of the. Res file used to cycle mvm misisons

tf_mvm_disconnect_on_victory 0
/ / - Enable Players to Disconnect after Completing MVM


=====

For all those server hosters who want to boost the challenge and difficulty go check how to select new Population Files. Population Files control how, when, and what Bots get spawned during the game. You can turn on difficulty voting so the player can vote using the console command:

sv_vote_issue_mvm_challenge_allowed 1
- Allows players to call vote to change the "challenge" type

You can also use the direct console command (see image for better understanding of how to use): tf_mvm_popfile

https://dl.dropbox.com/u/8474358/mvm_missions.png

Found a thread over on FugWorld that explains how to access and create your own Popluation (.pop) files on Listen servers. You'll have to make your own Scripts/Population folder in your tf folder. tf/Scripts/Population/(.pop files go here)

http://www.fugworld.com/forums/showthread.php?p=223342
The Red Army 2012년 8월 19일 오전 9시 09분 
Is there a way to change the max player limit without a sourcemod plugin?
Sucnirvka 2012년 8월 19일 오전 10시 05분 
Is there any way to set up a listen/dedicated server to do Mann Up Mode as well?
KC 2012년 8월 22일 오전 5시 56분 
Bump, seems to be helpful.
nicoper 2013년 1월 11일 오전 11시 16분 
Can I change the port to 260xx ??
nicoper 님이 마지막으로 수정; 2013년 1월 11일 오전 11시 17분
< >
전체 댓글 123개 중 61~75개 표시 중
페이지당 표시 개수: 1530 50