GTAGaming Forums

GTAGaming Forums (http://www.gtagaming.com/forums/index.php)
-   Grand Theft Auto IV Mods (http://www.gtagaming.com/forums/forumdisplay.php?f=318)
-   -   How to: create your own GTA IV PC mods! (http://www.gtagaming.com/forums/showthread.php?t=111501)

rappo 12-05-2008 11:01 PM

How to: create your own GTA IV PC mods!
 
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:
  1. Download aru's File Modding Ability Patch - 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).
  2. 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.
  3. Right click the handling.dat file, choose Properties, and make sure that Read-Only is unchecked.
  4. Open the handling.dat file in a text editor like Notepad. Find the line that begins with COMET, it will look something like this:
    Code:

    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.
  5. 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.
  6. Change the first value on both the TAXI and TAXI2 lines from 1450.0 to 99999.0, therefore making your lines like this:
    Code:

    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

  7. 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:


Watch in high quality


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 04: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 04:29 AM

It seems to be hard to make changes,I'm gonna try it...

rappo 12-06-2008 10:48 AM

Quote:

Originally Posted by JinxyBoi (Post 1913911)
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 05:44 AM

Camera mod?
 
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 03:54 AM

I looked at the handling.dat file and noticed that there are two vehicles possibly quoted out.

Code:

#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
Code:

#$        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 12: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 01: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 10:11 PM

Quote:

Originally Posted by Phnx (Post 1915076)
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-10-2008 11:38 PM

Cameras would most likely be a script mod, which isn't an option right now.

Adam2kl4u 12-14-2008 04:15 AM

2 Attachment(s)
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 12: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 01: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 02: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 11:50 AM

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/
Quote:

...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?


All times are GMT -6. The time now is 08:52 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.