INST

From GTAModding
Jump to: navigation, search
INST (IPL section)
Short description:Used to place objects in the world
Supported games:GTA III, GTA VC, GTA SA, GTA IV
IPL Sections:
2DFX AUZO BLOK CARS CULL ENEX GRGE
INST JUMP LINK LODM MLO+ MULT OCCL
PATH PICK RTFX SLOW TCYC VNOD ZONE

INST is a section in the item placement file. It is used to place static, dynamic, time controlled and animated objects in the world. It is supported by all major PC versions of the GTA 3D series but its format differs slightly between the games.

Format

GTA III and Vice City

inst
Id, ModelName, PosX, PosY, PosZ, ScaleX, ScaleY, ScaleZ, RotX, RotY, RotZ, RotW
end
GTA III Vice City Identifier Type Description
A Id integer A number which is used to identify the object as defined in the IDE file inside the map system.
B ModelName string The name of the model inside an image file which is defined in the gta.dat file without extension (.dff)
C,D,E PosX, PosY, PosZ float[3] The position of the object in the world as floating point values.
Note: the decimal seperator must be ".", not ",".
F,G,H ScaleX, ScaleY, ScaleZ float[3] The scaling of the object as floating point values. By default each value is 1.0, which means the object is not scaled at all.
Note: the decimal seperator must be ".", not ",".
I,J,K,L RotX, RotY, RotZ, RotW float[4] The rotation of the object as quarternion.
Note: the decimal seperator must be ".", not ",".

Note that if this format is used in Vice City, the interior of the object defaults to 0.

Vice City

inst
Id, ModelName, Interior, PosX, PosY, PosZ, ScaleX, ScaleY, ScaleZ, RotX, RotY, RotZ, RotW
end
Vice City Identifier Type Description
A Id integer A number which is used to identify the object as defined in the IDE file inside the map system.
B ModelName string The name of the model inside an image file which is defined in the gta.dat file without extension (.dff)
C Interior integer A number defining the interior (render-level) the object is located in.
D,E,F PosX, PosY, PosZ float[3] The position of the object in the world as floating point values.
Note: the decimal seperator must be ".", not ",".
G,H,I ScaleX, ScaleY, ScaleZ float[3] The scaling of the object as floating point values. By default each value is 1.0, which means the object is not scaled at all.
Note: the decimal seperator must be ".", not ",".
J,K,L,M RotX, RotY, RotZ, RotW float[4] The rotation of the object as quarternion.
Note: the decimal seperator must be ".", not ",".

San Andreas

inst
Id, ModelName, Interior, PosX, PosY, PosZ, RotX, RotY, RotZ, RotW, LOD
end
San Andreas Identifier Type Description
A Id integer A number which is used to identify the object as defined in the IDE inside the map system.
B ModelName string The name of the model inside an image file which is defined in the gta.dat file without extension (.dff). The parameter doesn't seem to function in the game. Any name used will not affect the rendering of the model.
C Interior integer A number defining the interior (render-level) the object is located in.
D,E,F PosX, PosY, PosZ float[3] The position of the object in the world as floating point values.
G,H,I,J RotX, RotY, RotZ, RotW float[4] The rotation of the object as quarternion.
Note: the decimal seperator must be ".", not ",".
K LOD integer The number of the LOD which is located inside the same instance block as the current model.
By default this is -1 which means no LOD is defined.[1]

Binary Format

INST is also one of the known sections which can be used in binary format inside streaming files. Its format is similar to the plain text format:

4b  - FLOAT    - Position X
4b  - FLOAT    - Position Y
4b  - FLOAT    - Position Z
4b  - FLOAT    - Rotation X
4b  - FLOAT    - Rotation Y
4b  - FLOAT    - Rotation Z
4b  - FLOAT    - Rotation W
4b  - INT32    - Object ID (as an index to the IDE)
4b  - INT32    - Interior
4b  - INT32    - LOD index

GTA IV format

