Difference between revisions of "MODIFY CHAR MOVE STATE"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Cleanup-rewrite}}
+
'''DAT''' is the extension used for the data files of GTA 3D series games. They are commonly text files (although there are binary ones) and have different structures.
{{IplSection
 
| name        = OCCL
 
| game        = [[GTA VC]], [[GTA SA]], [[GTA IV]]
 
| description = Creates zones for separated rendering
 
}}
 
'''Occlusion''' is a feature in Vice City and San Andreas that helps make the game run smoother in certain parts of the map. The occlusions are created using invisible boxes. These boxes disable models that are behind the boxes from rendering. This feature is not really effective and Rockstar did not use this feature efficiently. There are not much improvements on occlusions in San Andreas compared to Vice City. Deleting all entries in the occlu section does not have any major effects on the game.
 
  
==Location==
+
== List of data files ==
Occlusions are controlled by the <code>occl</code> section of the [[IPL]] files. Rockstar created the occlusions through the <code>occlu.ipl</code> in Vice City and the <code>occlu.ipl</code>, <code>occluint.ipl</code>, <code>occluLA.ipl</code>, <code>occlusf.ipl</code>, and the <code>occluveg.ipl</code> in San Andreas. You can open these files using Microsoft Notepad. You do not need to use these files to create your own occlusions as long as the entry is in a defined IPL file.
+
<!--- Perhaps we should sort this alphabetically --->
 +
{|{{Prettytable}} width="100%" class="sortable"
 +
!width="64px"| Game
 +
!width="160px"|File
 +
!Description
 +
!Notes
 +
|-
 +
|align="center"|{{Icon}}{{Ref|1}}||[[animviewer.dat]]||||
 +
|-
 +
|align="center"|{{Icon}}||[[carcols.dat]]||''Contains information about vehicle colors''||
 +
|-
 +
|align="center"|{{Icon}}||[[default.dat]]||||
 +
|-
 +
|align="center"|{{Icon}}||[[fonts.dat]]||''Contains information about the fonts used in the game''||''The fonts are split up into sprites. Fonts themselfes are located in the '' <code>...\models\fonts.txd</code> '' texture dictionary.''
 +
|-
 +
|align="center"|{{Icon}}||[[gta.dat]]||''General map listing file''||''called'' <code>gta3.dat</code> ''for [[GTA 3]] and'' <code>gta-vc.dat</code> ''for [[Vice City]]''
 +
|-
 +
|align="center"|{{Icon}}||[[object.dat]]||''Defines additional object information for dynamic objects''||
 +
|-
 +
|align="center"|{{Icon}}||[[ped.dat]]||||
 +
|-
 +
|align="center"|{{Icon}}||[[pedgrp.dat]]||||
 +
|-
 +
|align="center"|{{Icon}}||[[timecyc.dat]],<br>[[timecyc.dat|timecycp.dat]]&nbsp;(SA)||''Controls the weather and the game's appearance''||
 +
|-
 +
|align="center"|{{Icon}}||[[water.dat]]&nbsp;(all),<br>[[water.dat|water1.dat]]&nbsp;(SA),<br>[[waterpro.dat]]&nbsp;(GTA 3 & VC)||||
 +
|-
 +
|align="center"|{{Icon}}||[[weapon.dat]]||||
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|VC}} {{Icon|SA}}||[[pedstats.dat]]||||
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|VC}} {{Icon|SA}}||[[surface.dat]]||||
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|VC}}||[[cullzone.dat]],<br>[[cullzoneempty.dat]]&nbsp;(VC)||||''binary files''
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|VC}}||[[fistfite.dat]]||||
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|VC}}||[[flight.dat]]||||
 +
|-
 +
|align="center"|{{Icon|3}} {{Icon|SA}} {{Icon|4}}||[[tracks.dat|tracks*.dat]]||||''located in the'' <code>..data\paths</code> ''directory''
 +
|-
 +
|align="center"|{{Icon|3}}||[[chase.dat|chase*.dat]]||||''binary files located in the'' <code>..data\paths</code> ''directory''
 +
|-
 +
|align="center"|{{Icon|3}} ||[[train.dat]], [[train.dat|train2.dat]]||||''still present in [[Vice City]] but unused''
 +
|-
 +
|align="center"|{{Icon|VC}}||[[map.dat|map*.dat]]||||''located in the'' <code>..data\maps</code> ''directory''
 +
|-
 +
