版本 Diff 差异对比

条目:音乐修改 · 对比历史版本与当前版本间的真实 Wikitext 差异

+39 行新增-25 行移除
历史基准版本Rev #6724
merge from offical wiki
Hstar2017-06-08 02:33:11
当前最新版本Rev #90531
当前线上生效正文
GiorgiaSistina2022-04-11 02:31:07
Wikitext 语法逐行变动
当前版本新增历史版本移除
- {{version|Timeless}}
- {{Hatnote|This page deals with music used in mods. For the music in the game, see [[soundtrack]].}}
- ==Requirements==
- First, a modder needs a music file to add to Europa Universalis 4. This may be acquired from other mods, the modder's own personal music library or from other Paradox titles. Adding music to Europa Universalis 4 won't change its checksum, so it's still possible to play on Iron-Man Mode.
+ {{version|长期有效}}
+ {{Hatnote|本页面介绍的是如何在模组中使用音乐。关于原版游戏中的音乐,参见[[soundtrack]]。}}
+ ==需求==
+ 首先,你需要一些用来加入《欧陆风云4》的音乐文件。这些音乐文件可以来自其他模组,也可以来自P社的其他作品或你的个人音乐。在《欧陆风云4》中加入音乐不会改变其校验码,所以也不会影响在铁人模式下完成成就。
- The music file must be in the .ogg format, otherwise it won't be played.
+ 加入的音乐文件必须是ogg格式,否则无法播放。且该文件应具有'''32位'''、'''44.1kHz频率'''和'''192KB/s位频率''',否则可能无法在游戏中正确播放。
- ==Music folder and .txt file==
- In the case it's for a standalone mod, the modder must create a folder name \"music\" or, in case it's for the vanilla game, the modder must go to the music folder instead.
+ ==音乐目录与支持文件==
+ 如果要直接在游戏本体中加入音乐,音乐文件需要放置在游戏根目录的名为“music”的文件夹中;如果是在模组中加入音乐,则需要在模组的根目录下新建一个music文件夹来放置音乐文件。
- Add a music file to the folder, then, open your preferred text editor and write following this style (anything inside the # is just to point out what everything means, you don't need to write that):
+ === .asset 文件 ===
+ 新建一个.asset文件(名称随意,但不能与原版文件“music.asset”重名),用记事本或其他文本软件打开,并为你想添加的每首歌曲输入以下代码:(#号之后的内容为注释,仅供读者理解每行代码的意义)
+ music = {
+ name = "songname" #你想在游戏中添加的曲目的名字,这个名字不能包含特殊字符,例如变音符号、空格或括号
+ file = "filename.ogg" #该音乐文件实际的文件名称
+ }
+ 该文件定义了新增音乐文件与游戏内新增曲目的对应关系。
+ === .txt 文件 ===
+ 新建一个文本文档(名称随意,但不能与原版文件“songs.txt”重名),以如下格式输入代码:(#号之后的内容为注释,仅供读者理解每行代码的意义)
+
song = {
- name = \"nameofyourmusic.ogg\" #nameofyourmusic stands for the name of your music file. The name cannot contain special characters, like accents, comas, spaces or parenthesis.
+ name = "nameofyourmusic" #你想在游戏中添加的曲目的名字,与.asset文件中的songname应保持一致
- chance = { #Here is the \"chance\" for the music be played on EU4, let's use, as an example, music you want to be played more to some culture group in-game.
+ chance = { #这一段定义了音乐在游戏中播放概率的权重,权重越大则音乐播放的概率越大。
modifier = {
- factor = 1 #0 would mean it would never be played, 1 means it'll always play to anyone, this is a must to the file, unless you want it to be exclusive to any of the examples below.
+ factor = 1 #在不满足以下所有条件时的默认权重,若不写此段则默认为1。
}
- #totally optional from here
- modifier = { #Music will never play to a nation whose culture isn't in the British culture group.
+ #以下都是可选段落
+ modifier = { #若当前国家不是不列颠文化组,音乐永远不会播放。
factor = 0
NOT = { culture_group = british }
}
- modifier = { #Music will play more often for nations whose culture is in the British culture group.
+ modifier = { #若当前国家是不列颠文化组,音乐播放的概率更大。
factor = 2
culture_group = british
}
- modifier = { #Music will play more often after 1500.
+ modifier = { #若年份大于1500,音乐播放的概率更大。
factor = 1.5
is_year = 1500
}
- modifier = { #Music won't be played while at war.
+ modifier = { #若当前国家处于战争中,音乐永远不会播放。
factor = 0
is_at_war = yes
}
- #End of options
+ #可选段落结束
}
- } #Remember to check if you closed your brackets, otherwise it won't work.
+ } #记得把反括号补全,不然会格式错误。
+ 该文件定义了游戏内新增曲目的参数设置。
- Add the name of each music added to the file, then name it as you like, as long as it isn't called ''songs.txt'', as that is the vanilla game's music file (unless you want to overwrite it, just make sure it's a .txt file when you save it.
- When you're finished, your music folder should have all the music you wanted to add, a music.asset file, and a .txt file with each song written there.
+ 所有的工作都完成之后,music文件夹内应该有:所有要加入的音乐文件、一个新的写入了所有音乐文件的.asset文件,以及一个新的写入了所有曲目的.txt文件。
- ==Known triggers to work==
- As shown on the example above, you can add some modifiers for the music chance, here's a brief list of triggers that can be added:
- :{{Hatnote|It isn't known which triggers will or will not work with music, this is just a list of triggers known to work.}}
+ 注:.asset文件和.txt文件必须新建,'''不能直接在原版文件中写入新内容''',否则可能无法生效。
+ ==已知生效的触发效果==
+ 如上例所示,你可以添加一些修正来影响音乐播放的概率。以下是可以添加的触发条件的简短列表:
+ :{{Hatnote|是否所有触发条件都能用在音乐语句中仍然是未知的,此处仅列出已知有效的触发条件。}}
+
* culture
* culture_group
* religion_group
* is_year
* is_at_war
* is_part_of_hre
* num_of_colonists
- * real_month_of_year ''(0 to 11, 0 being January)'' Refers to real-life time, not game time. In vanilla this is used for the Christmas music DLC.
+ * real_month_of_year '''(0至11, 0代表一月)''' 此处代表的是现实时间,而不是游戏时间。在原版中,这个逻辑用于圣诞节音乐DLC。
* has_country_modifier
* any_owned_province
** is_overseas
* government
* tag
* war_with
* owns
* technology_group
* capital_scope
** region
** continent
+ * num_of_colonists
+ * war_score
+ * overextension_percentage
+ * war_exhaustion
{{Modding navbox}}
- [[Category:Modding]]
+ [[Category:模组制作]]
+ [[en:Music modding]]