IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the GTA IV Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post vehicle requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (3) [1] 2 3   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> Airplanes and GTA IV 101, Prepare for take off!
 
Picolini  
Posted: Dec 26 2008, 03:56
Quote Post


ZOMG ROFL XD!!!!11
Group Icon
Group: BUSTED!
Joined: Dec 7, 2002

us.gif

XXXXX



user posted image


**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)
CODE
URANUS 2000.0 15.0 75 0.0 0.0 0.0 0.0 1 0.30 1.0 250.0 0.5 0.60 0.7 45.0 0.95 0.85 8.0 0.10 0.5 1.2 0.7 0.7 0.20 -0.05 0.0 0.5 0.0 0.0 0.0 0.0 0.0 45000 4000000 400000 0


Line 2, add this in after the line that starts with "#$FIGHTER"
CODE
$ URANUS 1.0 2.0 0.0 -0.003 0.002 0.10 0.010 -0.0001 0.005 0.0050 0.0 0.1 1.0 1.0 0.0 0.01 0.5 0.5 0.5 0.5 0.5 0.5


Copy this over the URANUS line in the vehicles.ide file.
CODE
uranus,  uranus,  plane,  URANUS,  URANUS,  VEH@LOW, VEH@LOW_HI2_HI2, 100, 999,  0.2250, 0.2250,  0.5 1, 1.0 ,1, ext_gang+ext_strong+ext_all


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.
PM
  Top
 

 
violetblood  
Posted: Dec 26 2008, 04:01
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 18, 2007

XXXXX



awesome!
PM
  Top
 

 
BlOoDStReAm101  
Posted: Dec 26 2008, 04:12
Quote Post


[★] Communista!
Group Icon
Group: Members
Joined: May 18, 2005

eu.gif

XXXXX



Now all that's left is to actually create an airplane and being able to fly the thing. Great thread so far. Good tutorial. icon14.gif
Users WebsitePMMSNXbox Live
  Top
 

 
SaintJimmy  
Posted: Dec 26 2008, 04:16
Quote Post


disco lemonade
Group Icon
Group: Members
Joined: Sep 13, 2006

XXXXX



Excellent work on the simple instructions Pic smile.gif
PMMSNXbox LivePlayStation Network
  Top
 

 
leik oh em jeez!  
Posted: Dec 26 2008, 04:34
Quote Post


Homie
Group Icon
Group: Members
Joined: Mar 28, 2007

us.gif

XXXXX



Where's OnePiece? We need some HD SA Planes in IV.
Good to see this happening. Can't wait till we can add vehicles, and I get IV on PC... biggrin.gif
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 
MasterK  
Posted: Dec 26 2008, 05:20
Quote Post


The main protagonist.
Group Icon
Group: Members
Joined: Oct 3, 2005

hg.gif

XXXXX



Did someone actually try to replace the car name and model in both handling and vehicles to a plane's model? confused.gif
Users WebsitePMMSN
  Top
 

 
Picolini  
Posted: Dec 26 2008, 06:17
Quote Post


ZOMG ROFL XD!!!!11
Group Icon
Group: BUSTED!
Joined: Dec 7, 2002

us.gif

XXXXX



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

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 sly.gif

==============================================
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.
PM
  Top
 

 
leik oh em jeez!  
Posted: Dec 26 2008, 06:25
Quote Post


Homie
Group Icon
Group: Members
Joined: Mar 28, 2007

us.gif

XXXXX



What about the NPC/map object planes at the airport?
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 
Picolini  
Posted: Dec 26 2008, 07:30
Quote Post


ZOMG ROFL XD!!!!11
Group Icon
Group: BUSTED!
Joined: Dec 7, 2002

us.gif

XXXXX



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
PM
  Top
 

 
Dweirdo  
Posted: Dec 26 2008, 09:55
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Dec 12, 2008

XXXXX



when sparkIV will be able to import textures we could change the textures of a car biggrin.gif to a plane.
am i right? wow.gif
and thanks biggrin.gif can't wait to try it.
is it possible to do so using LUA?
PM
  Top
 

 
pinky  
Posted: Dec 26 2008, 12:11
Quote Post


"Tooled up and chibbin' ye, ya Bass".
Group Icon
Group: Members
Joined: Jan 6, 2005

sj.gif

Member Award




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

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.
PMPlayStation Network
  Top
 

 
SLAYERMAGGOT  
Posted: Dec 26 2008, 13:08
Quote Post


ComboBreaker
Group Icon
Group: Members
Joined: Mar 19, 2008

gr.gif

XXXXX



That's a great start, i think it's possible to change the model from the airplane with the uranus one, but the only problem will be the entering in it icon14.gif
Users WebsitePMMSNICQ
  Top
 

 
Jost_Vice  
Posted: Dec 26 2008, 13:25
Quote Post


realtime, not prerendered
Group Icon
Group: Members
Joined: Oct 30, 2005

es.gif

Member Award




Nice new clean thread picolini icon14.gif 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?
Users WebsitePMMSNPlayStation Network
  Top
 

 
Vasilyrud  
Posted: Dec 26 2008, 14:23
Quote Post


I'm a burglar.
Group Icon
Group: Members
Joined: Aug 10, 2008

XXXXX



I hope that the plane idea works.......
And I'm sure that it will.
PMMSN
  Top
 

 
Flaii  
Posted: Dec 26 2008, 22:37
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 21, 2008

XXXXX



Hi!

The video i posted


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
PM
  Top
 

 
Indi.  
Posted: Dec 26 2008, 22:39
Quote Post


R.I.P. MJ 1958 - 2009
Group Icon
Group: Members
Joined: Nov 22, 2008

wa.gif

XXXXX



Very cool, I'll try and find the plane model and replace the comet with the plane model (When that can be done) and then you have a plane biggrin.gif
PMMSNXbox LivePlayStation Network
  Top
 

 
MasterK  
Posted: Dec 26 2008, 22:58
Quote Post


The main protagonist.
Group Icon
Group: Members
Joined: Oct 3, 2005

hg.gif

XXXXX



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.
Users WebsitePMMSN
  Top
 

 
Jost_Vice  
Posted: Dec 26 2008, 23:04
Quote Post


realtime, not prerendered
Group Icon
Group: Members
Joined: Oct 30, 2005

es.gif

Member Award




QUOTE (Indi. @ Dec 26 2008, 23:39)
Very cool, I'll try and find the plane model and replace the comet with the plane model (When that can be done) and then you have a plane biggrin.gif

There is no plane vehicle models in this game, only the map objects from the airport (jet and the big airplane)

Really, searching for airplane files is a waste of time.
Users WebsitePMMSNPlayStation Network
  Top
 

 
Picolini  
Posted: Dec 27 2008, 00:57
Quote Post


ZOMG ROFL XD!!!!11
Group Icon
Group: BUSTED!
Joined: Dec 7, 2002

us.gif

XXXXX



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 icon14.gif

@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...
PM
  Top
 

 
goin-god  
Posted: Dec 27 2008, 03:19
Quote Post


Cookies: 3,615
Group Icon
Group: Members
Joined: Mar 18, 2007

ar.gif

XXXXX



Great. This looks very promising. wink.gif
Users WebsitePMMSN
  Top
 

 
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages: (3) [1] 2 3  Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG
     

 
     
Message Boards and Forums Directory