Difference between revisions of "Item Definition"
(→ANIM) |
(→OBJS) |
||
Line 254: | Line 254: | ||
;Bounds Min: Lower Left vertex of a model bounding box | ;Bounds Min: Lower Left vertex of a model bounding box | ||
;Bounds Max: Upper Right vertex of a model bounding box | ;Bounds Max: Upper Right vertex of a model bounding box | ||
− | ;Bounds | + | ;Bounds Sphere: X,Y,Z Coords |
+ | ;Radius: Of Bounds Sphere | ||
;WDD: set to 'null' by default in procobj.ide | ;WDD: set to 'null' by default in procobj.ide | ||
Revision as of 01:13, 18 August 2009
This article may need to be rewritten. Please help improve this article. The discussion page may contain suggestions. |
IDE Sections:
|
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.
Contents
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
Identifier | Description |
---|---|
unique object ID (integer) | |
name of the .dff model file, without extension (string) | |
name of the .txd texture dictionary, without extension (string) | |
amount of sub objects, e.g. damaged parts, usually 1 (integer) - optional for SA, default 1 | |
draw distance in units, one for each sub object (float) | |
object flags, defining special behavior, default 0 (integer) |
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
Identifier | Description |
---|---|
name of the .wdr model file, without extension (string) | |
name of the .wtd texture dictionary, without extension (string) | |
draw distance in units, one for each sub object (float) | |
object flag, defining special behavior | |
object flag, defining special behavior, default 0 (integer) | |
Lower Left vertex local position of a model bounding box | |
Upper Right vertex local position of a model bounding box | |
Radius dimensions of the bounding Sphere | |
the model dictionary file that contains the LOD model for the defined Modelname |
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
Identifier | Description |
---|---|
unique object ID (integer) | |
name of the .dff model file, without extension (string) | |
name of the .txd texture dictionary, without extension (string) | |
amount of sub objects, e.g. damaged parts, usually 1 (integer) - optional for SA, default 1 | |
draw distance in units, one for each sub object (float) | |
object flags, defining special behavior, default 0 (integer) | |
activation time in game hours (integer) | |
deactivation time in game hours (integer) |
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.
Identifier | Description |
---|---|
name of the .wdr model file, without extension (string) | |
name of the .wtd texture dictionary, without extension (string) | |
draw distance in units, one for each sub object (float) | |
object flag, defining special behavior | |
object flag, defining special behavior, default 0 (integer) | |
Lower Left vertex local position of a model bounding box | |
Upper Right vertex local position of a model bounding box | |
Radius dimensions of the bounding Sphere | |
the model dictionary file that contains the LOD model for the defined Modelname | |
assumed to be hardcoded time flags |
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
GTA III and VC format:
ID, ModelName, TextureName, Threat, Behavior, AnimationType, ?, StartAnimation?, ?, ?
- Threat
- running over and shooting other peds
- Behavior
- angry/hateful/thrilled
- AnimationType
- being drunk like walk
WEAP
GTA III and VC format:
ID, ModelName, TextureName, Animation, ?, DrawDistance, ?
- Animation
- From ped.ifp, animation used to wield and shoot the weapon
CARS
GTA III and VC format:
ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, WheelID, WheelScale
Identifier | Description |
---|---|
Unique model ID | |
Name of the .dff model file, without extension | |
Name of the .txd texture dictionary, without extension | |
Type of vehicle, which includes car, boat, plane, and, for Vice City only, bike and heli. Heli and plane are used only for NPC aircrafts. | |
Name corresponding to its handling data in the handling.cfg file. | |
Name corresponding to its GXT entry, must be seven characters or less | |
Appropriate animation file mainly used on bikes | |
Class of the vehicle | |
Wheel model ID, not available for type "boat" and special for bikes | |
not available for type "boat" |
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
Particle and Environment Effects
GTA III and VC format
ID, X, Y, Z, R, G, B, U, Type, ...
- ID
- ID of the object it's assigned to (integer)
- X, Y, Z
- position of the effect, relative to the object (3 floats)
- R, G, B
- color of the effect, if available (3 integers, 0 - 255)
- U
- unknown color component, always 200 (integer)
- Type
- specifies the type of effect
Effect #0: Light
Coming soon.
Effect #1: ...
Coming soon.
Please note that the 2dfx Section is moved to the DFF Files by using R*'s custom section IDs in SA!
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
- GTAGarage: IDEditor - By Xmen
- GTAForums: (IV) IDE-IO in GTA-IV script centre - by Gforce
- FlagValue Calculator - By Aschratt - Calculates all Flagvalues (even those unknown)
External Links
- GTAForums: GTAVC IDE Definitions - topic by ODIE covering specific details of IDE files in GTA VC
- GTAForums: GTA3/VC Map File Documentation and Troubleshooting - topic by Opius covering general features of IDE files in GTA3 and GTA VC
- GTAForums: Paths Documentation for SA, VC and GTA3 - topic by REspawn detailing GTA3's paths
- ID Flagvalue Decoding Project - project to decode all missing flag values
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |