Content Packages: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
Tag: visualeditor
No edit summary
Tag: visualeditor
Line 1: Line 1:
'''Content Packages''', also referred to as '''Mods''', are a feature in ''[[Barotrauma]]'' that allow players to create their own unique XML based content in the game. This content includes enemies, weapons, items, missions, outposts, subs, jobs, and even entire new areas within the game's maps. They also allow the creator to edit certain existing game content, or disable it entirely.
= 内容包 =
'''内容包''',也称为'''Mods,'''''[[Barotrauma]]''中的一项功能,允许玩家在游戏中创建自己独特的基于XML的内容。这些内容包括敌人,武器,物品,任务,前哨站,潜艇,工作,甚至是游戏地图中的全新区域。它们还允许创建者编辑某些现有游戏内容,或完全禁用它。


Content packages are the backbone of Barotrauma's XML modular-modding system, and is generally what people mean when they refer to mods. It is not to be confused with the more niche Source Code Modding.
内容包是Barotrauma的XML模块化模组系统的支柱,通常是人们提到模组时的意思。不要将其与更利基的源代码模组混淆。
==Installation==
===Steam Workshop===
The Steam Workshop is the officially supported method of installing content packages, and the generally the easiest when it works. Content packages from the workshop will be automatically updated when new versions of packages are released, ensuring that every package installed through workshop is always up to date.


