Item Definition: Difference between revisions

m (→‎External links: renaming category,)
m (clean up,)
Line 1: Line 1:
{{Cleanup-rewrite}}
{{cleanup}}
{{IdeSection
{{IdeSection
| noheader = 1
| noheader = 1
Line 19: Line 19:
  ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags
  ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 42: Line 42:
Note that GTA IV does not use any unique object ID numbers
Note that GTA IV does not use any unique object ID numbers


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 71: Line 71:
  ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags, TimeOn, TimeOff
  ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags, TimeOn, TimeOff


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 98: Line 98:
Note that GTA IV does not use any unique object ID numbers.
Note that GTA IV does not use any unique object ID numbers.


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 145: Line 145:
  ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass
  ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 167: Line 167:
  ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass, StartAnimation?, Radio1, Radio2
  ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass, StartAnimation?, Radio1, Radio2


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 207: Line 207:
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 252: Line 252:
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, LODModel
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, LODModel


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 312: Line 312:
  ID, X, Y, Z, R, G, B, unknown (0 or 200), 1, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust
  ID, X, Y, Z, R, G, B, unknown (0 or 200), 1, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 348: Line 348:
  ID, X, Y, Z, R, G, B, unknown (63 or 200), 2, Particle, unk1, unk2, unk3, Size
  ID, X, Y, Z, R, G, B, unknown (63 or 200), 2, Particle, unk1, unk2, unk3, Size


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 366: Line 366:
  ID, X, Y, Z, R, G, B, unknown (200), 3, Behavior, unk1, unk2, unk3, RotX, RotY, RotZ
  ID, X, Y, Z, R, G, B, unknown (200), 3, Behavior, unk1, unk2, unk3, RotX, RotY, RotZ


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 386: Line 386:
  ID, X, Y, Z, R, G, B, unknown (120), 4
  ID, X, Y, Z, R, G, B, unknown (120), 4


{|{{subst:Prettytable}} width="100%" class="collapsible collapsed"
{|class="prettytable" width="100%" class="collapsible collapsed"
!width="250px"|Identifier
!width="250px"|Identifier
!Description
!Description
Line 439: Line 439:
==Tools==
==Tools==
* {{GTAG|4817|IDEditor}} - By {{U|Xmen}}
* {{GTAG|4817|IDEditor}} - By {{U|Xmen}}
* {{GTAF|402942|IDE-IV in GTA-IV script centre }} - by {{U|Gforce}}
* - by {{U|Gforce}}
* [http://www.aschratt.com/fileview.php?file=1004 FlagValue Calculator] - By {{U|Aschratt}} - Calculates all Flagvalues (even those unknown)
* [http://www.aschratt.com/fileview.php?file=1004 FlagValue Calculator] - By {{U|Aschratt}} - Calculates all Flagvalues (even those unknown)


==External links==
==External links==
* {{GTAF|102833|GTAVC IDE Definitions}} - topic by {{U|ODIE}} covering specific details of IDE files in GTA VC
* {{GTAF|118193|GTA3/VC Map File Documentation and Troubleshooting}} - topic by {{U|Opius}} covering general features of IDE files in GTA3 and GTA VC
* {{GTAF|93990|Paths Documentation for SA, VC and GTA3}} - topic by {{U|REspawn}} detailing GTA3's paths
* [http://gta-worldmods.t-n-network.de/forum/thread.php?threadid=3382 ID Flagvalue Decoding Project] - project to decode all missing flag values
* [http://gta-worldmods.t-n-network.de/forum/thread.php?threadid=3382 ID Flagvalue Decoding Project] - project to decode all missing flag values



Revision as of 20:14, 23 January 2010

Item Definition
IDE Sections:
2DFX AMAT ANIM CARS HIER MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

Item definition files, known by the extension .ide, are usually used to assign a model and texture file to a unique object ID, along with many parameters depending on the section. These files are in human readable text format, and allow the # character to comment lines out. IDE files can easily be opened and edited using any text-editing program like Notepad.

Structure

The .ide files are split up into many sections. How many of them you use in your file is optional, they can even be empty. Each section starts with a section identifier and ends with the keyword "end", both in a single line.

Example:

objs
...
end

OBJS

Used to define standard static map objects.

GTA III, VC and SA format

ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags

GTA IV format

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

TOBJ

Used to define timed map objects. All but the last two columns are the same as the OBJS section.

GTA III, VC and SA format:

ID, ModelName, TextureName, ObjectCount, DrawDist, [DrawDist2, ...], Flags, TimeOn, TimeOff

GTA IV format

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

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

ANIM

Animated Map Objects, used to define objects whose sub objects are animated. Note: There must be animation frames for each sub object, also the collision model remains static - no solid animations.

GTA SA only:

ID, ModelName, TextureName, AnimName, DrawDist, Flags
ID, ModelName, TextureName, DrawDist, Flags
same as for the OBJS section
AnimName
name of the animation archive, without extension (string)

GTA IV format

ModelName, TextureName, Wad, DrawDist, Flag1, Flag2, (Bounds min)X,Y,Z, (Bounds max)X,Y,Z, (Bounds Sphere)X,Y,Z, Radius, WDD
ModelName, TextureName, DrawDistance, Flags, Bounds min, Bounds max, Bounds Sphere X,Y,Z, Radius, WDD
same as for the OBJS section
Wad
name of the (.wad) animation archive, without extension (string)

PEDS

Used to define characters and pedestrians

GTA III format:

ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass

Vice City format

ID, ModelName, TxdName, Threat, Behavior, AnimationType, VehClass, StartAnimation?, Radio1, Radio2

WEAP

GTA III and VC format:

ID, ModelName, TextureName, Animation, ?, DrawDistance, ?
Animation
From ped.ifp, animation used to wield and shoot the weapon

CARS

Used to define vehicles

GTA III formats

Car

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, WheelID, WheelScale

Boat and Train

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules

Plane

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel

Vice City formats

Car

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, WheelID, WheelScale

Bike

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, Unknown, WheelScale

Boat and Heli

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules

Plane

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, LODModel

SA Format comming soon

HIER

SA Format only

This is (e.g.) used in default.ide in the 'data\'-folder Normal structure is like this:

 ID, model, texture, null, float (normally 2000.00)

The meaning of these lines isn't known yet, but it seems to be a kind of bodyparts for the player.

TXDP

Texture Archive Parent

SA and GTA 4 format

TextureName, TextureParentName

Both parameters are names of texture archives (.txd). The second archive (the "parent") virtually extends the first one. Practically, the game looks up a texture in the primary archive, and if it's not there and a parent txd has been assigned, it checks for the texture in the parent archive. This way shared archives can be created, which contain often used textures, without the need to create duplicates or split up a model just for that purpose.

2DFX

Used to place lights, particles, and ped behaviors on objects

GTA III and VC format

Type 0: Lights

ID, X, Y, Z, R, G, B, unknown (0 or 200), 1, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Wet, Flare, Dust

Type 1: Particle

ID, X, Y, Z, R, G, B, unknown (63 or 200), 2, Particle, unk1, unk2, unk3, Size

Type 3: Peds (Vice City only)

ID, X, Y, Z, R, G, B, unknown (200), 3, Behavior, unk1, unk2, unk3, RotX, RotY, RotZ

Type 4: Sun Reflections (Vice City only)

ID, X, Y, Z, R, G, B, unknown (120), 4

Please note that the 2dfx Section is moved to the DFF Files by using R*'s custom section IDs in SA!

Please also note that the 2dfx Lights Section is present within GTA-IV WDR map models

PATH

Ped and Car Paths, defines paths relative to the objects. Only used in GTA III, quite complicated format and hardly usable without a editing program (such as Ked).

TREE

GTA4 only

TANM

GTA4 only

MLO

GTA4 only

AMAT

GTA4 only

Modelname, Flag1, Flag2

Procobj.ide

OBJS

GTA IV format

ModelName, TextureName, DrawDistance, Flag1, Flag2, (Bounds min)X, Y, Z, (Bounds max)X, Y, Z, (Bounds Sphere)X,Y,Z, Radius, WDD
ModelName
name of the .wdr model file, without extension (string)
TextureName
set to 'null' by default in procobj.ide
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 of a model bounding box
Bounds Max
Upper Right vertex of a model bounding box
Bounds Sphere
X,Y,Z Coords
Radius
Of Bounds Sphere
WDD
set to 'null' by default in procobj.ide

Tools

External links

Copyrighted

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

GNU Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
See Grand Theft Wiki:Copyright for more information.