一、下载SDK
1.在steamworks官网下载最新的SteamSDK。Steamworks
MacOs上传方法:http://t.csdnimg.cn/pBjOo
方法一:SteamPipeGUI
最简单方法,用steam官方的工具
打开软件SteamPipeGUI.exe,填写下面内容,点击Upload,即可完成上传
Generate VDFs按钮:生成配置文件
方法二:vdf文件+.bat文件=执行
二、配置SDK
2.打开steamworks_sdk_141/sdk/tools/ContentBuilder的run_build文件, SDK就会在官网下载组件
3.在steamworks_sdk_141/sdk/tools/ContentBuilder/scripts中找到两份脚本文件, app_build_1000 和 depot_build_1000, 把它们重命名为你的所购买的steam app ID,注意你的游戏ID是你的steam app ID+1, 修改完成后应该如 app_build_3330,depot_build_3331。
4.用记事本打开app_build_xxx脚本:
1.第一项"appid" 修改为你们应用ID如“3330”
2."Preview":需要设为0,否则只是预览版本,不上传任何内容
"AppBuild"
{
"AppID" "3330" // Your AppID
"Desc" "Updata" // internal description for this build
"Preview" "0" // make this a preview build only, nothing is uploaded
"Local" "" // put content on local content server instead of uploading to Steam
"SetLive" "" // set this build live on beta branch AlphaTest
"ContentRoot" "..\content\" // content root folder relative to this script file
"BuildOutput" "..\output" // put build cache and log files on different drive for better performance
"Depots"
{
"3331" "depot_build_1001.vdf"
}
}
然后根目录"contentroot" "" 把你硬盘中的SDK中的content文件夹地址写进空白的""中,如:“F:/steamworks_sdk_141/sdk/tools/ContentBuilder\content”
最后在"depots"中两个ID改为你的游戏ID如:"3331" "depot_build_3331.vdf"
1."LocalPath":游戏安装包的文件夹
2."Recursive" "1":遍历所有子文件
"DepotBuild"
{
// Set your assigned depot ID here
"DepotID" "3331"
// include all files recursivley
"FileMapping"
{
// This can be a full path, or a path relative to ContentRoot
"LocalPath" "..\content\MyGame\*"
// 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"
}
}
5.depot_build_xxx脚本
"DepotID"改为你的游戏ID如:"3331"
然后根目录“contentroot” "" 把你硬盘中的SDK中的content文件夹地址写进空白的""中,如:“F:/steamworks_sdk_141/sdk/tools/ContentBuilder/content”
然后在你的SDK的content文件夹中新建一个文件夹如MyGame,把你的游戏文件copy进去
最后"LocalPath" "*" 内容中的 "*" 添加你的文件夹名字 "./MyGame/*" 注意标点符号不要漏
三、上传包
方式一:命令行上传(推荐)
Windows用户可以用.bat文件命令行的形式上传,方便快捷不用每次输入
(更改下面4个地方:用户、密码、密钥、app_build_3330.vdf文件路径)
builder\steamcmd.exe +login 用户 密码 密钥 +run_app_build_http ..\scripts\app_build_3330.vdf
方式二:手动上传
- 更新游戏包。
- 把更新后的游戏包,替换。F:\steamworks_sdk_146\sdk\tools\ContentBuilder\content\游戏包
- 打开命令。F:\steamworks_sdk_146\sdk\tools\ContentBuilder\run_build.bat
- 登录
- login 用户名 密码 密钥
- 等待上传,显示success即成功。
- run_app_build F:\steamworks_sdk_146\sdk\tools\ContentBuilder\scripts\ vdf格式文件(对应游戏ID)
- 上传完成后回到你的steamworks,SteamPipe页面,版本选择default,在点右边预览更改,如果看到增加的文件和你游戏文件大小一致,就上传成功继续点蓝色按钮生成版本OK,如果文件内容大小为0B,就没上传成功,请仔细检查教程中那一步出错。
四、steamworks发布
6.上传完成后回到你的steamworks,SteamPipe页面,版本选择default,在点右边预览更改,如果看到增加的文件和你游戏文件大小一致,就上传成功继续点蓝色按钮生成版本OK,如果文件内容大小为0B,就没上传成功,请仔细检查教程中那一步出错。
7.在下一个安装项目中选择 [一般] ,指定你游戏的启动程序
8.发布游戏到steam,发布成功就完成了。