protonscr

SteamCMD new warning: Please use force_install_dir before logon!

steamclosed SteamCMD
ValveSoftware/steam-for-linux#8298 · opened 2021-12-13 by ich777 · updated 2023-07-26 · 11 comments · github
Iich777 2021-12-13 github

Your system information

  • Steam client version (build number or date): Steam Console Client (c) Valve Corporation - version 1637624355
  • Distribution (e.g. Ubuntu): Debian 11
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Not really sure where to post because it's an "issue" with SteamCMD.
Recently an update from SteamCMD brought up this message: Please use force_install_dir before logon!

Steps for reproducing this issue:

  1. Call steamcmd.sh +login anonymous +force_install_dir ${SERVER_DIR} +app_update ${GAME_ID} +quit
  2. Message Please use force_install_dir before logon! pops up in the logs but game downloads fine

Is this something that needs to be changed to: steamcmd.sh +force_install_dir ${SERVER_DIR} +login anonymous +app_update ${GAME_ID} +quit or is the old command still fine? If it needs to be changed, why? Or can this warning be ignored?

TTTimo 2021-12-13 github

Hello @ich777,

The warning is correct - your scripts should use force_install_dir before logging in, and avoid using it after logging in.

Using force_install_dir used to trigger a forced re-download of a title's content even when no update was necessary. This problem is fixed in steamcmd, but there may be other issues and it's still recommended to use force_install_dir before logon.

Iich777 2021-12-13 github

@TTimo oh, okay, then I think I have to fix this for my ~64 Docker images... :D

Strange thing is that it never actually triggered a redownload from any game.
Thank you for your time and quick answer! :)

TTTimo 2021-12-13 github

Yeah, that was https://github.com/ValveSoftware/steam-for-linux/issues/8075 - but it only happened under heavy I/O load

Tthesweetiger 2021-12-18 github

Hi , I use steamCMD since it's first day and I comfirm it's a bug , it should not happen , all the official documentation say clearly to log in first

Tthesweetiger 2021-12-22 github

Hello @ich777,

The warning is correct - your scripts should use force_install_dir before logging in, and avoid using it after logging in.

Using force_install_dir used to trigger a forced re-download of a title's content even when no update was necessary. This problem is fixed in steamcmd, but there may be other issues and it's still recommended to use force_install_dir before logon.

your wrong , all the documentation are clear , logon first and use force_install_dir in second , all this info are from steam documentation

this also happen in steamcmd shell

Iich777 2021-12-22 github

@thesweetiger I think the person you want to mention is @TTimo or am I wrong?

I see it also like you say it but you things change over time?

CCalingoff 2022-01-16 github

Hi, i got the same error (first, i do login anonymous, after i create a file for my server, and after i use force_install_dir and my file in c: and after i got : please use force_install_dir before logon)

can you explaind clearly what i should do ? step by step ?

thx for your help

TTTimo 2022-01-18 github

@Calingoff : simply put the force_install_dir command before the login command in your script.

Sstrawed1 2022-03-27 github

@Calingoff : simply put the force_install_dir command before the login command in your script.
I did and it still said the same

FFloppaTest 2022-07-22 github

İ tried without logging in, nothing happens.

SSGZ-Creations 2023-07-26 github

having issues getting further than this on doing this new method of installing server files.

Steam>force_install_dir
Usage: force_install_dir