1. Open the [https://steamcommunity.com/app/602960/workshop/ Steam Workshop]. Through the Steam client, you can go to COMMUNITY > Workshop and search for "Barotrauma" in the search workshop bar to find the Barotrauma workshop.
== 内容 ==
*Opening through an internet browser also requires you to log in with your Steam account be able to use it.
2. Find your desired mod's workshop item page.


3. Click the subscribe button.
* [[Content Packages#Installation|1安装]]
*Note: Some content packages depend on other content packages in order to work, the required items are displayed right of the subscribe button.
** [[Content Packages#Steam%20Workshop|1.1蒸汽车间]]
*If you wish to install multiple content packages, find their respective pages and subscribe to them all.
** [[Content Packages#Server%20Browser%20Quick-Install%20.28.22Get%20Missing%20Packages.22.29|1.2服务器浏览器快速安装("获取丢失的软件包")]]
*The files for the content package should be automatically installed as soon as Steam is open on computers with Barotrauma installed.
** [[Content Packages#Manual%20Installation|1.3手动安装]]
**If Steam does not briefly show a download progress bar on the bottom of the window, or does not initiate a new download, try completely shutting down steam and relaunching it.
* [[Content Packages#Creation|2创造]]
4. Launch Barotrauma.
In the main menu, go to settings. On the left is a list of all the content packages available to you.
*The square tick-box next to each name allows content packages to individually be enabled and disabled, and the multiple dots on the left serve as handles to allow you to drag the mods up and down to change their load order.
**Note: Load order only matters if you are hosting a game, all client's load orders will be the same as the host's.
5. After you have enabled and ordered the mods to your liking, press Apply. If the game tells you to restart the game, do so. Afterwards, the mods should be applied.
*If you would like to check to be sure, the sub editor and character editor should show all items and creatures available respectively.
===Server Browser Quick-Install ("Get Missing Packages")===
Select content packages can also be quickly installed when joining a modded server.


1. Launch Barotrauma, and go to the server browser as usual. Find a modded server, indicated by its purple color. When you click to join, a dialogue prompt should appear asking if you want to install any uninstalled mods the server has enabled. Accept the dialogue and multiple progress bars will appear for the installation. Wait for the mods to finish downloading.
== 安装[编辑|编辑源代码] ==
* The game window should be kept in focus while the mods install, or else installation may not proceed properly.
2. The mods should enable automatically, but mods with UI changes may require a restart in order to make the UI changes appear. You will then join the selected modded server. These mods will automatically enable/disable when you join or leave the server respectively, and will continue to operate this way in the future.
===Manual Installation===
Manual installation is the less recommended method of installing Content Packages. Mods installed this way will not automatically update and will remain as they are forever.


Using [https://www.dropbox.com/s/cc2vriuwtv954yv/ExampleMod.zip?dl=0 ExampleMod] as an example content package.
=== 蒸汽工坊[编辑|编辑源代码] ===
Steam 创意工坊是官方支持的安装内容包的方法,通常也是最简单的方法。当新版本的软件包发布时,研讨会的内容包将自动更新,确保通过研讨会安装的每个软件包始终是最新的。


1. Locate the Barotrauma game folder on your computer:
1. 打开蒸汽工坊。通过 Steam 客户端,您可以前往社区>创意工坊,在搜索工坊栏中搜索"气压伤",找到气压伤工坊。
*On Windows, this path is usually <samp>/Program Files (x86)\Steam\steamapps\common\Barotrauma\</samp>


*On Linux, this path is usually <samp>~/.local/share/Steam/steamapps/common/Barotrauma/</samp>
* 通过互联网浏览器打开还需要您使用Steam帐户登录才能使用它。


*On OSX (Mac) this path is <samp>~/Library/Application Support/Steam/steamapps/common/Barotrauma/</samp>
2. 找到所需模组的创意工坊物品页面。
2. Unzip the contents into the <samp>Barotrauma/Mods<samp> folder
 
*Exact path to the mod should be <samp>Barotrauma/Mods/ExampleMod</samp>
3. 单击订阅按钮。
3. Select the content package in the game settings and restart the game if it tells you to.
 
==Creation==
* 注意:某些内容包依赖于其他内容包才能工作,所需的项目显示在订阅按钮的右侧。
{{main|Content Packages/Tutorial}}
* 如果您希望安装多个内容包,请找到它们各自的页面并订阅所有内容包。
Creating a Content Package is, at first, a daunting task, but once you understand the basics it becomes a swim through the underwater park. ''[[Barotrauma]]'' was specifically designed to be highly compatible with user modifications, and as such no special software is required (or even recommended) to make a Content Package.
* 一旦 Steam 在安装了 Barotrauma 的计算机上打开,内容包的文件就会自动安装。
** 如果 Steam 未在窗口底部短暂显示下载进度条,或者未启动新的下载,请尝试完全关闭 Steam 并重新启动。
 
4. 启动气压伤。在主菜单中,转到设置。左侧是可供您使用的所有内容包的列表。
 
* 每个名称旁边的方形复选框允许单独启用和禁用内容包,左侧的多个点用作句柄,允许您上下拖动模组以更改其加载顺序。
** 注意:加载顺序仅在您托管游戏时才重要,所有客户端的加载顺序将与主机的加载顺序相同。
 
5.启用并根据您的喜好订购模组后,按应用。如果游戏告诉您重新启动游戏,请这样做。之后,应应用模组。
 
* 如果您想检查以确保,子编辑器和角色编辑器应分别显示所有可用的物品和生物。
 
=== 服务器浏览器快速安装("获取丢失的软件包")[编辑|编辑源代码] ===
选择内容包也可以在加入修改后的服务器时快速安装。
 
1. 启动气压伤,然后像往常一样转到服务器浏览器。查找修改过的服务器,由其紫色表示。当您单击加入时,应出现一个对话框提示,询问您是否要安装服务器已启用的任何已卸载的mod。接受对话框,安装时将显示多个进度条。等待模组完成下载。
 
* 在安装模组时,游戏窗口应保持焦点,否则安装可能无法正常进行。
 
2. 模组应自动启用,但具有 UI 更改的模组可能需要重新启动才能显示 UI 更改。然后,您将加入选定的已修改服务器。当您分别加入或离开服务器时,这些模组将自动启用/禁用,并且将来将继续以这种方式运行。
 
=== 手动安装[编辑|编辑源代码] ===
手动安装是不太推荐的安装内容包的方法。以这种方式安装的Mod不会自动更新,并将永远保持原样。
 
使用示例Mod作为示例内容包。
 
1. 在计算机上找到气压伤游戏文件夹:
 
* 在 Windows 上,此路径通常为<samp>/Program Files (x86)\Steam\steamapps\common\Barotrauma\</samp>
 
* 在 Linux 上,此路径通常为<samp>~/.local/share/Steam/steamapps/common/Barotrauma/</samp>
 
* 在 OSX (Mac) 上,此路径为<samp>~/Library/Application Support/Steam/steamapps/common/Barotrauma/</samp>
 
2.将内容解压缩到<samp>Barotrauma/Mods <samp>folder</samp></samp>
 
* 模组的确切路径应为<samp>Barotrauma/Mods/ExampleMod</samp>
 
3. 在游戏设置中选择内容包,然后重新启动游戏(如果它告诉您)。
 
== 创建[编辑|编辑源代码] ==
''主条目:''[[Content Packages/Tutorial|内容包/教程]]
 
起初,创建内容包是一项艰巨的任务,但是一旦您了解了基础知识,它就会变成在水下公园游泳。''Barotrauma专门设计用于与用户修改高度兼容,因此不需要(甚至推荐)特殊软件来制作内容包。''

Revision as of 14:00, 30 December 2021

内容包

内容包,也称为Mods,Barotrauma中的一项功能,允许玩家在游戏中创建自己独特的基于XML的内容。这些内容包括敌人,武器,物品,任务,前哨站,潜艇,工作,甚至是游戏地图中的全新区域。它们还允许创建者编辑某些现有游戏内容,或完全禁用它。

内容包是Barotrauma的XML模块化模组系统的支柱,通常是人们提到模组时的意思。不要将其与更利基的源代码模组混淆。

内容

安装[编辑|编辑源代码]

蒸汽工坊[编辑|编辑源代码]

Steam 创意工坊是官方支持的安装内容包的方法,通常也是最简单的方法。当新版本的软件包发布时,研讨会的内容包将自动更新,确保通过研讨会安装的每个软件包始终是最新的。

1. 打开蒸汽工坊。通过 Steam 客户端,您可以前往社区>创意工坊,在搜索工坊栏中搜索"气压伤",找到气压伤工坊。

  • 通过互联网浏览器打开还需要您使用Steam帐户登录才能使用它。

2. 找到所需模组的创意工坊物品页面。

3. 单击订阅按钮。

  • 注意:某些内容包依赖于其他内容包才能工作,所需的项目显示在订阅按钮的右侧。
  • 如果您希望安装多个内容包,请找到它们各自的页面并订阅所有内容包。
  • 一旦 Steam 在安装了 Barotrauma 的计算机上打开,内容包的文件就会自动安装。
    • 如果 Steam 未在窗口底部短暂显示下载进度条,或者未启动新的下载,请尝试完全关闭 Steam 并重新启动。

4. 启动气压伤。在主菜单中,转到设置。左侧是可供您使用的所有内容包的列表。

  • 每个名称旁边的方形复选框允许单独启用和禁用内容包,左侧的多个点用作句柄,允许您上下拖动模组以更改其加载顺序。
    • 注意:加载顺序仅在您托管游戏时才重要,所有客户端的加载顺序将与主机的加载顺序相同。

5.启用并根据您的喜好订购模组后,按应用。如果游戏告诉您重新启动游戏,请这样做。之后,应应用模组。

  • 如果您想检查以确保,子编辑器和角色编辑器应分别显示所有可用的物品和生物。

服务器浏览器快速安装("获取丢失的软件包")[编辑|编辑源代码]

选择内容包也可以在加入修改后的服务器时快速安装。

1. 启动气压伤,然后像往常一样转到服务器浏览器。查找修改过的服务器,由其紫色表示。当您单击加入时,应出现一个对话框提示,询问您是否要安装服务器已启用的任何已卸载的mod。接受对话框,安装时将显示多个进度条。等待模组完成下载。

  • 在安装模组时,游戏窗口应保持焦点,否则安装可能无法正常进行。

2. 模组应自动启用,但具有 UI 更改的模组可能需要重新启动才能显示 UI 更改。然后,您将加入选定的已修改服务器。当您分别加入或离开服务器时,这些模组将自动启用/禁用,并且将来将继续以这种方式运行。

手动安装[编辑|编辑源代码]

手动安装是不太推荐的安装内容包的方法。以这种方式安装的Mod不会自动更新,并将永远保持原样。

使用示例Mod作为示例内容包。

1. 在计算机上找到气压伤游戏文件夹:

  • 在 Windows 上,此路径通常为/Program Files (x86)\Steam\steamapps\common\Barotrauma\
  • 在 Linux 上,此路径通常为~/.local/share/Steam/steamapps/common/Barotrauma/
  • 在 OSX (Mac) 上,此路径为~/Library/Application Support/Steam/steamapps/common/Barotrauma/

2.将内容解压缩到Barotrauma/Mods folder

  • 模组的确切路径应为Barotrauma/Mods/ExampleMod

3. 在游戏设置中选择内容包,然后重新启动游戏(如果它告诉您)。

创建[编辑|编辑源代码]

主条目:内容包/教程

起初,创建内容包是一项艰巨的任务,但是一旦您了解了基础知识,它就会变成在水下公园游泳。Barotrauma专门设计用于与用户修改高度兼容,因此不需要(甚至推荐)特殊软件来制作内容包。