1. 登入開發者帳号,去steam下載下傳steamworks_sdk
2. 解壓放入檔案夾中(假設放在D盤根目錄下steamworks_sdk),注意(steam works不支援檔案路徑之中帶有空格(中文更别想了),否則在建構的時候會傳回錯誤)
3. 打開D:\steamworks_sdk\tools\ContentBuilder\scripts ,裡面有兩個Scripts

用記事本打開腳本,首先是app_build_765640:
{
"appid" "765640"//寫你的APP ID
"desc" "Your build description here" //不用動,維持預設即可
"buildoutput" "..\output\" //維持預設即可
"contentroot" "..\content\" //維持預設即可
"setlive" "" //維持預設即可
"preview" "0" //維持預設即可
"local" "" //維持預設即可
"depots"
{
"765641" "depot_build_233331.vdf"//定義deport檔案
}
}
然後是deport_build_765641
"DepotBuildConfig"
{
// 寫你的deport ID
"DepotID" "233331"
// 定義根目錄,我是直接寫的絕對路徑
"ContentRoot" "D:\steamworks_sdk_139\tools\ContentBuilder\content\"
// include all files recursivley
"FileMapping"
{
// 填寫你遊戲檔案存放的路徑,*代表包含該目錄下的所有檔案
"LocalPath" "D:\steamworks_sdk_139\tools\ContentBuilder\content\你的遊戲名\*"
//後面維持預設即可
// This is a path relative to the install folder of your game
"DepotPath" "."
// If LocalPath contains wildcards, setting this means that all
// matching files within subdirectories of LocalPath will also
// be included.
"recursive" "1"
}
// but exclude all symbol files
// This can be a full path, or a path relative to ContentRoot
"FileExclusion" "*.pdb"
}
按照目前配置的路徑,将你的項目放進D:\steamworks_sdk_139\tools\ContentBuilder\content檔案夾下
4. 打開steamworks_sdk\tools\ContentBuilder\builder 輕按兩下運作 steamcmd.exe
5.打開之後它會自動的下載下傳和安裝更新
首先你需要登入——如果你的賬号是2333,密碼是23330,開啟了手機令牌而且令牌目前的秘鑰是UTAWA
那麼你就需要輸入 login 2333 23330 UTAWA
好了,在登陸之後,就可以開始打包和上傳啦~
輸入: run_app_build D:\steamworks_sdk\tools\ContentBuilder\scripts\app_build_233330.vdf
敲擊回車,耐心等待上傳完成即可
6.接着登入steam背景,通路技術工具-編輯steamworks 設定
打開steam pipe-生成版本
找到你剛上傳的build,設定為default,點選預覽更改
進入這個界面,它會比較和上一個default的差異,并且告訴你需要下載下傳多少,需要多少磁盤空間
點選Set Build Live Now,你的項目就上傳成功了!
原部落格位址:http://blog.csdn.net/qq_40654110/article/details/79310381