I am running a listen server from time to time to play with friends, i get annoyed that in order for the server to be lsited on the internet i have to manually "heartbeat" and "map " in the console. Is there a way to somehow automate this? I already have a "listenserver.cfg" file set up, but adding the commands there does not work, is there a way to set up the game to run these commands once the server loads, as i tend to let it load in the background and run other errands meanwhile?
According to Valve's Developer notes on Heartbeat:
This is, in short, a ping sent to the Steam servers when hosting your own server. It tells them your IP, amount of players, ping time, etc. This is usually not required, multiplayer or other, because it automatically runs the command every 30 seconds or so.
- TF2 Developer Wiki
So assuming you've done the other commands for setting up a listen server, i.e.
ip [your static ip address] sv_lan 0 sv_pure 1 map [map name here]
You shouldn't need to run 'heartbeat' at all.