游戏 放逐之城 baishded之mod工具BanishedKit教程
1. 下载 BanishedKit
2021年4月最新版本是1.0.7
官方下载地址: http://www.shiningrocksoftware.com/mods/
下载后将BanishedKit解压到路径 C:\BanishedKit
2 解压资源
- 将游戏资源文件即下面的4个文件拷到 C:\BanishedKit\bin\WinData
- 解压资源。
运行BuildResources.bat
这一步容易出错。提示Assert: Sprite Sheet ‘Build\FontLargeSheet.rsc:resource’ isn’t large enough to hold all sprites.
如果弹出这个错误,关掉cmd窗口。找到FontLarge.rsc,用记事本打开,将int _sheetWidth 的值从256改到1024.然后重新解压资源。
3 mod文件修改
参考example
Package.rsc 是mod信息文件,已animal 举例
PackageFile whiteChicken mod名称,后面打包的时候要用
{
String _name = "Animal Example"; mod在游戏中显示的名称
String _author = "Shining Rock Software, LLC"; 作者
String _description = " ";
String _icon = "icon.png"; 图标
String _preview = "preview.jpg"; 预览
int _userVersion = 1; mod版本,只能使用整数?无修改必要
// all files in resource directory
String _includeList 要使用的资源?无需修改
[
"*"
]
// exclude package files, mod files, file used for building packages
String _excludeList 不使用的资源?无需修改
[
"Package_*.crs"
"*.pkg"
"*.pkm"
]
}
whiteChickenResources.rsc 说明mod使用的资源.要修改那些内容,就把C:\BanishedKit\resource中相应的文件拷到mod文件夹,修改成想要的内容,然后把文件路径写入列表中
ExternalList resource
{
External _resources
[
"Template/WhiteChicken.rsc"
]
}
4 打包mod
bin\x64\Tools-x64.exe /build whiteChickenResources.rsc /pathres ../example/animal /pathdat ../example/animal/bin
bin\x64\Tools-x64.exe /mod Package.rsc:whiteChicken /pathres ../example/animal /pathdat ../example/animal/bin
bin\x64\Tools-x64.exe /build 资源列表文件 /pathres 资源目录 /pathdat 编译路径
bin\x64\Tools-x64.exe /mod Package.rsc:mod名称 /pathres 资源目录 /pathdat 编译路径
mod名称 是前面Package.rsc 中的mod名称。
打包好的文件在C:\BanishedKit\bin\WinData中,文件是mod名称.pkm,将它拷到游戏安装目录下的WinData文件中打开游戏即可在模组中找到
4 官方说明文档
官方说明文档就是解压出来的 README.html
恋喵大鲤鱼: setting 在哪里可以打开。
不二土人: 有用有用有用有用有用有用有用有用有用
ReganYue: 分享技术,不错哦
gaohui888888: 你好 为什么在win10 cmd下运行 buildozer android debug显示i check configuration tokens unknown command /target android 谢谢
奔跑的橘子: 就喜欢看短小有用的 很赞