Krahazik 2015 年 11 月 30 日 上午 10:07
SteamCMD Scripts
Since there appears to be nowhere that actually explains this I am going to ask here.

I have encountered several referance to building scripts to automate certain functions in SteamCMD. Referances but no actual viewable scripts or explinations on how to write one.

Are these script splain text files, bat files, windows power shell files (which won't run on my machine) or are they some magical special programming thing that you need to be a telepath to figure out?

1. What are sSteamCMD scripts and how to you write one?

2. What file format is a steamcmd script in?

3. How do you execute a script?

4. What are the commands that can be used in a script?

5. Is there a comprehensive, detailed, users manual burried somewhere in the steam multiverse somewhere?
< >
目前顯示第 1-15 則留言,共 21
Krahazik 2015 年 11 月 30 日 下午 12:00 
I don't suppose there is a steamcmd to move files or directories?

Or a listing of what all of the steamcmd commands are?

The wiki is completely lacking there. Simple state "To Do list"
Tev 2015 年 11 月 30 日 下午 12:04 
引用自 Krahazik
I don't suppose there is a steamcmd to move files or directories?

Can you specify? Like can you move Steam -client files / games ?

Or do you mean install stuff in another folder like you would with force_install_dir "PATH" ?
Krahazik 2015 年 11 月 30 日 下午 12:06 
Well the mod download command (workshop_download_item) does not automatically move the mod to the game server's mod directory. Which means at the moment, if they are not moved manually and you restart the game server, the game server would start without the newly downloaded mods.
Tev 2015 年 11 月 30 日 下午 12:18 
While I'm a complete newb at SteamCMD, does the force_install_dir "Path to the mod directory" work with the workshop_download_item -command as a follow up?

EDIT: And of course, I mean workshop_download_item after the force_install_dir
最後修改者:Tev; 2015 年 11 月 30 日 下午 12:23
Krahazik 2015 年 11 月 30 日 下午 12:43 
nope, force_install_dir did not work for forcing where the mods go.
Actually, it resulted in no mods being downloaded at all.
Tev 2015 年 11 月 30 日 下午 12:44 
引用自 Krahazik
nope, force_install_dir did not work for forcing where the mods go.
Actually, it resulted in no mods being downloaded at all.
Well, that's interesting, you did use quotations with the path right?
Krahazik 2015 年 11 月 30 日 下午 12:48 
Yes I did
MalikQayum 2015 年 11 月 30 日 下午 12:55 
maybe if the OP explained a bit about what he is trying to accomplish and perhaps some snippet of the coding, this might actually turn to something.. otherwise we can play "help me but guess what i am making" all day.

because i think you might doing some things for your greenlight project where you need to use the steamworks sdk .. but again i dont know much about what you are doing so..
最後修改者:MalikQayum; 2015 年 11 月 30 日 下午 12:57
Tev 2015 年 11 月 30 日 下午 12:58 
引用自 Krahazik
Yes I did
Yup, just tested it myself too.

force_install_dir does work with app_update <app-ID> validate, but not with workshop_download_item <app-ID> <item ID>

http://i.imgur.com/pAo8WrI.png It seems to ignore the former path entirely.

Sorry for the waste of time. Unless a command comes up, you could just symlink them too though.

This is some list though https://raw.githubusercontent.com/dgibbs64/SteamCMD-Commands-List/master/steamcmdcommands.txt


引用自 MalikQayum
maybe if the OP explained a bit about what he is trying to accomplish and perhaps some snippet of the coding, this might actually turn to something.. otherwise we can play "help me but guess what i am making" all day.

because i think you might doing some things for your greenlight project where you need to use the steamworks sdk .. but again i dont know much about what you are doing so..
I think he's trying to host a multiplayer server of some game and wants the SteamCMD to download / update the Steam Workshop -content in the right folder, so it requires no manual effort of dragging folders around.

Maybe I'm wrong though.
最後修改者:Tev; 2015 年 11 月 30 日 下午 1:00
Krahazik 2015 年 11 月 30 日 下午 1:00 
I am trying to manage an ARk server
Location where steamcmd downloads mods = D:\ARK Server Notes\SteamCMD\steamapps\workshop\content\346110
Location of server = D:\ARK Server Notes\Server
Mods Location = D:\ARK Server Notes\Server\ShooterGame\Content\Mods

Now steamcmd is not downloading the mods at all, despite claiming to do so
but when I check, both folders are empty

The script for downloading the mods is
===================================================================
login anonymous anonymous
workshop_download_item 346110 479884434
workshop_download_item 346110 533828549
workshop_download_item 346110 536214294
workshop_download_item 346110 527189407
workshop_download_item 346110 520879363
workshop_download_item 346110 530745564
workshop_download_item 346110 536247310
workshop_download_item 346110 489596581
workshop_download_item 346110 519546805
workshop_download_item 346110 503911420
workshop_download_item 346110 531713045
workshop_download_item 346110 524383474
workshop_download_item 346110 520373758
workshop_download_item 346110 526337556
workshop_download_item 346110 539557361
quit
===================================================================
Tev 2015 年 11 月 30 日 下午 1:07 
Is it fine those Item ID folders are inside the Content\Mods -folder?

If so, just copy the folders there from under workshop\content\346110\

Then remove the 346110 folder from under workshop\content\
Then bring up cmd.exe with admin
mklink /d "D:\ARK Server Notes\SteamCMD\steamapps\workshop\content\346110" "D:\Ark Server Notes\Server\ShooterGame\Content\Mods"

Then anything SteamCMD downloads there automatically gets redirected to the right folder.
Krahazik 2015 年 11 月 30 日 下午 1:13 
Is that a windows command line command?
OK link created.
最後修改者:Krahazik; 2015 年 11 月 30 日 下午 1:15
Tev 2015 年 11 月 30 日 下午 1:14 
引用自 Krahazik
Is that a windows command line command?
Yup.

You can do them on other platforms too though,

Mac: http://apple.stackexchange.com/questions/115646/how-can-i-create-a-symbolic-link-in-terminal

Linux: http://stackoverflow.com/questions/1951742/how-to-symlink-a-file-in-linux
最後修改者:Tev; 2015 年 11 月 30 日 下午 1:16
Krahazik 2015 年 11 月 30 日 下午 1:16 
Now the question is why the mods are all comming up with a zero size?
< >
目前顯示第 1-15 則留言,共 21
每頁顯示: 1530 50

張貼日期: 2015 年 11 月 30 日 上午 10:07
回覆: 21