You are viewing our Forum Archives. To view or take place in current topics click here.
GTA IV's File System Explained
Posted:

GTA IV's File System ExplainedPosted:

dhiab
  • Resident Elite
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 210
Reputation Power: 7
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 210
Reputation Power: 7
Wuddup.

The Ballad of Gay Tony Modding
Get Sublime Text
You can use Notepad in replace of Sublime Text, I'd recommend Sublime.
After Patch
In order to mod after patch you need to change a few files.

Open setup2.xml with Sublime
Rename content.dat to contenx.dat

<datfile>contenx.dat</datfile>


Now rename content.dat to contenx.dat.

Open contenx.dat with Sublime
Rename any files you will be modding:

IDE common/data/vehiclesx.ide
WEAPONINFO common/data/weap.xml
EXPLOSIONFX common/data/effects/exploFx.dat
HANDLING common/data/hand.dat
CARCOLS common/data/carc.dat
PEDGRP common/data/pedgrx.dat
CARGRP common/data/carg.dat
CARGRP common/data/carg.dat
HUDCOLOR common/data/hudcolox.dat
WEAPONFX common/data/effects/weapFx.dat
VISUALSETTINGS common/data/visualsettingx.dat


Now rename the corresponding files.

American GXT
So you want to change the text ay?
Download [ Register or Signin to view external links. ]
Open your desired .gxt in in the GXT Editor Depending on your computer, it takes a bit of time to load
For Table Name leave it on MAIN. Most things in multiplayer are located here along with LOADING and a lot more.
Sort by Value. It makes it easier to find what your looking for.
Edit:
Resized to 75% (was 804 x 560) - Click image to enlargePosted Image
[ Register or Signin to view external links. ]
Save, and replace the original.

Blood FX
This file is was used to create the Ghost Rider mod.
Open entityfx.dat with Sublime
You will see:

AMB_BUTTERFLIES                 ambient_butterflies
AMB_CIG_SMOKE_ASHTRAY   ambient_ashtray_smoke
AMB_CIG_SMOKE_ATTACHED  ambient_cig_smoke
AMB_CIG_SMOKE_CLOUDS    ambient_cig_clouds
AMB_COCKROACHES                 ambient_cockroaches
AMB_DRIPS_WATER                 ambient_water_drips
AMB_DRY_ICE                             ambient_dry_ice
AMB_DUST_LIT_WINDOWS    ambient_dust_lit_windows
AMB_FIRE_GENERIC                ambient_fire_generic
AMB_FLIES_CIRCLING              ambient_flies_circling



Open bloodfx.dat with Sublime
Scroll down till you see:

BLOODFX_ENTRY_INFO_START



Then at the far right you will see:

0.8     0.8     blood_melee_blunt               0.0



Change to:

0.8     0.8     ambient_fire_generic            0.0


Repeat this change down the file to have a constant effect.

Car Colors
I will show you how I change my car colors. Download this [ Register or Signin to view external links. ] file.

Save this image to your desktop:
[ Register or Signin to view external links. ]
That image has all the colors available from both regular GTA IV and TBOGT.

Open carc.dat with Sublime
You will find:

car3
apc,            1,1,1,

car4
slamvan         0,0,136,



There are two types of color blocks. car3 and car4.
How do you tell what is what?
car3
1st Digit = Primary Color
2nd Digit = Usually rims and accents
3rd Digit = Two Tone Color

car4 (Based off the SultanRS)
1st Digit = Primary Color
2nd Digit = Stripe
3rd Digit = Roof
4th Digit = Two Tone

To change the colors look at the image for the corresponding number.
This is an example of 3 car colors for one car:

bullet,         0,0,89, 21,74,112 29,0,74,




You can do this individually for every car, but if you want to do one color line for all the cars in that block do this in Sublime:
Go to Find Replace OR Press Ctrl+H
Then do the following:
Find what: 0,0,89,
Replace with: 0,0,89, 21,74,112 29,0,74 (Replace these numbers with your color line)
Then press Replace All.


Car Group
This file is the easiest.

Open carg.dat with Sublime
Find:

# POPCYCLE_GROUP_COPS




To make the Swift spawn at the police stations change to:

swift, # POPCYCLE_GROUP_COPS




The next line down is:

# POPCYCLE_GROUP_NETWORK




Just whatever vehicles you want like this:

rancher, fbi, rom, rebla, polpatriot, cavalcade2, pmp600, infernus, # POPCYCLE_GROUP_NETWORK




ExplosionFX
Open explofx.dat with ExplosionFX Editor
Use drop down to All Files to see a renamed explosionfx.dat

Everything in the program should be quite obvious on what it does. A few things to pay attention to:

Ragdoll Modifier:
Cam Shake:
Damage (The entire block)
Force Factor
Fires
FX Scake



Handling
I really don't mess with handling too much. This is where I use Brady's <3.
This file can be opened either with the Handling Editor or Sublime. If you are cop pasting lines, use Sublime. If you are tweaking you own, I'd use the Handling Editor. The file is pretty easy to understand in the Handling Editor and Sublime.

If anyone wants to make a detailed section for this, please pm me.

Hud
Open hud.dat with Sublime
I took a snippet of hud.dat to show you:

# -HUD ITEM NAME-               -POSITION-      -SIZE-          -COLOUR-                -ALPHA-

HUD_AREA_NAME                           0.929,0.872 0.358,0.600 HUD_COLOUR_MENU_GREEN   255
HUD_STREET_NAME                         0.929,0.912     0.358,0.600     HUD_COLOUR_BLUE 255
HUD_VEHICLE_NAME                        0.929,0.832     0.358,0.600     HUD_COLOUR_RED          255



