编辑“宗族模组制作

警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
{{version|Timeless}}{{需要翻译}}
{{version|Timeless}}
A new feature of Crusader Kings 3 are the improved dynasties, which can be composed by a limitless number of houses. Dynasty modding gives the opportunity to create new dynasties.
A new feature of Crusader Kings 3 are the improved dynasties, which can be composed by a limitless number of houses. Dynasty modding gives the opportunity to create new dynasties.
It's also possible to change name, coat of arms and houses of any existing dynasty.
It's also possible to change name, coat of arms and houses of any existing dynasty.
第6行: 第6行:
A new dynasty is created by adding files to four folders.
A new dynasty is created by adding files to four folders.


创建一个新宗族需要向四个文件夹中添加文件。
The first change is applied by adding a new file ''example-dynasty.txt'' to the folder ''common/dynasties'' of the mod folder. In the file an id is assigned to the new dynasty, for example 2100001. Then lines are added for culture and name. The nsme line doesn't contain the name, but instead the path in the localisation file. It should look like this when finished:
 
The first change is applied by adding a new file ''example-dynasty.txt'' to the folder ''common/dynasties'' of the mod folder. In the file an id is assigned to the new dynasty, for example 2100001. Then lines are added for culture and name. The name line doesn't contain the name, but instead the path in the localisation file. It should look like this when finished:
 
首先需要在mod文件夹下的目录''common/dynasties'' 下创建新的''example-dynasty.txt'' 文件。在这个文件中每个id被分配给一个新的宗族,譬如说2100001。然后是文化和名称的行。名称那一行里面包含的不是(宗族的)名字,而是本地化文件中的路径。它完成的时候看起来应该是这个样子的:


<pre>
<pre>
第20行: 第16行:
</pre>
</pre>


The prefix only adds the "de" before the name and is already included in the original localisation files. There are several prefixes for different cultures.
The prefix only adds the "de" before the name and is already included in the original localisation files. There are several prefixes for different cultures.<br>
 
前缀(prefix)仅仅是在名字前面加“de”并且已经包含在初始的本地化文件中了。不同文化有好几种前缀。


The second change is made in the folder ''localization/german/dynasties'' either to a copy of the original ''dynasty_names_I_german.yml'' or an empty ''example_dynasty_names_german.yml''. The same path applies for other languages, only the name of the file changes as well as the folder following ''common/localization''. In this file, the real name of the dynasty is added.
The second change is made in the folder ''common/localization/german/dynasties'' either to a copy of the original ''dynasty_names_I_german.yml'' or an empty ''example_dynasty_names_german.yml''. The same path applies for other languages, only the name of the file changes as well as the folder following ''common/localization''. In this file, the real name of the dynasty is added.<br>
 
其次是在''localization/german/dynasties''文件夹中添加初始的的''dynasty_names_I_german.yml'' 拷贝或者一个空的''example_dynasty_names_german.yml''文件。同样的路径也适用于其他语言,只有文件名和''common/localization''文件夹有变化。在这个文件中,添加宗族真正的名字。
 
(他这个例子举的是德语的,其实你打开原版游戏目录里面的''common/localization''文件夹就晓得了,“本地化”页面里面会详细讲。本地化格式如下所示:)<br>


<pre>
<pre>
dynn_Lyon:0 "Lyon"
dynn_Lyon:0 "Lyon"
</pre>
</pre>
== Prefixes ==
To see a list of existing prefixes, see <code>localization/english/dynasty_names_l_english.yml</code> (or the version for your language). They are at the top of the file, starting with <code>dynnp_</code>.
To add a new prefix, simply add it to your customised dynasties file, or (if you have a lot), create a new file, such as <code>dynasty_prefixes_l_english.yml</code>.
Note that you need to leave a space in the localization string if there is supposed to be a space in the resulting text. For example:
<pre>
# In localization/english/my_dynasty_names_l_english.yml
dynnp_de:0 "de " # Space after de
dynnp_d-:0 "d'" # No space after d'
# In common/dynasties/my_dynasties.txt
200001 = {
  prefix = dynnp_de
  name = dynn_Lyon
}
200002 = {
  prefix = dynnp_d-
  name = dynn_Oeuvre
}
</pre>
Results in:
* '''de Lyon'''
* '''d'Oeuvre'''
== Coat of arms ==
:''Main article: [[Coat of arms modding]]''


The next change is made in ''common/coat_of_arms/coat_of_arms'' to the ''90_dynasties.txt'' or the empty new file. Here is added the description of the coat of arms. Here any existing or new one can be pasted. The example uses the coat of arms of the county of Saarbrücken in Lotharingia.
The next change is made in ''common/coat_of_arms/coat_of_arms'' to the ''90_dynasties.txt'' or the empty new file. Here is added the description of the coat of arms. Here any existing or new one can be pasted. The example uses the coat of arms of the county of Saarbrücken in Lotharingia.
第79行: 第40行:
</pre>
</pre>


== Motto ==
Finally, the founding house needs to be assigned in a text file in ''common/dynasty_houses''. 
Mottos can be added to dynasties or to houses (or both):
 
<pre>
2100001 = {
prefix = "dynnp_de"
name = "dynn_Lyon"
culture = "french"
motto = "dynn_Lyon_motto"
}
</pre>
 
You will then need to [[Localization|localize]] the motto.
 
== House ==
Finally, the founding house can be assigned in a text file in ''common/dynasty_houses''. If you choose not to do this, the game will create a founding house using details from the dynasty.


<pre>
<pre>
第106行: 第52行:
When every step is done, the final result ingame should look like this:
When every step is done, the final result ingame should look like this:
[[File:Modded Lyon-Dynasty.jpg|thumb|left|border]]
[[File:Modded Lyon-Dynasty.jpg|thumb|left|border]]


{{Modding navbox}}
{{Modding navbox}}
[[Category:模组制作]]
[[Category:模组制作]]
[[en:Dynasties modding]]
[[en:Dynasties modding]]
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在十字军之王3百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

为防止机器编辑,请完成下方验证

取消 编辑帮助(在新窗口中打开)