PDA

View Full Version : How to: create your own GTA IV PC mods!


rappo
12-06-2008, 12:01 AM
Only a couple days into the release and modders are already at it! I've test out this method and it works perfectly on my system, which is the retail copy of GTA IV (not Steam). Here's how to mod the game:

Download aru's File Modding Ability Patch (http://www.gtaforums.com/index.php?showtopic=3801 02&st=0&#entry1058714807) - this is a small, but powerful tool, because it will basically trick your game into thinking that all the files are original (GTA IV won't run unless the original files are running).
Figure out what you want to mod and locate the file. For this simple example, I made a fast and powerful taxi, which is just a modification of the handling.dat file, which is located at GTA IV\common\data.handling.dat.
Right click the handling.dat file, choose Properties, and make sure that Read-Only is unchecked.
Open the handling.dat file in a text editor like Notepad. Find the line that begins with COMET, it will look something like this:
COMET 1450.0 6.5 85 0.0 0.0 -0.21 0.2 5 0.24 1.0 160.0 0.34 0.66 0.7 35.0 1.50 1.25 12.5 0.12 0.48 2.4 1.6 1.8 0.10 -0.15 0.0 0.5 1.0 1.0 0.6 1.5 0.0 60000 40440010 1 1
Copy the whole line.
Find the lines that begin with TAXI and TAXI2. Delete these two lines, and in their place insert the COMET line twice. Change the first pasted COMET line to TAXI, and the second to TAXI2. What we basically did here was give the Taxis the same properties as the Comet.
Change the first value on both the TAXI and TAXI2 lines from 1450.0 to 99999.0, therefore making your lines like this:
TAXI 99999.0 6.5 85 0.0 0.0 -0.21 0.2 5 0.24 1.0 160.0 0.34 0.66 0.7 35.0 1.50 1.25 12.5 0.12 0.48 2.4 1.6 1.8 0.10 -0.15 0.0 0.5 1.0 1.0 0.6 1.5 0.0 60000 40440010 1 1
TAXI2 99999.0 6.5 85 0.0 0.0 -0.21 0.2 5 0.24 1.0 160.0 0.34 0.66 0.7 35.0 1.50 1.25 12.5 0.12 0.48 2.4 1.6 1.8 0.10 -0.15 0.0 0.5 1.0 1.0 0.6 1.5 0.0 60000 40440010 1 1
Save the handling.dat file, close it, and run GTA IV. Find a Taxi and you should notice that it's a lot more powerful than before!


And that's it. Here's a video of the mod running:

CXkuw3L5tXY

This was a silly little example, but the main thing to get out of this is that Modding Ability Patch - without it your file edits are useless! Be sure to share anything that you whip up :)

JinxyBoi
12-06-2008, 05:16 AM
oi, these handling mods don't carry over to mmultiplayer do they? I don't wanna see a bunch of unstoppable taxis running around. =/

behzad_sol
12-06-2008, 05:29 AM
It seems to be hard to make changes,I'm gonna try it...

rappo
12-06-2008, 11:48 AM
oi, these handling mods don't carry over to mmultiplayer do they? I don't wanna see a bunch of unstoppable taxis running around. =/
I don't think they will. I know that opium_addict's injector, one of the file modding patches out there, doesn't let you, but I'm not sure about the patch that I linked to in the beginning of this tutorial,

Phnx
12-08-2008, 06:44 AM
Is it possible to change the camera "on foot" and "in the car", so that it is centered behind Niko on foot and centered behind THE CAR when you're driving and not centered behind Niko while in a car?! :confused:

Erika_
12-10-2008, 04:54 AM
I looked at the handling.dat file and noticed that there are two vehicles possibly quoted out.

#SWAT 2500.0 2.0 80 0.0 0.0 -0.3 0.5 5 0.20 1.0 160.0 0.5 0.50 0.7 35.0 0.95 0.75 10.0 0.15 0.5 1.5 1.3 1.0 0.20 -0.20 0.0 0.5 1.0 1.0 0.8 1.5 0.25 40000 8 300000 2