Everything is quite obvious. If you want a different color look inside of hudcolor.dat and replace the current. If you want the color to be more transparent, change 255 to a lower number. If you want the a hud element to be bigger change the size.

Hud Color
Open hudcolox.dat with Sublime
These values are in RGB and can be changed to anything.

Changing this:

HUD_COLOUR_GREEN                0 147 69 (KEEP AS A GREEN)


To this:

HUD_COLOUR_GREEN                255 255 255 (KEEP AS A GREEN)


To make health packs white on the map.

To change the health, armor, and damage colors change these values:

HUD_COLOUR_RADAR_HEALTH         0     0       255
HUD_COLOUR_RADAR_ARMOUR         0       255      0
HUD_COLOUR_RADAR_DAMAGE         255     255     25


Material FX
WIP

Materials
WIP

Ped FX
This file is what we use to make bloody footsteps. You can change this to anything from EntityFX & BloodFX files.
Open entityfx.dat with Sublime
You will see:

AMB_BUTTERFLIES                 ambient_butterflies
AMB_CIG_SMOKE_ASHTRAY   ambient_ashtray_smoke
AMB_CIG_SMOKE_ATTACHED  ambient_cig_smoke
AMB_CIG_SMOKE_CLOUDS    ambient_cig_clouds
AMB_COCKROACHES                 ambient_cockroaches
AMB_DRIPS_WATER                 ambient_water_drips
AMB_DRY_ICE                             ambient_dry_ice
AMB_DUST_LIT_WINDOWS    ambient_dust_lit_windows
AMB_FIRE_GENERIC                ambient_fire_generic
AMB_FLIES_CIRCLING              ambient_flies_circling



Open pedfx.dat with Sublime
At the far right of the file you will see:

0.8     -                       0.3                 ped_foot_water     


Change to:

0.8     ambient_cockroaches                     0.3                 ambient_cockroaches


Repeat this change down the file to have a constant effect.

This is the effect you will get in game:
[ Register or Signin to view external links. ]

Ped Group
Open pedgrx.dat with Sublime

To change the pedestrians that spawn in multiplayer change this:

# POPCYCLE_GROUP_NETWORK
M_M_FatCop_01
M_Y_SWAT
M_M_FatCop_01



Vehicle FX
WIP

Vehicles IDE
Open vehiclesx.ide with Sublime

To make a vehicle fly change:

Type                    HandlingId
plane,                   ANDROM,



To make a vehicle freeze change:

Type            HandlingId
heli,           ANNHIL,



Want to remove that stupid flag of the patriot? Remove this:

+livery




Want SultanRS or Bullet engine sounds & backfire on any car? Change:

Game name
BULLET
SULTANRS
FUTO
DUKES



Visual Settings
Open visualsettingx.dat with Sublime

Change these values to change the Headlights and Tail Lights:

car.headlight.angle     -0.20                   
# car.headlight.color   1.00    1.00    0.80   
car.headlight.color.red 0.00                   
car.headlight.color.green       2.50                   
car.headlight.color.blue        5.50                           
                               
# car.taillight.color   1.00    0.00    0.00   
car.taillight.color.red 3.00                   
car.taillight.color.green       0.00                   
car.taillight.color.blue        9.00                   


From what I can remember the higher the number the larger the lights. Intensity has an effect on this too.

To change the color of the rain:

# rain.defaultlight     1.00    1.00    1.00
rain.defaultlight.red   0.00           
rain.defaultlight.green 5.00                   
rain.defaultlight.blue  0.00   


The rain is a bit random though.

You can play around with other values too.

Water
If you don't want water, just delete everything in water.dat and save.

To raise the water, use this line by davilex:

2999.0 -2999.0 6.0001 0.0 0.0 1.0 0.993 -2999.0 -2999.0 6.0001 0.0 0.0 1.0 0.987 2999.0 2999.0 6.0001 0.0 0.0 1.0 1.0 -1600.0 2999.0 6.0001 0.0 0.0 1.0 0.995 5 1.0


This will still allow you to get into Annihilators and drive in parts of the city.

If you want to make the water level higher change all the parts containing:

6.0001



to a higher number.
For example:

2999.0 -2999.0 7.0001 0.0 0.0 1.0 0.993 -2999.0 -2999.0 7.0001 0.0 0.0 1.0 0.987 2999.0 2999.0 7.0001 0.0 0.0 1.0 1.0 -1600.0 2999.0 7.0001 0.0 0.0 1.0 0.995 5 1.0



If you want to make the water level lower, do the same as above only lowering the number instead. Remember 0 is the default water height. Making the number a negative, will put the water level below the default but not get rid of it.
For example:

2999.0 -2999.0 -2.0001 0.0 0.0 1.0 0.993 -2999.0 -2999.0 -2.0001 0.0 0.0 1.0 0.987 2999.0 2999.0 -2.0001 0.0 0.0 1.0 1.0 -1600.0 2999.0 -2.0001 0.0 0.0 1.0 0.995 5 1.0



WeaponFX
WIP
credit goes to advent mist:)
sticky please:d

The following 1 user thanked dhiab for this useful post:

xNEP12 (08-08-2011)
#2. Posted:
dhiab
  • Resident Elite
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 210
Reputation Power: 7
Status: Offline
Joined: Aug 09, 201014Year Member
Posts: 210
Reputation Power: 7
answering any question regarding gta tbogt
#3. Posted:
iiCollaps3
  • New Member
Status: Offline
Joined: Mar 17, 201113Year Member
Posts: 33
Reputation Power: 1
Status: Offline
Joined: Mar 17, 201113Year Member
Posts: 33
Reputation Power: 1
i cant find the bloodfx.dat file please help me
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.