Difference between revisions of "Item schema/zh-hans"
(Created page with "{{DISPLAYTITLE:物品大纲}} {{trans}} {{hatnote|For more in-depth technical documentation pertaining to the Steam Web API and GetSchema, see WebAPI.}} The '''item schem...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:物品大纲}} | {{DISPLAYTITLE:物品大纲}} | ||
{{trans}} | {{trans}} | ||
− | {{hatnote| | + | {{hatnote|有关Steam 网页 API和 GetSchema 的详细技术文档,请参见[[WebAPI/zh-hans|网页 API]]。}} |
+ | |||
+ | '''物品大纲(item schema)'''是《军团要塞 2》的资源<!--resource-->,它定义<!--defines-->了所有现有的物品和分配给它们的属性。游戏客户端可以在界面的各种菜单中访问物品大纲,包括[[Mann Co. Store/zh-hans|曼恩公司商店]]、[[Mann Co. Catalog/zh-hans|目录]]以及玩家的[[backpack/zh-hans|背包]]。大纲中的每个物品都被描述为作为具有各种不同的 key 值的对象,分别表示它们的名称、类型、槽位、可被装备的[[classes/zh-hans|兵种]],以及其功能(如,能否使用[[Paint Can/zh-hans|油漆桶]]或{{item link|Name Tag}})。所有key值在[[WebAPI/GetSchema/zh-hans|网页API/GetSchema]]中均有详细列出。 | ||
− | |||
In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in [[WebAPI/VDF|VDF]] format for parsing by the game engine, and includes other details not in the standard schema, such as [[equip region]]s, attached weapon sounds, and [[bodygroup]]s for each item. Both versions of the item schema include definitions of all [[List of item attributes|item attributes]], [[item sets]], [[particle effects]] and item levels and ranks for [[Strange]] weapons and cosmetics. | In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in [[WebAPI/VDF|VDF]] format for parsing by the game engine, and includes other details not in the standard schema, such as [[equip region]]s, attached weapon sounds, and [[bodygroup]]s for each item. Both versions of the item schema include definitions of all [[List of item attributes|item attributes]], [[item sets]], [[particle effects]] and item levels and ranks for [[Strange]] weapons and cosmetics. | ||
Line 16: | Line 17: | ||
--> | --> | ||
== 参见 == | == 参见 == | ||
− | * '''[[WebAPI]]''' | + | * '''[[WebAPI/zh-hans|网页 API]]''' |
** [[WebAPI/GetSchema]] – technical description of the item schema as accessible via the Steam Web API | ** [[WebAPI/GetSchema]] – technical description of the item schema as accessible via the Steam Web API | ||
* [[Items/zh-hans|物品]] | * [[Items/zh-hans|物品]] | ||
Line 23: | Line 24: | ||
[[Category:WebAPI/zh-hans]] | [[Category:WebAPI/zh-hans]] | ||
− | <!-- | + | <!--除了标准项目模式外,游戏客户端提取的模式版本也称为“客户端模式”。客户端模式以VDF格式获得,供游戏引擎解析,并包括标准模式中未包含的其他详细信息,例如装备区域,附加的武器声音和每个项目的主体组。物品模式的两个版本都包含所有物品属性,物品集,粒子效果和物品等级的定义,以及怪异武器和化妆品的等级。 |
− | |||
− | |||
− | 除了标准项目模式外,游戏客户端提取的模式版本也称为“客户端模式”。客户端模式以VDF格式获得,供游戏引擎解析,并包括标准模式中未包含的其他详细信息,例如装备区域,附加的武器声音和每个项目的主体组。物品模式的两个版本都包含所有物品属性,物品集,粒子效果和物品等级的定义,以及怪异武器和化妆品的等级。 | ||
客户端架构以tf / scripts / items / items_game.txt的形式存储在客户端和服务器上。客户端和服务器在启动时会加载此架构副本。连接后,项目服务器会向客户端和服务器发送一个URL,在该URL上可以下载最新架构,然后客户端和服务器将下载并使用该URL。通过项目服务器以这种方式处理模式的后续更新。从2014年10月15日补丁开始,items_game.txt受数字签名保护,并且如果客户端和服务器被修改,则无论客户端还是服务器都不会启动。--> | 客户端架构以tf / scripts / items / items_game.txt的形式存储在客户端和服务器上。客户端和服务器在启动时会加载此架构副本。连接后,项目服务器会向客户端和服务器发送一个URL,在该URL上可以下载最新架构,然后客户端和服务器将下载并使用该URL。通过项目服务器以这种方式处理模式的后续更新。从2014年10月15日补丁开始,items_game.txt受数字签名保护,并且如果客户端和服务器被修改,则无论客户端还是服务器都不会启动。--> |
Latest revision as of 10:15, 3 July 2020
此页面正在被翻译成简体中文。 如果您能熟练地运用简体中文,请在讨论页上留言或与为此页面贡献的作者讨论(通过浏览页面历史)。 |
物品大纲(item schema)是《军团要塞 2》的资源,它定义了所有现有的物品和分配给它们的属性。游戏客户端可以在界面的各种菜单中访问物品大纲,包括曼恩公司商店、目录以及玩家的背包。大纲中的每个物品都被描述为作为具有各种不同的 key 值的对象,分别表示它们的名称、类型、槽位、可被装备的兵种,以及其功能(如,能否使用油漆桶或名称标签)。所有key值在网页API/GetSchema中均有详细列出。
In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in VDF format for parsing by the game engine, and includes other details not in the standard schema, such as equip regions, attached weapon sounds, and bodygroups for each item. Both versions of the item schema include definitions of all item attributes, item sets, particle effects and item levels and ranks for Strange weapons and cosmetics.
The client schema is stored locally on both the client and the server as tf/scripts/items/items_game.txt. The client and server load this copy of the schema on startup. Once connected, the item server sends the client and server a URL where the most recent schema can be downloaded, which the client and server then download and use. Subsequent updates to the schema are handled through the item server in this way. As of the 2014年10月15日补丁, items_game.txt is protected by a digital signature and neither the client nor the server will start up if it has been modified.
参见
- 网页 API
- WebAPI/GetSchema – technical description of the item schema as accessible via the Steam Web API
- 物品