Difference between revisions of "OBJS"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
Line 34: Line 34:
 
List of all known flags for San Andreas:
 
List of all known flags for San Andreas:
  
{|{{Prettytable}} width="100%"
+
{|{{Prettytable}} width="100%" class="collapsible collapsed"
 
!width="25%"|Binary
 
!width="25%"|Binary
 
!width="5%"|Decimal
 
!width="5%"|Decimal

Revision as of 17:36, 29 November 2009

OBJS (IDE section)
Supported games:GTA III, GTA VC, GTA SA, GTA IV
Brief description:Used to define standard static map objects
IDE Sections:
2DFX AMAT ANIM CARS HIER HAND MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

OBJS is a section in the item definition file. It is used to define standard static map objects.

GTA III - San Andreas

Format

ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags
Identifier Description
ID
unique object ID (integer)
ModelName
name of the .dff model file, without extension (string)
TextureName
name of the .txd texture dictionary, without extension (string)
ObjectCount
amount of sub objects, e.g. damaged parts, usually 1 (integer) - optional for SA, default 1
DrawDist
draw distance in units, one for each sub object (float)
Flags
object flags, defining special behavior, default 0 (integer)

Object Flags

Object Flags in SA are text formatted UInt32-Values (Like nearly all other Flags). To understand them better you have to calculate them to binary numbers. Then You will get the Bitsets of the Flags. 1 means Enabled, 0 disabled.

List of all known flags for San Andreas:

* If there's no Interior the Texture behind the object changes to black (=> IPL | Interior-value)
** Objects needs to be activated using Object.dat
(?) Not 100 % known

To connect different flags you have to add the bit which belongs to the flag. Its the same as adding one value to another..

01 + 10 = 11
1  +  2 = 3

GTA IV

ModelName, TextureName, DrawDistance, Flag1, Flag2, (Bounds min)X,Y,Z, (Bounds max)X,Y,Z, (Bounds Sphere)X, Y, Z, Radius, WDD

Note that GTA IV does not use any unique object ID numbers

Identifier Description
ModelName
name of the .wdr model file, without extension (string)
TextureName
name of the .wtd texture dictionary, without extension (string)
DrawDistance
draw distance in units, one for each sub object (float)
Flag1
object flag, defining special behavior
Flag2
object flag, defining special behavior, default 0 (integer)
Bounds Min
Lower Left vertex local position of a model bounding box
Bounds Max
Upper Right vertex local position of a model bounding box
Radius
Radius dimensions of the bounding Sphere
WDD
the model dictionary file that contains the LOD model for the defined Modelname