|align="center"|{{Icon|VC}}||[[Scripted Path|spath.dat]], [[Scripted Path|spath0.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[Cutscene#The_DAT-File|cutscenes data]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[animgrp.dat]], [[animgrp.dat|animgrp1.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[ar_stats.dat]]||||''still present in [[GTA 4]] but unused?''
 +
|-
 +
|align="center"|{{Icon|SA}}||[[cargrp.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[clothes.dat]]||||''still present in [[GTA 4]] but unused?''
 +
|-
 +
|align="center"|{{Icon|SA}}||[[furnitur.dat]]||||''still present in [[GTA 4]] but unused?''
 +
|-
 +
|align="center"|{{Icon|SA}}||[[gridref.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[gta.dat|gta_quick.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[melee.dat]]||||''still present in [[GTA 4]] but unused?''
 +
|-
 +
|align="center"|{{Icon|SA}}||[[numplate.dat]]||||''still present in [[GTA 4]] but unused?''
 +
|-
 +
|align="center"|{{Icon|SA}}||[[plants.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[polydensity.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[popcycle.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[procobj.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[shopping.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[statdisp.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[surfaud.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}}||[[surfinfo.dat]]||||
 +
|-
 +
|align="center"|{{Icon|SA}} {{Icon|4}}||[[carmods.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[ambient.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[bloodFx.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[cj_gta.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[credits.dat|credits*.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[distantlights.dat]]||||''binary file''
 +
|-
 +
|align="center"|{{Icon|4}}||[[entityFx.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[explosionFx.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[FemalePlayerSettings.dat]], [[MalePlayerSettings.dat]]||''Contains info necessary to render the multiplayer player''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[frontend.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[hud.dat]]||''Contains inital display settings for each HUD component''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[hudcolor.dat]]||''Contains RGB colour values that the game uses''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[loadingscreens.dat|loadingscreens*.dat]]||''Contains the animation of static loading screen images''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[materialFx.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[materials.dat]]||||
 +
|-
 +
|align="center"|{{Icon|4}}||[[meleeAnims.dat]]||''Specifies all anims available to the melee system''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[moveblend.dat]]||''Contains some parameters for blended ped animation''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[nav.dat]]||''This file is read in to initialise the "CPathServer" pathfinding class''||
 +
|-
 +
|align="center"|{{Icon|4}}||[[navprecalc.dat]]||||''binary file''
 +
|-
 +
|align="center"|{{Icon|4}}||[[networktest.dat]]||
 +
|-
 +
|align="center"|{{Icon|4}}||[[pedpersonality.dat]]||
 +
|-
 +
|align="center"|{{Icon|4}}||[[pedpopulation.dat]]||||''binary file''
 +
|-
 +
|align="center"|{{Icon|4}}||[[pedProps.dat]]||
 +
|-
 +
|align="center"|{{Icon|4}}||[[scenarios.dat]]||||
 +
|}
 +
{{Note|1}} The {{Icon}} icon marks the files that are present in every game of GTA 3D series (GTA 3, GTA VC, GTA SA and GTA IV).
 +
{{Incomplete}}
  
==Format==
+
== See also ==
''Section identifier:''
+
* [[Data Files (San Andreas)]] &ndash; description for common data files of [[San Andreas]]
occl
+
* {{Icon|SA}} [[Paths (GTA SA)|nodes*.dat]]
...
 
end
 
  
''Format of the occlu section of the IPL file:''
+
== External Link ==
mid x, mid y, bottom height z, width x, width y, height from bottom height to top, rotation
+
* {{GTAF|380874|Documenting GTA IV Data files}}
*'''mid x, mid y:''' The middle of the occlusion box in X and Y coordinates.
+
* {{GTAF|402942|(IV) Dat-Path-IO in GTA-IV script centre }} - by {{U|Gforce}}
*'''bottom height z:''' The bottom Z coordinate of the occlusion box.
+
{{GTA4-navi|state=autocollapse}}
*'''width x, width y:''' The width of the occlusion box in units.
+
{{SA-navi|state=autocollapse}}
*'''height from bottom height to top:''' The difference in height from the top of the occlusion box to the bottom.
+
[[Category:GTA 3]][[Category:GTA VC]]
*'''rotation:''' The rotation of the occlusion box in angles.
 
 
 
==Viewing It==
 
Vice City's occlusions can only be viewed through [[KEd]]. KEd sees occlusion boxes as green, transparent boxes with a small triangular hole in the 3D View. KEd does not support editing the occlusions through the program so you have to create the boxes yourself.
 
 
 
For San Andreas you can use {{U|Deniska}}'s script pack {{ref|1}} that contains an small tool to import and export the occlusion section of the [[IPL]]
 
 
 
[[Image:Occlusion.png|center|frame|Occlusion boxes in KEd]]
 
 
 
==Creating It==
 
The following way to make occlusion boxes is practiced by [[User:spaceeinstein|spaceeinstein]]. First find a building that you want to make occlusion boxes and align it to the X- and Y-axis. Get the coordinates of the lower left corner of the building and the upper right corner of the building. The coordinates for the lower left and upper right corner of the building can be inputted as X1, Y1, and Z1, and X2, Y1, and Z2, respectively, into the occlusion tool. If you are not bothered to get the lower Z coordinate of the box, you can input any number that is lower than the foundation of your building. Making the boxes with angles is pretty tough to do and probably needs some trial and error to fit it into the building.
 
 
 
Using {{U|Deniska}}'s script {{ref|1}} you need only to create a box, press the Export button on the script and paste the line from the MAXScript listener to the [[IPL]] section.
 
 
 
==Problems==
 
If you delete the buildings in Vice City or San Andreas without deleting the occlusions, you would see pop ups behind the occlusions. These occlusions had created problems for a few modifications, most notably in the Liberty City modification. In the Liberty City mod, the team experienced unexpected pop ups caused by the occlusion boxes. These boxes are loading and unloading the models behind boxes where Vice City's buildings used to be at. Someone realized that the <code>occlu.ipl</code> was the problem and deleted every line in that file. The pop ups disappeared.
 
 
 
==References==
 
* {{note|1}} {{GTAF|277798|Script pack for 3ds Max}} &ndash; by {{U|Deniska}}
 
* {{GTAF|402942|(SA and IV) Occlu-IO in GTA-IV script centre }} - by {{U|Gforce}}
 
{{N|4|SA}}
 
 
 
[[Category:Map Formats]][[Category:GTA VC]]
 

Revision as of 17:30, 6 July 2009

DAT is the extension used for the data files of GTA 3D series games. They are commonly text files (although there are binary ones) and have different structures.

List of data files

Game File Description Notes
Grand Theft Auto series[1] animviewer.dat
Grand Theft Auto series carcols.dat Contains information about vehicle colors
Grand Theft Auto series default.dat
Grand Theft Auto series fonts.dat Contains information about the fonts used in the game The fonts are split up into sprites. Fonts themselfes are located in the ...\models\fonts.txd texture dictionary.
Grand Theft Auto series gta.dat General map listing file called gta3.dat for GTA 3 and gta-vc.dat for Vice City
Grand Theft Auto series object.dat Defines additional object information for dynamic objects
Grand Theft Auto series ped.dat
Grand Theft Auto series pedgrp.dat
Grand Theft Auto series timecyc.dat,
timecycp.dat (SA)
Controls the weather and the game's appearance
Grand Theft Auto series water.dat (all),
water1.dat (SA),
waterpro.dat (GTA 3 & VC)
Grand Theft Auto series weapon.dat
GTA III Vice City San Andreas pedstats.dat
GTA III Vice City San Andreas surface.dat
GTA III Vice City cullzone.dat,
cullzoneempty.dat (VC)
binary files
GTA III Vice City fistfite.dat
GTA III Vice City flight.dat
GTA III San Andreas GTA IV tracks*.dat located in the ..data\paths directory
GTA III chase*.dat binary files located in the ..data\paths directory
GTA III train.dat, train2.dat still present in Vice City but unused
Vice City map*.dat located in the ..data\maps directory
Vice City spath.dat, spath0.dat
San Andreas cutscenes data
San Andreas animgrp.dat, animgrp1.dat
San Andreas ar_stats.dat still present in GTA 4 but unused?
San Andreas cargrp.dat
San Andreas clothes.dat still present in GTA 4 but unused?
San Andreas furnitur.dat still present in GTA 4 but unused?
San Andreas gridref.dat
San Andreas gta_quick.dat
San Andreas melee.dat still present in GTA 4 but unused?
San Andreas numplate.dat still present in GTA 4 but unused?
San Andreas plants.dat
San Andreas polydensity.dat
San Andreas popcycle.dat
San Andreas procobj.dat
San Andreas shopping.dat
San Andreas statdisp.dat
San Andreas surfaud.dat
San Andreas surfinfo.dat
San Andreas GTA IV carmods.dat
GTA IV ambient.dat
GTA IV bloodFx.dat
GTA IV cj_gta.dat
GTA IV credits*.dat
GTA IV distantlights.dat binary file
GTA IV entityFx.dat
GTA IV explosionFx.dat
GTA IV FemalePlayerSettings.dat, MalePlayerSettings.dat Contains info necessary to render the multiplayer player
GTA IV frontend.dat
GTA IV hud.dat Contains inital display settings for each HUD component
GTA IV hudcolor.dat Contains RGB colour values that the game uses
GTA IV loadingscreens*.dat Contains the animation of static loading screen images
GTA IV materialFx.dat
GTA IV materials.dat
GTA IV meleeAnims.dat Specifies all anims available to the melee system
GTA IV moveblend.dat Contains some parameters for blended ped animation
GTA IV nav.dat This file is read in to initialise the "CPathServer" pathfinding class
GTA IV navprecalc.dat binary file
GTA IV networktest.dat
GTA IV pedpersonality.dat
GTA IV pedpopulation.dat binary file
GTA IV pedProps.dat
GTA IV scenarios.dat

^ The Grand Theft Auto series icon marks the files that are present in every game of GTA 3D series (GTA 3, GTA VC, GTA SA and GTA IV). This section is incomplete. You can help by fixing and expanding it.

See also

External Link