小
页面内容被替换为“{{欢迎编辑}} == .ini文件 == UTF-8纯文本文件。游戏通过读取以<code>.ini</code>为扩展名的文件来获取具体单位的<u title="实际参数(Argument)" style="cursor: help;">参数</u>信息。其内容由节(Section)、<u title="形式参数(Parameter)" style="cursor: help;">参数</u>(Parameter)、注释(Comment)三个要素组成。 格式: <pre style="white-space:pre;overflow:auto;margin:0;padding:0;width:100%;"> #comment [section]…”
小 (→属性(property)) 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
小 (页面内容被替换为“{{欢迎编辑}} == .ini文件 == UTF-8纯文本文件。游戏通过读取以<code>.ini</code>为扩展名的文件来获取具体单位的<u title="实际参数(Argument)" style="cursor: help;">参数</u>信息。其内容由节(Section)、<u title="形式参数(Parameter)" style="cursor: help;">参数</u>(Parameter)、注释(Comment)三个要素组成。 格式: <pre style="white-space:pre;overflow:auto;margin:0;padding:0;width:100%;"> #comment [section]…”) 标签:替换 |
||
第1行:
{{欢迎编辑}}
== .ini文件 ==
UTF-8纯文本文件。游戏通过读取以<code>.ini</code>为扩展名的文件来获取具体
格式:
<pre style="white-space:pre;overflow:auto;margin:0;padding:0;width:100%;">
#comment
[section]
parameter: value
</pre>
== mod-info.txt文件 ==
UTF-8纯文本文件。游戏通过
格式:
<pre style="white-space:pre;overflow:auto;margin:0;padding:0;width:100%;">
[mod]
#
minVersion: v1.15p7
#
title: Mega Builders
#
description: Example mod which replaces builders with Mega Builders.
#
[music]
#填音乐文件夹的路径
第983行 ⟶ 第33行:
#该文件支持单行注释
"""
和
多行
注释
"""
</pre>
== all-units.template文件 ==
UTF-8纯文本文件。内容格式与<code>.ini</code>文件一致。游戏程序会识别<code>all-units.template</code>这样命名的文件,将其内容自动应用到同级及以下级的所有<code>.ini</code>文件中(效果与使用<code>core</code>节下的<code>copyFrom</code>一致)。若存在代码错误,报错不会指向其本身,而是其所应用的<code>.ini</code>文件。另外,若参数的重复赋值,下级的<code>all-units.template</code>会替换上级的<code>all-units.template</code>。
|