Difference between revisions of "Item schema"

From Team Fortress Wiki
Jump to: navigation, search
(reword and add new part about items_game)
m (External links: updated links)
Line 19: Line 19:
  
 
== External links ==
 
== External links ==
* [http://git.optf2.com/schema-tracking/ OPTF2 Schema Tracker]
+
* [http://git.optf2.com/schema-tracking/ OPTF2 Schema Tracker for several Steam games]
** Latest version of [http://git.optf2.com/schema-tracking/plain/Team%20Fortress%202%20Schema Team Fortress 2 Schema]
+
* [http://git.optf2.com/schema-tracking/tree/?h=teamfortress2 Team Fortress 2 Schema]
** Latest version of [http://git.optf2.com/schema-tracking/plain/Team%20Fortress%202%20Client%20Schema Team Fortress 2 Client Schema]
+
** Latest version of [http://git.optf2.com/schema-tracking/tree/Team%20Fortress%202%20Schema?h=teamfortress2 Team Fortress 2 Schema]
 +
** Latest version of [http://git.optf2.com/schema-tracking/tree/Team%20Fortress%202%20Client%20Schema?h=teamfortress2 Team Fortress 2 Client Schema]
 +
** [http://git.optf2.com/schema-tracking/log/?h=teamfortress2 Diffs beetween Team Fortress 2 versions]
 +
* [http://git.optf2.com/schema-tracking/tree/?h=teamfortress2beta Team Fortress 2 Beta Schema]
 +
** Latest version of [http://git.optf2.com/schema-tracking/tree/Team%20Fortress%202%20Beta%20Schema?h=teamfortress2beta Team Fortress 2 Beta Schema]
 +
** Latest version of [http://git.optf2.com/schema-tracking/tree/Team%20Fortress%202%20Beta%20Client%20Schema?h=teamfortress2beta Team Fortress 2 Beta Client Schema]
 +
** [http://git.optf2.com/schema-tracking/log/?h=teamfortress2beta Diffs beetween Team Fortress 2 Beta versions]
  
 
[[Category:Items]]
 
[[Category:Items]]
 
[[Category:WebAPI]]
 
[[Category:WebAPI]]

Revision as of 11:32, 21 May 2012

For more in-depth technical documentation pertaining to the Steam Web API and GetSchema, see WebAPI.

The item schema is a resource in Team Fortress 2 that defines all existing items and the attributes assigned to them. The item schema is accessed by the game client in various menus of the interface, including the Mann Co. Store, Catalog and the player's backpack. Each item in the schema is maintained as an object with varying key-value pairs denoting its name, its type and slot, classes that can equip it, and its capabilities (such as, whether it can be used with a Paint Can or Name Tag). All values are listed in detail at WebAPI/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 the Spirit Of Giving miscellaneous item.

Before the item schema was accessible via the WebAPI, it was stored locally in VDF format in each game installation as items_game.txt (in team fortress 2 content.gcf/tf/scripts/). items_game.txt is still kept, however, its only purpose is to enable users to override definitions from the WebAPI schema.

Item schema updates

See also: Patches

All updates to the item schemas for Team Fortress 2 and Team Fortress 2 Beta are kept in the OPTF2 Schema Tracker, a Git repository. Previous versions and changes in updates are viewable as diffs.

See also

External links