5

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?

  • I think listen servers are assumed to be LAN servers. Usually it's better to just run a Dedicated server. – Powerlord Jan 14 '15 at 16:28
  • yeah, but the option to make them internet servers is viable and i don't like the idea of a dedicated server, i'm just doing it randomly for a while to play with friends i wouldn't like to have extra needless software on my PC, plus extra load, plus extra setting-up etc. – mathgenius Jan 14 '15 at 17:17
  • 1
    I asked because sv_lan 1 servers don't heartbeat, that's all – Suchipi Jan 20 '15 at 20:57
  • 1
    Changing map with "map whatever" will automatically heartbeat (when sv_lan is 0), so yes – Suchipi Jan 20 '15 at 21:03
  • 1
    "on the vast infinite network.. called the Internet, there would be sufficient and detailed information on something...that has existed for more than 10 years" - Yeah, you'd think that. Then again, I do programming for a living and like 80% of the time this isn't the case. :-P – Robotnik Nov 26 '16 at 3:01
1

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.

References

  • Thanks, this question is so old I forgot to edit it. Now I actually need to automatically run the "map [map name here]" command, the others are set up fine. – mathgenius Nov 28 '16 at 15:20
  • @mathgenius you shouldn't move the goalposts, if you have a new question, ask it as a new question :-) – Robotnik Nov 28 '16 at 22:48
  • Oh, I didn't think of that. Well, the issue is the same, just the accompanying attribute is different. Do you think I should still ask a new question? – mathgenius Nov 29 '16 at 10:17
  • 1
    @mathgenius yes I believe so, despite being similar I think they're different enough to warrant being asked separately. You can rollback this question (and link to it in your new question for context if need be). – Robotnik Nov 29 '16 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.