Jump to content
Sign in to follow this  
Stang

Aircraft Max Speed Help Please

Recommended Posts

Hi Guys

Please excuse the "noob" question here but I have searched the forums and haven't exactly found what I'm looking for yet.

Here's my question:

I would like to be able to "limit the top speed" of several different aircraft in a mission MOD I'm building, to make it more realistic and balance game play.

Is this possible?

If so, please let me know how and or what utilities or tools I may need to do this.

Thanks for the help in advance

Stang out

Share this post


Link to post
Share on other sites

you can set speed set in waypoints ;limited,normal of full speed i think this is what you mean? dave

Share this post


Link to post
Share on other sites

Actually I want to set up my MOD so that when someone for example gets in a F-16, it will have a max speed of 400.

This will be for Human controlled aircraft.

I need to adjust the max speed to balance the game play and make it more realistic

Thanks and I open to any suggestions

Stang out

Share this post


Link to post
Share on other sites

Stang... F-16... are you an alumnus of Falcon 4 by chance? :D

In any case, I believe the max speeds of a/c are set in the configs, which can't really be changed in a mission-specific mod. You could do a mod that changed the config for all such F-16s (or any a/c), but it would apply to all missions.

Share this post


Link to post
Share on other sites

OMG not TRex...???

Yup...one and the same here. Long time no see/hear/read :D

This issue is driving me nuts as I know it "can" be done but the "how" is very elusive.

In the MOD I'm working on there will be a limited set of aircraft, (a few jets and helos). I want to limit the max speed to balance the game play (as Chernarus is too small for jets unless you want a fraq-fest). Also per the mission (supporting 2 Navy SEAL Teams), air support is critical and impacts the mission as a whole in several ways.

Where are the config file(s) located that control aircraft speed?

I have unpacked the air.pbo and didn't find any config files in it...just a bunch of .psd's and .bin file file. Are they somewhere else?

Something has got to be controlling the flight model aspects of different aircraft....I just don't know what and I'm lost here...:(

BTW...how the heck have you been and what's up with Frugals? Is it down for good?

Thanks

Stang out

Edited by Stang

Share this post


Link to post
Share on other sites

hehe

LMAO

Hilarious running into you in these parts. :D Guess who "DMarkwick" is. ;) I'll PM you with what I know of Frug's. I don't think it is down for good, but... it could be down for a long time. Frug's going through a rough patch.

Anyhoo... this modding isn't like F4 (which you already know). ;) And keep in mind, I'm pretty much a novice at this stuff (which you already suspect).

Oh, and there is the obligatory kick in your pants for trying to turn an infantry simulation into a flight sim. :p

But, the deal is, each individual vehicle has its own config. Now, there is a hierarchy to them, like in programming. So, there's a bunch of parameters for an airvehicle, and then when someone adds one, they just change some stuff in a new config that is specific to that vehicle. There's a default Su in the game. If someone makes a MiG-29 addon, they'd probably "inherit" parameters from the Su in the MiG's config, only changing what was necessary.

Are you using the Footmunch F-16? I've opened up the pbo for that and found the config. But, not much to report. Here are some excerpts that might be useful.

 maxSpeed = 1300;
 armor = 60;
 damageResistance = 0.01246;
 armorStructured = 1;
 irScanGround = 1;
 irScanRangeMin = 100;
 irScanRangeMax = 12000;
 irScanToEyeFactor = 4;
 aileronSensitivity = 1.3;
 elevatorSensitivity = 1;
 wheelSteeringSensitivity = 1.75;
 flapsFrictionCoef = 0.3;
 minHeadTurnAI = -140;
 maxHeadTurnAI = 140;
 minFireTime = 30;
 threat[] = {1,1,0.7};
 landingAoa = "rad 10";
 landingSpeed = 300;

Now, not all of those are important to you, but give you an idea what the game engine is looking for. If you know the a/c you want to limit, what you can do is come up with a replacement config, and create a pbo with it that changes what you want. At that point, when you load the game with your pbo, it will effectively contradict whatever was in the original configs (even though the configs are still there) and use your numbers.

