ZOMG ROFL XD!!!!11 Group: BUSTED!
Joined: Dec 7, 2002
**I know there's a thread about this already, but it's not a proper one, I'm hoping this one will be the permanent home for general airplane discussion.**
Lame boring intro. Since the GTA3 there have been flyable planes in the GTA Series, yes the wingless Dodo counts! But due to R* wanting a sense of realism and scale they decided to keep planes out of the city since you'd fly across the map in a short amount of time (something like 30 seconds?) at a realistic speed.
While I respect their decision to do so, I feel they've left out a fun activity we all enjoy. Even before the console release, I've stated several times that if it comes out for PC I'll make sure we have planes for IV. Now that it is out for PC and I've got it, others and I are on the path to making planes in GTA IV a reality.
=================================================
Plane info, how it works. For starters, GTA IV's coding is much like the previous version, which helped a lot. R* left over bits of coding from previous games, including airplane data which still works in the game.
Enough of the talk, let's get down to business. The single biggest factor into making a vehicle an airplane is to change the TYPE stat in the vehicle.ide file to plane instead of car. This will give the vehicle plane attributes such as being able to fly, pitch, and roll. I have yet to figure out how to apply yaw.
As with GTA SA you can simply add in the secondary handling line for the vehicle you are making a plane. This is the area where the line starts with a $ symbol near the end of the handling.dat file. Just simply copy an existing planes data line for ease and edit it as you like.
=================================================
I don't care how it works! Just give me code to fly! First off, REMEMBER TO BACK UP YOUR FILES!
Now, I know a lot of people don't want to know how to make the vehicles into planes, they just want to take advantage of our findings.
As said before, I can NOT get yaw to work, that's the lateral left and right movement, like cars normally make driving down the road. So sadly you'll need a bit of a straight away to get up to speed to take off. Once you are in the air you can roll (regular left/right buttons) and pull up or down (lean forward/backward buttons) to turn in the desired direction. Flaii posted a video in another where he seemed to be turning on the ground, so maybe he can shed some light on that subject.
Here's what I've done to get the Uranus flying.
Copy this over the URANUS lines in the handling.dat file. Line 1 (first line)
The code above is slightly different than the one used in this video, but it's basically the same thing.
=================================================
What's next? Well... hard to say! The single most immediate problem is getting control of the yaw (lateral, left/right movement of the plane). I don't know how! Hopefully some one can help with that.
The next biggest problems won't be up for review until we are able to modify the vehicles themselves and put them in game. My guess is that we may be faced with animation problems (ailerons, rudders, doors/hatches, landing gear). Beyond that I really don't know. I would think it's rather smooth sailing (or should I say flying??) after that.
So, feel free to add to the discussion! This is all to better the enjoyment of GTA IV for us all, the more minds on the subject the better.
ZOMG ROFL XD!!!!11 Group: BUSTED!
Joined: Dec 7, 2002
QUOTE (MasterK @ Dec 25 2008, 23:20)
Did someone actually try to replace the car name and model in both handling and vehicles to a plane's model?
Not exactly sure what you mean by that. There are no planes in the game that are vehicles, at least none that I know of. I have only peeked at the IMG files and it seems they aren't .dff files anymore, so using old GTA vehicles/mods definitely won't work or I'd try that. If some one finds a dodo or fighter model file in the vehicles.img file, then I'm pretty sure I could get it working with no effort.
And thanks guys, glad I could help!
@BlOoDStReAm101, pretty much. I plan on converting a BF2 plane ASAP, as it'll look GREAT in the game. Of course I can't really show that off or release it here, so I'll probably convert the Hydra or something from SA for info/example purposes.
Hopefully pinky will find his way into this thread. And hopefully he's got a plane mod planned when possible
============================================== On the subject of planes now, I have noticed a few things. There seems to be a height limit like in SA where the plane tops out and loses control, and starts to fall. This limit seems lower out at sea, although it could just be a perspective thing.
Also, the plane seems twitchy at high speeds, like in SA. The highest I got in SA before the game completely freaked out was about 1,000-1,200mph. The plane gets twitchy at what feels a little more than half that. But this of course means there's no 186mph limit on planes, which is great. Modders who want proper handling will just have to adjust the handling lines to avoid these speeds.
ZOMG ROFL XD!!!!11 Group: BUSTED!
Joined: Dec 7, 2002
QUOTE (leik oh em jeez! @ Dec 26 2008, 00:25)
What about the NPC/map object planes at the airport?
Ah, knew I forgot to mention that. I'm pretty sure those are just map objects. When you hit them their collision is just like a hitting a building, the planes don't react. If I remember right they do have retracted landing gear when in the sky... but I doubt they have any vehicle attributes such as dummies for wheel positions or ailerons, etc etc. The planes can be converted to be used as vehicles though, with a little work.
edit: Sorry to ask this here, but I figure some one can help me. Anyone have the original xlive.dll file? It's in the Rockstar Games/GTA IV directory.
This post has been edited by Picolini on Dec 26 2008, 08:10
Square Civilian Group: Members
Joined: Dec 12, 2008
when sparkIV will be able to import textures we could change the textures of a car to a plane. am i right? and thanks can't wait to try it. is it possible to do so using LUA?
"Tooled up and chibbin' ye, ya Bass". Group: Members
Joined: Jan 6, 2005
QUOTE (MasterK @ Dec 26 2008, 06:20)
Did someone actually try to replace the car name and model in both handling and vehicles to a plane's model?
Yep, ages ago with no luck.
I tried the full handling swap method that Picolini and myself have used a lot before but it fails because there is no proper aircraft model to use in the game IMG yet. DexX has discovered aircraft parts mentioned in the code of the game though so I am hoping the hierarchy is the same as SA and I will insert a scratch made plane into the IMG and try again from there. The Dodo and Andromada have handling but no models so can be added easily once we get model import and export with either Max or ZMod2 I think.
The current method used here is like the flying cars cheat from SA, same handling quirks etc.
realtime, not prerendered Group: Members
Joined: Oct 30, 2005
Nice new clean thread picolini I don't know anything about airplanes (I'm talking about all the SA stuff) I though the movement on the ground will be over the handling... But maybe its on the vehicle.ide?
is mine, but I didn't use yaw anytime. If you see the car turning it's probebly the road leaning left/right or i bumped into something and the car changed direction.
So sorry, I don't know how to turn the car on the ground.
/Flaii
This post has been edited by Flaii on Dec 26 2008, 22:39
The main protagonist. Group: Members
Joined: Oct 3, 2005
QUOTE (Picolini @ Dec 26 2008, 07:30)
QUOTE (leik oh em jeez! @ Dec 26 2008, 00:25)
What about the NPC/map object planes at the airport?
Ah, knew I forgot to mention that. I'm pretty sure those are just map objects. When you hit them their collision is just like a hitting a building, the planes don't react. If I remember right they do have retracted landing gear when in the sky... but I doubt they have any vehicle attributes such as dummies for wheel positions or ailerons, etc etc. The planes can be converted to be used as vehicles though, with a little work.
edit: Sorry to ask this here, but I figure some one can help me. Anyone have the original xlive.dll file? It's in the Rockstar Games/GTA IV directory.
Off: As far as I know, the xlive.dll isn't there originally.. The wrapper you use is just an injection, just like the the d3d8/d3d9.dll-s used in other gta's. So you just have to delete it.
ZOMG ROFL XD!!!!11 Group: BUSTED!
Joined: Dec 7, 2002
QUOTE (MasterK @ Dec 26 2008, 16:58)
QUOTE (Picolini @ Dec 26 2008, 07:30)
QUOTE (leik oh em jeez! @ Dec 26 2008, 00:25)
What about the NPC/map object planes at the airport?
Ah, knew I forgot to mention that. I'm pretty sure those are just map objects. When you hit them their collision is just like a hitting a building, the planes don't react. If I remember right they do have retracted landing gear when in the sky... but I doubt they have any vehicle attributes such as dummies for wheel positions or ailerons, etc etc. The planes can be converted to be used as vehicles though, with a little work.
edit: Sorry to ask this here, but I figure some one can help me. Anyone have the original xlive.dll file? It's in the Rockstar Games/GTA IV directory.
Off: As far as I know, the xlive.dll isn't there originally.. The wrapper you use is just an injection, just like the the d3d8/d3d9.dll-s used in other gta's. So you just have to delete it.
I figured as much when some one PMmed me saying they could only find it in their system32 folder. I replaced it in both folders and it didn't work, but I just now removed the stuff in the IV folder and replaced the one in the system32 folder and it worked
@Falii, ahh ok then. Oh well, seems like we're still SOL.
It's gotta be like pinky said, this is only really basically the flying car cheat, effects wise. The cars don't seem to be acting fully as planes. Possibly some other attributes need to be changed...