Jump to content

srcds.exe not opening

Hello all,

So I have ran a TF2 server for a while now, but today, srcds.exe wont load up. I've tried everything. Rebooting, reinstalling, running from CMD. It just wont work. The server is running on Windows Home Server 2011

Any help is appreciated

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Kyle Manning said:

Are you using a .bat script? Valve has been slowly fazing out the gui.

Why I have never heard of it. Could you provide an example?

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

 

Quote

echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Replace cstrike with whatever tf2's codename is.

Quote

 

 

My native language is C++

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, dukethedj said:

Why I have never heard of it. Could you provide an example?

This is my .bat script I use to boot up (excuse the stuff at the beginning, just lets me type in the map I want to boot in to)

set /p MAP=Enter map:
CLS 
"X:\TF2\steamapps\common\Team Fortress 2 Dedicated Server\srcds.exe" -console -game tf +map %MAP% +maxplayers 32
PAUSE

It's just essentially launching srcds.exe and giving it some parameters.

I feel like you have a slightly bigger problem than this, though, if you're getting errors like that.

Refer here to see this a bit more in depth:

https://wiki.teamfortress.com/wiki/Windows_dedicated_server#Create_a_file_to_run_the_server

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, cdsboy2000 said:

This is my .bat script I use to boot up (excuse the stuff at the beginning, just lets me type in the map I want to boot in to)


set /p MAP=Enter map:
CLS 
"X:\TF2\steamapps\common\Team Fortress 2 Dedicated Server\srcds.exe" -console -game tf +map %MAP% +maxplayers 32
PAUSE

It's just essentially launching srcds.exe and giving it some parameters.

I feel like you have a slightly bigger problem than this, though, if you're getting errors like that.

Refer here to see this a bit more in depth:

https://wiki.teamfortress.com/wiki/Windows_dedicated_server#Create_a_file_to_run_the_server

So the server looks like its loaded, but I can't connect to it now. I tried the local server ip and public ip to connect. Both failed. I have the same exact settings that I've had since I've started the server originally.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, dukethedj said:

So the server looks like its loaded, but I can't connect to it now. I tried the local server ip and public ip to connect. Both failed. I have the same exact settings that I've had since I've started the server originally.

What were you using to boot it before? You may have had a parameter set for your IP (as mentioned in the article I linked) 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, cdsboy2000 said:

What were you using to boot it before? You may have had a parameter set for your IP (as mentioned in the article I linked) 

So here is the whole code that has worked before

CLS 
"C:\GameServer\TF2\srcds.exe" -console -game tf +map achievement_idle +maxplayers 12 +sv_lan 0 +mp_idlekickmethod 0 +sv_lan 0 +ip 0.0.0.0 
PAUSE

I will try to remove +ip 0.0.0.0

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, dukethedj said:

So here is the whole code that has worked before


CLS 
"C:\GameServer\TF2\srcds.exe" -console -game tf +map achievement_idle +maxplayers 12 +sv_lan 0 +mp_idlekickmethod 0 +sv_lan 0 +ip 0.0.0.0 
PAUSE

 

Looks good but remove the second instance of sv_lan 0

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, cdsboy2000 said:

Looks good but remove the second instance of sv_lan 0

Wow... Didn't catch that. Trying now.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, cdsboy2000 said:

Looks good but remove the second instance of sv_lan 0

Still not working, even after removing the second sv_lan 1 and +ip 0.0.0.0

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, dukethedj said:

Wow... Didn't catch that. Trying now.

I would recommend using my script, as mine has a watchdog built in to restart your server if it crashes.

My native language is C++

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, dukethedj said:

Still not working, even after removing the second sv_lan 1 and +ip 0.0.0.0

I normally don't use any IP-related options. Try to mimic my launch command and see what happens.

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, cdsboy2000 said:

I normally don't use any IP-related options. Try to mimic my launch command and see what happens.

Tried both scripts both wont connect.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Try typing "connect localhost" in console if it doesn't show up in the LAN section of your servers list.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, cdsboy2000 said:

Try typing "connect localhost" in console if it doesn't show up in the LAN section of your servers list.

That does nothing for me. I'm trying to connect to another computer on the network. Probably should have said that before.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

31 minutes ago, dukethedj said:

That does nothing for me. I'm trying to connect to another computer on the network. Probably should have said that before.

Try using the connect command with their internal IP in the network (ex: 192.168.1.8)

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, cdsboy2000 said:

Try using the connect command with their internal IP in the network (ex: 192.168.1.8)

Did that as well. Tried the external IP, too.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, dukethedj said:

Did that as well. Tried the external IP, too.

Hmm, odd. Try adding +ip 127.0.0.1 maybe?

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, cdsboy2000 said:

Hmm, odd. Try adding +ip 127.0.0.1 maybe?

Nope.

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, cdsboy2000 said:

Hmm, odd. Try adding +ip 127.0.0.1 maybe?

Would a VPN have something to do with it?

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

58 minutes ago, dukethedj said:

Would a VPN have something to do with it?

Yes lol probably. Disable that and try again

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, cdsboy2000 said:

Yes lol probably. Disable that and try again

I did. It is still not working...

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

19 hours ago, dukethedj said:

I did. It is still not working...

Do you have any other network settings that may be conflicting with that? Otherwise I would say just make a fresh server with the wiki recommended launch command exactly and see if it works. I honestly have no idea at this point.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×