But, keep in mind, you'll never come close to F4 style flight modeling. And honestly, if you're looking for CAS, you're better off with the Harrier or Hog. Not trying to dissuade you, just sayin'. :)

Anyway, I'll send you a PM in a few minutes.

Share this post


Link to post
Share on other sites

@Stang

got you PM over at armaholic, just didn't had the time to answer. Sorry for that.

As far as it concerns the F-16, you might want to wait for the update as there will be some plans to bring it as close to a flightsim as possible, which includes some "things" that kind of reduces the threat a F-16 represent. It will force pilots to take more care about where they fly, if area is cleared of AA threats which couldn't locked-on by vehicles weapons (static AA pods). If not, pilots will risk serious damage of theyr plane, forcing them to slowly fly back to the airbase.

Well, i could write tons now. But just wait for the update.

Share this post


Link to post
Share on other sites

Thanks TRex,

I am still a bit confused though...

Oh and I deserve the kick in the pants :D however, I'm not trying to make this a real flight sim. All I want to do is limit the max speed an aircraft can go to slow down the game play. I just want to set it by aircraft so that each one is unique.

For example

F16 - 400

A-10 - 350

F-35 - 400

OH-58 125

etc etc

I am still not finding the config file? (config."WHAT")

Here is where I am looking

I have a "Working Folder" set up (not the one the game runs from...just a copy on a separate drive)

D:\Arma2 Working Folder\Arma2\Addons (This is just a copy of my Arma2 folder)

In that folder are just .pbo, & .bisign files like "A10.pbo"

When I extract A10.pbo, there is 1 folder "Data" and 5 files

The 5 files are

A10.p3d

A10Wreck.p3d

AGM65.p3d

AGM65_fly.p3d

Config.bin

If I open the Config.bin file with the Notepad, I get a bunch of hex junk and mixed code. Nothing that looks like what you posted.

What am I doing wrong?

Where are the other aircraft.pbo files? Are all of them in the "Addons" Folder?

Sorry for all the stupid questions but I really need a step 1, step 2...directions here as I'm not getting it or something is missing or I'm using the wrong tools, or the moon is out of phase....Gheeez :mad:

Thanks for all the help though. I know I can't be the first to ask about this and I'm not finding anything on this in the forms.

Share this post


Link to post
Share on other sites

The config.bin is the file you're looking for. But it is still binarized and thats why you can't view it with a editor. You may use unBuildArmA which was made for ArmA 1 but works also with ArmA 2. Or you search (on armaholic) for ArmA unBin or unRap for unbinarizing config.bin files.

The other aircrafts you'll find in air.pbo, air2.pbo and air3.pbo.

Be aware that you don't overwrite original ArmA 2 pbo files. What you are about to do is a replacement config addon. You may want to look in already existing replacement/config fixing addons. For this you may choose any addon that fixes something for original BIS vehicles. Look for zGuba's works, also for ArmA 1 as for this matter, the workflow didn't changed significantly. You might use those configs as template to see how things can be altered with a replacement addon.

Share this post


Link to post
Share on other sites

Rgr, Stang.

I'm working with a group that actually just sent me a plane to get a config for. I'll see if I can help explain what's what (and what's different from F4) that way. I'll send you my email, too.

Also, a great resource for stuff is OFPEC. :thumbs:

Share this post


Link to post
Share on other sites

Guys....THANKS A MILLION for ALL the Help

I really appreciate it.

When I get the MOD done, I'll be happy to share it with you if you'd like to give it go.

Thanks again

---------- Post added at 09:04 PM ---------- Previous post was at 08:14 PM ----------

Finaly...

I got the config.bin file open from the A10 in my working folder (Thanks for the help Guys)

unBuildArmA.exe un-binarized the config.bin into a config.cpp file, which I was able to edit with notepad. Whoohoo! :)

Below is the section that "appears" to define what I'm looking for

From A10 Config.cpp file

};

HeadAimDown = 3;

armor = 75;

