Difference between pages "Instance ID" and "Type Group Instance"

From SC4D Encyclopaedia
(Difference between pages)
Jump to navigation Jump to search
m (7 revisions imported)
 
sc4e>Whatevermind
(Added info, cleanup)
 
Line 1: Line 1:
The '''Instance ID''' ('''IID''') of a [[SimCity 4]] Object is the third set of eight [[hexadecimal]] alphanumeric characters making up the object's [[Type Group Instance]] (TGI) address. As an example, in the TGI "AAAAAAAA BBBBBBBB CCCCCCCC", the sequence "CCCCCCCC" is the object's IID.
+
The '''Type Group Instance''', typically abbreviated '''TGI''', is the sorting format of the Database Packed File (DBPF) archive, and is used to identify, reference, and link files within [[DBPF]] files.  A file's TGI consists of three, eight-digit [[hexadecimal]] numbers, the [[Type ID]], [[Group ID]], and [[Instance ID]], respectively. As TGI's are relatively unique to a particular object, they are the preferred method for referencing game objects, which might have multiple names in a variety of languages or naming conventions.  Additionally, objects sometimes have very similar names, making the TGI an ideal way to differentiate between the two.
  
An IID is an object's individual address within the object's type and groupFor each type and group combination, IIDs provide ''4,294,967,295'' different discrete addresses, permitting the game to have a virtually unlimited number of objects that do not conflict with each other.
+
While efforts are generally made to prevent two objects from having the same TGI, this still sometimes occurs, and can cause conflicts or bugs in the game, particularly when it happens with buildings, props, or texturesSometimes, particularly in the case of mods, it is desired to give an object the same TGI as another, so that one will override the other.  Typically, this involves creating a mod that has the same TGI as a Maxis object that came with the game, so that the custom mod will overwrite the default settings.
  
Instance ID's all follow a particular format, based on the Group they belong to.  The list of these formats is [[InstanceFormats|here]].
+
An object's TGI is commonly written in full as:
  
See also:
+
AAAAAAAA BBBBBBBB CCCCCCCC
* [[Type Group Instance]]
+
 
* [[Type ID]]
+
where "AAAAAAAA" is the Type ID, "BBBBBBBB" is the Group ID, and "CCCCCCCC" is the Instance ID.
* [[Group ID]]
+
 
* [[InstanceFormats]]
+
During certain modding operations, a [[TGI File]] may be generated.  These are not native to the game and serve no purpose in modding SC4.
  
  
 
[[Category:Modding]]
 
[[Category:Modding]]

Revision as of 21:31, 2 August 2012

The Type Group Instance, typically abbreviated TGI, is the sorting format of the Database Packed File (DBPF) archive, and is used to identify, reference, and link files within DBPF files. A file's TGI consists of three, eight-digit hexadecimal numbers, the Type ID, Group ID, and Instance ID, respectively. As TGI's are relatively unique to a particular object, they are the preferred method for referencing game objects, which might have multiple names in a variety of languages or naming conventions. Additionally, objects sometimes have very similar names, making the TGI an ideal way to differentiate between the two.

While efforts are generally made to prevent two objects from having the same TGI, this still sometimes occurs, and can cause conflicts or bugs in the game, particularly when it happens with buildings, props, or textures. Sometimes, particularly in the case of mods, it is desired to give an object the same TGI as another, so that one will override the other. Typically, this involves creating a mod that has the same TGI as a Maxis object that came with the game, so that the custom mod will overwrite the default settings.

An object's TGI is commonly written in full as:

AAAAAAAA BBBBBBBB CCCCCCCC

where "AAAAAAAA" is the Type ID, "BBBBBBBB" is the Group ID, and "CCCCCCCC" is the Instance ID.

During certain modding operations, a TGI File may be generated. These are not native to the game and serve no purpose in modding SC4.