教程 —— 为模组更新涂装

本教程将逐步说明如何将模组更新为使用新涂装系统。

请务必仔细注意语法,特别是括号的使用方式!

库涂装

如果你的模组里直接复制了原版车辆的某些涂装颜色,建议先前往默认的 涂装库 确认这些涂装是否已经存在,然后把对应文件里的条目改为直接引用库中的涂装。这样一来,如果将来原版涂装因为图形升级或语法调整而更新,您的模组也能自动同步这些变化。

"paints": {
  "Night Blue": {
    "baseColor": [0.04,  0.06,  0.16,  1.0],
    "clearcoat": 0.8,
    "clearcoatRoughness": 0.07,
    "metallic": 0.8,
    "roughness": 0.5
  },
  (...)
},

以前

"libraryPaints": [
  "Night Blue",
  (...)
],

以后

涂装分类

要减少车辆选择器里的涂装选项数量,可以把非原厂涂装移入“自定义”分类。

"paints": {
  "Night Blue": {
    "baseColor": [0.04,  0.06,  0.16,  1.0],
    "clearcoat": 0.8,
    "clearcoatRoughness": 0.07,
    "metallic": 0.8,
    "roughness": 0.5
  },
  (...)
},

以前

"paints": {
  "Night Blue": {
    "class": "custom",
    "baseColor": [0.04,  0.06,  0.16,  1.0],
    "clearcoat": 0.8,
    "clearcoatRoughness": 0.07,
    "metallic": 0.8,
    "roughness": 0.5
  },
  (...)
},

以后

同样的方法也可以应用到 涂装库 中的部分涂装上。

"libraryPaints": [
  "matte_black",
  (...)
],

以前

"libraryPaints": [
  { "id": "matte_black",    "class": "custom" },
  (...)
],

以后

多涂装配置

在配置的 info.json 文件里,当涉及多个涂装颜色同时使用时(比如双色调皮肤),请将 defaultPaintName1defaultPaintName2defaultPaintName3 替换成 多涂装设置 。 这样能确保在选择涂装组合时,颜色搭配能合理且正确显示。

对于原厂配置,需要在车辆的主 info.json 文件中添加多涂装设置及其对应的涂装:

"multiPaintSetups": [
  {
    "name": "Cream Two-Tone",
    "class": "factory",
    "paint1": "cream",
    "paint2": "light_brown",
    "paint3": "cream"
  },
  (...)
],

然后在对应配置的 info.json 文件中引用这些多涂装设置:

"defaultPaintName1": "cream",
"defaultPaintName2": "light_brown",
"defaultPaintName3": "cream"

引用前

"defaultMultiPaintSetup":"Cream Two-Tone"

引用后

对于自定义配置,最好直接在该配置的 info.json 文件中声明多涂装设置。
这样它就只适用于该特定配置。

"defaultPaintName1": "matte_dune",
"defaultPaintName2": "army_green",
"defaultPaintName3": "matte_black"

引用前

"defaultMultiPaintSetup":
{
  "name": "Two-Tone Adventure",
  "class": "custom",
  "paint1": "matte_dune",
  "paint2": "army_green",
  "paint3": "matte_black"
}

引用后

上一次修订: 五月 21, 2026

还有其他问题?

加入我们的 Discord 服务器
Our documentation is currently incomplete and undergoing active development. If you have any questions or feedback, please visit this forum thread.