Is my steamcmd frozen?

Discussion in 'Team Fortress 2 Talk' started by Jnaejnae, Nov 3, 2015.

  1. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    Im trying to make a dedicated tf2 server, so I followed the steps I see in tutorials, and when I get my steamcmd all set up, I run it. I log in by typing "login anonymous" and then I am told to type "force_instal_dir" then followed by the directory i want my server files. When I enter it, it creates the directory, and inside of it is a steamapps folder, and inside that is just something called "libraryfolders.vdf" and thats were everything just stops. Ive been running it for hours, on a fast computer, and no indication that anything is happening. Is this library thing the only thing I need? Or is my steamcmd stuck somehow, like maybe it cant find my game or something? In the steamcmd it says nothing, so I have no idea if its doing anything or not, the help would be much appreciated.
     
  2. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    No there's something wrong. You should have all the TF2 content installed.

    I have a couple of batch and text files for updating and validating my TF2 server installations. Try creating the .bat and .txt files below in your TF2 server installation's root directory (e.g. C:/steamcmd/tf)

    validate_tf2.bat
    Code:
    ..\steamcmd +runscript tf\validate_tf2.txt
    pause
    validate_tf2.txt
    Code:
    @ShutdownOnFailedCommand 1
    @NoPromptForPassword 1
    login anonymous
    force_install_dir z:\steamcmd\tf
    app_update 232250 validate
    quit

    Run the .bat file and it will validate your TF2 install and download anything needed.

    When you need to update the server you can use these .bat and .txt files:

    Code:
    ..\steamcmd +runscript tf\update_tf2.txt
    pause
    Code:
    @ShutdownOnFailedCommand 1
    @NoPromptForPassword 1
    login anonymous
    force_install_dir z:\steamcmd\tf
    app_update 232250
    quit
    NOTE: My servers are installed on Z: so you probably need to change that to C:.
     
    • Thanks Thanks x 1
  3. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    Thanks for the help, but what do you mean by C\steamcmd\tf. Because I have my steamcmd and other stuff in C\steamcmd\ However I wanted to install the rest of my files on F\tfserver. So which folder do I create the bat and txt in? The one with the library, or the one with the cmd? Or was I supposed to do all of it in one folder
     
  4. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Well, SteamCMD is not the server, it's just the tool you use to update it. Your actual server install would be in its own directory. Mine are in Z:\steamcmd\tf and \tf2 for convenience.

    You can put the .bat and .txt files anywhere you like, as long as you edit them to use your paths to steamcmd.exe and your TF2 server directory. ..\steamcmd in the .bat file means to execute steamcmd in the previous (parent) directory. You can put the absolute path in there if you like.
     
  5. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    This is really confusing, I have no idea what you are trying to tell me. Im new to this so lets make everything a little more in context and understandable. So first, I set up my steamcmd.exe and other files inside C:\Users\Jnae\SteamCMD and I set up my steamapps with library folders inside of it at F:\tfserva. Inside F:\tfserva is where I put the bat and txt.

    So i think I followed your steps, here is my bat "
    F:\tfserva +runscript F:\tfserva\validate_tf2.txt
    pause"
    and here is my txt "
    @ShutdownOnFailedCommand 1
    @NoPromptForPassword 1
    login anonymous
    force_install_dir F:\tfserva
    app_update 232250 validate
    quit"

    When I run my bat it says "F:\tfserva is not recognized as an internal or external command.
    Something is wrong, and I really cant tell what you mean when you use YOUR directories, so please talk using my directories. ..\steamcmd would of course not work at all for me, use my directories not yours, its confusing.

    " server install " I dont know what this means, " TF2 server directory" or this, "TF2 server installation's root directory (e.g. C:/steamcmd/tf)" Which directory is that, it looks like I placed some stuff in the wrong directory too. Im new I dont know where my tf2 server installation should be. Ive told you my directories, explain it through them, or I will never be able to understand.
     
  6. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Okay, let's start from the beginning.

    SteamCMD is a command-line tool that assists you in installing game server software. It's what you use the first time you download all the files needed for a TF2 server, and it's what you use to update that server. SteamCMD is not a game server itself, and does not come with any of the needed files to host one. The TF2 server files are around 6GB in size, so it's a big download and a long wait.

    SteamCMD needs to be installed somewhere on your hard drive. You have done this in C:\Users\Jnae\SteamCMD. Inside that directory you have an executable program file named steamcmd.exe (though you may not see the .exe extension, depending on your Windows configuration). This is what you run to get to the command line interface that lets you download and update servers.

    In order to set up a TF2 server, you need to tell SteamCMD to download all of the necessary files to a folder of your choosing. You have chosen to install your TF2 server in F:\tfserva.

    It does not matter where you put the .bat and .txt files. You can put them in your SteamCMD folder, or your TF2 server folder (F:\tfserva) or even on your Desktop if you like. You just have to make sure that wherever you put them, they are configured to point to the right locations. The .bat file needs to know where steamcmd.exe is, and the .txt file needs to know where your TF2 server directory is.

    C:\Users\Jnae\SteamCMD\steamcmd.exe

    F:\tfserva

    So, let's say we are making the validate .bat and .txt files and you want to put them in F:\tfserva for convenience.

    validate_tf2.bat
    validate_tf2.txt
    That should get SteamCMD to check all your TF2 server files, and download any that are missing or corrupt. When the download completes, your TF2 server directory should look something like this:

    [​IMG]

    You can then run srcds.exe to start a server, or you can make a Windows shortcut for it and add some launch commands such as -game tf -console +map ctf_turbine.
     
    • Thanks Thanks x 2
  7. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    Thanks for putting in so much work just so I can understand and set up a server. I guess my bat file was made wrong, cause I just used your text and all my errors were solved. This sites community is awesome. Its really helpful and patient, unlike steam discussions. Well so its downloading, I havent gotten everything fully running yet, but thanks again for getting me past this barrier :D
     
  8. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    This got most of it working, and I get everything set up how I am supposed to, but when i open up the server through my start.bat, it crashes on startup. What causes this crash? Could it be that my startbat file is messed up or do I just have the wrong version of tf2 server stuff?
     
  9. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Would you mind posting the contents of your start.bat file?

    Are you using any addons like MetaMod and SourceMod?
     
  10. Jnaejnae

    Jnaejnae L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    start.bat; "
    F:\tfserva\srcds.exe -console -game tf -hostport 80 +maxplayers 24 +map pl_borneo
    "

    I am pretty sure I am using metamod, cant remember, but I dont think I have source mod yet. How would I check if I do have them?
     
  11. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Well you need to download the MetaMod and SourceMod filesfrom their web sites and copy them in to your server folder, so you should remember doing it.

    Check your server's addons folder. Is there anything inside it? If there is, try renaming the addons folder to something else temporarily, then running the server again.