#$ FIGHTER 0.5 2.0 0.0 -0.003 0.002 0.10 0.03 -0.002 0.003 0.0020 0.0 0.1 1.0 1.0 0.0 0.01 0.5 0.5 0.5 0.5 0.5 0.5

I wonder what they are.

rappo
12-10-2008, 01:29 PM
Yeah I saw those and wondered the same. SWAT is fairly intuitive but I don't know what the FIGHTER could have been. Also, if you have a peek into the weapon configuration files there are two commented lines, one for a flamethrower and another for a camera. I'm not sure if this info was just copied and pasted from San Andreas and then commented, but if they took out an originally planned flamethrower... well, that sucks.

Erika_
12-10-2008, 02:13 PM
I think they're related to SA, I saw another file before that was entirely dedicated to SA, it's called statdisp.dat, there are skills and such, gambling skill, fat, stamina, etc.

And even though they didn't make a flamethrower, I'm pretty sure someone will eventually do it as a mod.

Nite
12-10-2008, 11:11 PM
Is it possible to change the camera "on foot" and "in the car", so that it is centered behind Niko on foot and centered behind THE CAR when you're driving and not centered behind Niko while in a car?! :confused:

I'd like to know this as well, I thought that was kinda strange :/

rappo
12-11-2008, 12:38 AM
Cameras would most likely be a script mod, which isn't an option right now.

Adam2kl4u
12-14-2008, 05:15 AM
If i wanted to lower a car for example a sentinel and make the wheels a bit bigger can some one tell me what I would need to edit please :D

test

Can anyone see a difference despite the fact the camera is a lil off.

rappo
12-14-2008, 01:36 PM
Well, the weather is a litlte different... what were you trying to change?

Edit: oh I see you were aiming for bigger wheels... well, no I don't see a difference sorry :P

daniel1919
12-14-2008, 02:26 PM
the car is longer??(maybe is because u moved the camera a bit),also there is no window on the left door ??

Adam2kl4u
12-15-2008, 03:38 AM
After abit of looking at both pictures the only difference i see in my 2 photos is that the back tire is kind of under the panel in "bit bigger" but looks like my little test failed to find out what i should change to make the wheels bigger. Oh well lol.

Splint
12-16-2008, 12:50 PM
Yo, I got a question regarding editing advanced vehicle statistics, such as deformation resistance and these kind of settings. Basically I just can't seem to find the right file where these things are stored. Just like in SA, I started by checking handling.dat out but no luck. :facepalm: I know it's possible as I took it from here: http://www.gta4.net/vehicles/ ...All data is taken straight from game files.
So, it does exist but I have no idea where.

Could any of you help me out?

rappo
12-16-2008, 07:04 PM
Those values are stored in the handling.dat file (in the \common\data folder). You can edit the file with a text editor like Notepad or with a specific tool like this one: http://www.gtagaming.com/forums/showthread.php?t=1 11819. The tutorial I posted in the first post of this thread is about how to edit your handling.dat file.

Splint
12-21-2008, 11:35 AM
Indeed, they are stored in handling.dat. I was so blind lol :facepalm: I should've spent more time looking for those settings. Also, thanks for the link, much appreciated!

GTA^^IV
01-22-2009, 08:51 AM
Nice

Tomadz
01-31-2009, 09:05 AM
if you have forgotten that back-up saw use this:

TAXI 1900.0 5.0 85 0.0 0.0 -0.12 0.0 5 0.15 1.0 135.0 0.2 0.65 0.7 35.0 1.2 0.95 14.5 0.15 0.48 1.5 0.9 0.9 0.14 -0.18 0.0 0.5 1.0 1.0 0.8 1.5 0.0 25000 440000 0 0

TAXI2 1900.0 5.0 85 0.0 0.07 -0.21 0.0 5 0.15 1.0 135.0 0.2 0.65 0.7 35.0 1.25 1.05 13.5 0.15 0.48 1.6 1.1 1.1 0.14 -0.16 0.0 0.5 1.0 1.0 0.8 1.5 0.0 25000 440000 0 0