Limitations

Each game has different limitations. The most important limit for the instance section is the so-called map boundary, which is a notional boundary around the map. Outside those borders no objects will be visible. If an object is intersecting the bounds it may be displayed incorrectly.

Game Mapping Boundary
San Andreas
San Andreas has a square (or cube) as the major limit. Its dimension is 3000.0 units away from the origin point.
This limit can be increased using the SA Limit Adjuster by Sacky

Related tools

See also

External links

v · d · e
GTA IV Grand Theft Auto IV
File Formats.dat.gxt.ide.img.ipl.nod.sco.rpf.rrr.wad.wbd/.wbn.wdd.wdr.wft.whm.wpl.wtd
DocumentationAudioBink VideoCryptographyCutscenesImage listingMap ListingNative functionsPathsSavesScenariosVTableWeapons
ToolsASI LoaderENBSeriesG-TextureGIMSIV NeedleOpenIVScoclSparkIVXLiveLessWPL ManagerX Mod Installer
AliceC++ Script Hook.NET Script Hook
TutorialsImporting Textures with OpenIVImporting Textures with SparkIV
ModificationsGostown IVFour MultiplayerIV Multiplayer
Useful linksCommunity portalDiscussion forumsGTA IV Modding ForumMods on GTAGarage.com
v · d · e
San Andreas Grand Theft Auto: San Andreas
File Formats.b.col.cfg.cut.dff.dat.fxp.gxt.ide.ifp.img.iplnodes*.dat.ped.rep.rrr.scm.set.txd
DocumentationAudioCryptographyCutscenesGame memoryHandling.cfgMap ListingMission PacksOpcodesPathsReplaysSavesScriptsSound EffectsStatisticsVehicles
ToolsCLEOCollision File Editor IIENBSeriesG-ToolsIMG ToolLimit AdjusterMap EditorMod LoaderSan Andreas Audio ToolkitSanny BuilderTXD Workshop
TutorialsSan Andreas v2.0 ModdingHow to create a missionHow to create a threadHow to use Map EditorVehicle Mod Installation
ModificationsDesign Your Own MissionGostown ParadiseGTA: UnitedMyriad Islands
MultiplayergtaTournamentMulti Theft AutoSan Andreas Multiplayer(more...)
Useful linksCommunity portalDiscussion forumsMods on GTAGarage.comOpcodes database
v · d · e
Vice City Grand Theft Auto: Vice City
File Formats.adf.b.col.cfg.dff.dat.gxt.ide.ifp.img/.dir.ipl.raw/.sdt.rep.scm.txd
DocumentationAudioHandlingMap ListingOpcodesScript PathsSavesSound EffectsStatisticsVehicles
ToolsCLEOCollision File Editor IIG-ToolsGXT EditorIMG ToolLimit AdjusterKEd (map editor)Sanny BuilderTXD Workshop
TutorialsHow to create a missionHow to create a threadVehicle Mod Installation
MultiplayerGTA:LC MultiplayergtaTournamentMulti Theft AutoState Of Liberty OnlineVice City MultiplayerVice City Online
Useful linksCommunity portalDiscussion forumsMods on GTAGarage.comModding VC Mobile versionOpcodes database
v · d · e
GTA III Grand Theft Auto III
File Formats.b.col.cfg.dff.dat.gxt.ide.ifp.img.ipl.raw/.sdt.scm.txd
DocumentationAudioHandling.cfgMap ListingOpcodesPathsSavesSound EffectsStatisticsVehicles
ToolsCLEOCollision File Editor IIG-ToolsIMG ToolMap EditorSanny BuilderTXD WorkshopWater Editor
TutorialsHow to create a missionHow to create a threadHow to use Map EditorVehicle Mod Installation
MultiplayerLiberty UnleashedMulti Theft AutoMore...
Useful linksCommunity portalDiscussion forumsMods on GTAGarage.comModding GTA 3 Mobile versionOpcodes database