damageResistance = 0.00485;

armorStructured = 1;

maxSpeed = 720;

landingAoa = "rad 10";

landingSpeed = 220;

flapsFrictionCoef = 0.3;

aileronSensitivity = 1;

elevatorSensitivity = 0.8;

envelope[] = {0.0, 0.1, 0.65, 2.2, 3.7, 5.3, 6.0, 5.5, 5.6, 4.8, 3.6, 1.8, 0};

gearUpTime = 4.5;

gearDownTime = 3;

The Big question is...Can I just modify the line

maxSpeed=720

to

maxSpeed=400

and Waaalah, I'm done???

By the way, how do I "re-binarize" the config.cpp file back into a config.bin file???

Thanks again for all the help

Stang out

....making progress finaly...Yeah!

Share this post


Link to post
Share on other sites

hehe

Yeah, you'll need to re-binarize it for testing purposes, but it's even a bit more complicated than that if you want to "release" it.

Let me see if I can do something to help you out a bit. ;)

Share this post


Link to post
Share on other sites

Holy Hell Batman...its gets more complicated???

:eek:

I think I'm going back to Duke Nukem where things were simple. I can make a simple MOD and release it as Duke Nukem Forever and no one will know the difference. :D

Stang out

Share this post


Link to post
Share on other sites

Check your inbox

and tell Gorny he'd better go and hide :D

Share this post


Link to post
Share on other sites

I think you will find that instead of modifying every original PBO, you can make a couple of new ultra-simple PBO's to "overwrite" the existing config.

- Paste the below code into a new config.cpp text file

- place the file in a folder named something like STG_A10Adjust

- Turn the folder into a PBO, place the PBO into your addons folder in ArmAII

class CfgPatches
{
class STG_A10Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class A10: Plane
{
	maxSpeed = 400; 
};
};

Share this post


Link to post
Share on other sites

Excellent! Gnat did what I was going to do. :)

Stang, instead of sending you a config, I'll just use Gnat's excellent example. Plus, maybe someone else can use the info. :D

Think of the config as the portal for the game to reach all the great content elsewhere in the pbos. It tells the game engine what to do with all that stuff.

The configs are broken down into sections, depending on what it is going to do. Pay careful attention to the braces {} and semicolons ; because they tell the game engine where the ends of sections and lines are.

In Gnat's example, you have 2 sections: cfgPatches and cfgVehicles. The cfgPatches section has generic information about the addon you're making. If your adding units/weapons you would put them there. The required version is self-explanatory, and the required addons just makes sure the right things are added before it loads your addon.

The cfgVehicles section actually does the stuff you're interested in. The class Plane line tells the engine a context for your mod - that you're changing the plane values. The class A10:Plane tells the engine specifically what a/c you're going to change. The next section tells it that you're changing the value for the maxSpeed. I noticed the landing speed is high, too, so if you wanted to change both values it would look something like this:

class CfgVehicles 
{
class Plane;
class A10: Plane
{
	maxSpeed = 400;
	landingSpeed = 120;
};
};

Oh, and another thing, you can actually use a similar process to add your own modified A-10. This could be beneficial because as long as your mod is loaded, ALL the A-10s will be affected. So, if you play a different mission with that mod, it will still have the lower values, which may or may not be what you want.

If you want to know how to do that (when you're ready) ;) just post and either I or someone else will show you. Gnat is a serious guru when it comes to this stuff, so hopefully he'll do it. ;) :D

Share this post


Link to post
Share on other sites

Guys

Thanks for ALL the help...this is exactly what I need to make my MOD work the way I want it too.

Ultimately, I want a user to log on to our server, if they do not have the MOD running, it will download it to them before the game starts and then they can play.

This MOD will include other things in additional to "slowing down the aircraft" to more realistic speeds. I "think" I am squared away on the other items (for now anyway) on that end. If I get stuck I'll let you know.

I sincerely appreciate everyone's help and professionalism with this project.

BTW...Myke, if you're still are looking for a coder for your F-16 project, please let me know, as I have several good (coding) friends from Fighter Ops that may be willing to help you out.

Thanks Again Guys

Share this post


Link to post
Share on other sites
I sincerely appreciate everyone's help and professionalism with this project.

BTW...Myke, if you're still are looking for a coder for your F-16 project, please let me know, as I have several good (coding) friends from Fighter Ops that may be willing to help you out.

Must. Bite. Tongue.

Too. Tempting.....

;) :D

Edit:

Oh, and Stang, PMC has a great set of wiki/tuts on moding ArmA/ArmA2:

http://tactical.nekromantix.com/wiki/doku.php

Edited by TRexian
Forgot PMC.

Share this post


Link to post
Share on other sites

OK Guys

This is really stretching it for me.

Could I do everything I want with 1 Single "Ultra Simple" pbo...example below

Here are the Aircraft and values I want to set: (I know these are not "actual realistic" but they're closer to realistic and will give me a basis to start balancing game play)

[b]Aircraft     maxSpeed     landingSpeed[/b]
F35            500                  150
Su34          400                  150
F16            400                  150
A10            350                  125
AV8b          350                  125
Su25          350                  125
C130          300                  150

MH60         170                     
Mi17          135
CH53          150
UH1Y          125  
AH64          150                   
AH1Z          150
Ka52           150
Mi24            200
OH58           125
MH6            175

Could I use this "1 Single File" as a Config.pbo to overwrite the originals?

class CfgPatches
{
class STG_A10Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class A10: Plane
{
	maxSpeed = 400;
               landingSpeed = 125 
};
};

class CfgPatches
{
class STG_F35Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class F35: Plane
{
	maxSpeed = 500;
               landingSpeed = 150 
};
};

class CfgPatches
{
class STG_Su34Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class Su34: Plane
{
	maxSpeed = 400;
               landingSpeed = 150 
};
};

class CfgPatches
{
class STG_F16Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class F16: Plane
{
	maxSpeed = 400;
               landingSpeed = 150 
};
};

class CfgPatches
{
class STG_A10Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class A10: Plane
{
	maxSpeed = 400;
               landingSpeed = 125 
};
};

class CfgPatches
{
class STG_AV8bAdjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class AV8b: Plane
{
	maxSpeed = 400;
               landingSpeed = 125 
};
};

class CfgPatches
{
class STG_Su25Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class Su25: Plane
{
	maxSpeed = 350;
               landingSpeed = 125 
};
};

class CfgPatches
{
class STG_C130Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class C130: Plane
{
	maxSpeed = 300;
               landingSpeed = 150 
};
};

class CfgPatches
{
class STG_MH60Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class MH60: Helicopter
{
	maxSpeed = 170;

};
};

class CfgPatches
{
class STG_Mi17Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class Mi17: Helicopter
{
	maxSpeed = 135;

};
};

class CfgPatches
{
class STG_CH53Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class CH53: Helicopter
{
	maxSpeed = 150;

};
};

class CfgPatches
{
class STG_UH1YAdjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class UH1Y: Helicopter
{
	maxSpeed = 125;

};
};

class CfgPatches
{
class STG_AH54Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class AH64: Helicopter
{
	maxSpeed = 150;

};
};

class CfgPatches
{
class STG_AH1ZAdjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class AH1Z: Helicopter
{
	maxSpeed = 150;

};
};

class CfgPatches
{
class STG_Ka52Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class Ka52: Helicopter
{
	maxSpeed = 150;

};
};

class CfgPatches
{
class STG_Mi24Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class Mi24: Helicopter
{
	maxSpeed = 200;

};
};

class CfgPatches
{
class STG_OH58Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class OH58: Helicopter
{
	maxSpeed = 125;

};
};

class CfgPatches
{
class STG_MH6Adjust
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.00;
	requiredAddons[] = {"CAA10"};
};
};

class CfgVehicles 
{
class Plane;
class MH6: Helicopter
{
	maxSpeed = 175;

};
};

Thanks Again for all the help Guys

Edited by Stang

Share this post


Link to post
Share on other sites

Hey - first off, you are somewhat needlessly overcomplicating it. :)

All the cfgVehicles things should be within one cfgVehicles.

Something more like this untested example:

class CfgPatches
{
class STG_Fantasies
{
units[] = {};
weapons[] = {};
requiredVersion = 1.00;
requiredAddons[] = {"CAA1"};	// you had CAA10, but isn't it CAA1?
};
};

class CfgVehicles
{
class Plane;
class A10: Plane
{
maxSpeed = 400;
landingSpeed = 125
};

class F35: Plane
{
maxSpeed = 500;
landingSpeed = 150
};	

class Su34: Plane
{
maxSpeed = 400;
landingSpeed = 150
};

class AV8b: Plane
{
maxSpeed = 400;
landingSpeed = 125
};

class Su25: Plane
{
maxSpeed = 350;
landingSpeed = 125
};	

class C130: Plane
{
maxSpeed = 300;
landingSpeed = 150
};

};

Also - did you grab the Kegetys stuff? One of those (cpbo IIRC) creates a right-click option for you to right-click on a folder and it will generate a pbo from it. Very easy for testing.

Also - I cut out the helos and the F-16. I don't think you have the right classname for it, as it is an addon. And, the helos are different.

Let's go in small steps, eh? ;) If you get the kind of gameplay you want from the Hog and others, then lets throw a wider net.

I may have some time tonight to create a simple config/pbo and zip them up and send them to you.

Share this post


Link to post
Share on other sites

TRex

You type faster than Britney Spears looses her panties at a party :eek:

Thanks for the help again.

I'd be super happy to have you pob-it and send it my way. I DL most of the items but have not tried them yet.

Will do this evening

Share this post


Link to post
Share on other sites

hehe

You already knew that about my typing, so don't be so shy about it. ;)

Yeah, I'll try to work up a simple config, probably for the A-10. Can you confirm that you're using the Footmunch/Eddy F-16? That'll help get the right classname for it.

Share this post


Link to post
Share on other sites

See the notes below is RED

Hey - first off, you are somewhat needlessly overcomplicating it. :)

All the cfgVehicles things should be within one cfgVehicles.

Something more like this untested example:

class CfgPatches
{
class STG_Fantasies   [color="Red"]Oh Hell no, next thing you'll be 
naming it "an announcement of an announcement"[/color]
{
units[] = {};
weapons[] = {};
requiredVersion = 1.00;
requiredAddons[] = {"CAA1"};	// you had CAA10, but isn't it CAA1?

[color="Red"]this came from [APS]Gnat's example[/color]

};
};

class CfgVehicles
{
class Plane;
class A10: Plane
{
maxSpeed = 400;
landingSpeed = 125
};

class F35: Plane
{
maxSpeed = 500;
landingSpeed = 150
};	

class Su34: Plane
{
maxSpeed = 400;
landingSpeed = 150
};

class AV8b: Plane
{
maxSpeed = 400;
landingSpeed = 125
};

class Su25: Plane
{
maxSpeed = 350;
landingSpeed = 125
};	

class C130: Plane
{
maxSpeed = 300;
landingSpeed = 150
};

};

Also - did you grab the Kegetys stuff? One of those (cpbo IIRC) creates a right-click option for you to right-click on a folder and it will generate a pbo from it. Very easy for testing.

Also - I cut out the helos and the F-16. I don't think you have the right classname for it, as it is an addon. And, the helos are different.

Let's go in small steps, eh? ;) If you get the kind of gameplay you want from the Hog and others, then lets throw a wider net.

I may have some time tonight to create a simple config/pbo and zip them up and send them to you.

---------- Post added at 02:57 PM ---------- Previous post was at 02:55 PM ----------

[/color][/color]I was using Mykes available HERE

but where can I find the other one as I'd like to test it too...unless they are one in the same?

hehe

You already knew that about my typing, so don't be so shy about it. ;)

Yeah, I'll try to work up a simple config, probably for the A-10. Can you confirm that you're using the Footmunch/Eddy F-16? That'll help get the right classname for it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×