OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Pilot on 22 Feb 2005, 21:17:45
-
I have two questions:
1) I have two attitude indicators defined in my 757. I have named them horizont and horizont2. I have given them both a point for movement. The axis for horizont is called osa_horizont and the axis for horizont2 is called osa_horizont2. When I load my plane ingame, only horizont works. The other attitude indicator doesn't work. Why is this?
2)Assuming I can fix the above problem, can I have as many attitude indicators as I want, simply by adding a number to the end of the selection name? ex. horizont, horizont2, horizont3...ect. I ask because the 757-200 has three attitude indicators (two are digital, and the other is a gyroscopic instrument, but I guess you didn't need to know that :P), and I want to know if I it's possible to make three before I start on the third.
Thank you!
-
Ok, I decided to add two heading indicators to my plane. I used the same process I stated above. They are named Kompas and Kompas2, with the axis being named osa_Kompas and osa_Kompas2. I tried it ingame, and both work?! Why do both heading indicators work, and only one artificial horizon work, when I used the same process for naming them? ???
-
you might need to define horizont2 in the config file
-
I looked through the commented config, and didn't see anything defining attitude indicators. Yet I know a model can have at least two because the UH-60 Blackhawk has two and they both work.
-
i found these but none of them have anything to do with the horizont i think
class IndicatorAltRadar
{
selection="alt";
axis="osa_alt";
angle=-360;
min=0;
max=304;
};
class IndicatorAltBaro
{
selection="nm_alt";
axis="osa_nm_alt";
angle=-180;
min=0;
max=61;
};
class IndicatorSpeed
{
selection="mph";
axis="osa_mph";
angle=-320;
min=0;
max=125;
};
class IndicatorVertSpeed
{
selection="vert_speed";
axis="osa_vert_speed";
angle=-300;
min=-30;
max=30;
};
class IndicatorRPM
{
selection="rpm";
axis="osa_rpm";
angle=-320;
min=0;
max=12;
};
class IndicatorCompass
{
selection="kompas";
axis="osa_kompas";
angle=-360;
min=-3.141593;
max=3.141593;
};
class IndicatorWatch
{
hour="hodinova";
minute="minutova";
axis="osa_time";
reversed=1;
};
class IndicatorAltRadar2
{
selection="alt2";
axis="osa_alt2";
angle=-360;
min=0;
max=304;
};
class IndicatorAltBaro2
{
selection="nm_alt2";
axis="osa_nm_alt2";
angle=-180;
min=0;
max=61;
};
class IndicatorSpeed2
{
selection="mph2";
axis="osa_mph2";
angle=-320;
min=0;
max=125;
};
class IndicatorVertSpeed2
{
selection="vert_speed2";
axis="osa_vert_speed2";
angle=-300;
min=-30;
max=30;
};
class IndicatorRPM2
{
selection="rpm2";
axis="osa_rpm2";
angle=-320;
min=0;
max=12;
};
class IndicatorCompass2
{
selection="kompas2";
axis="osa_kompas2";
angle=-360;
min=-3.141593;
max=3.141593;
};
class IndicatorWatch2
{
hour="hodinova2";
minute="minutova2";
axis="osa_time2";
reversed=1;
};
};
-
Yeah, I found those too, and you are right, none of them have to do with horizont. :'(. I find it strange that both kompas and kompas2 work, while only horizont works.
-
It might be that the horizon instrument is handled entirely by the game engine and doesn't need a config entry as long as you have the selection and axis defined in the model.
One way to check this is to remove the horizon definition from your config.cpp.
If the horizon still works after that then the config entry is not needed as the engine handles that by itself.
Planck
-
@Planck
I never added anything to the config, because I couldn't find anything in the commented config that related to the horizon.
I have checked the selection names at leat 5 times, and I am sure they are right. But for some reason, only one horizon wants to work.
-
All the other instruments seem to have entries in the config, for instance, kompas.
The only exception appears to be the horizon instrument, which leads me to believe it is handled entirely by the engine as long as the model has the correctly named selection and axis defined.
You say the blackhawk has 2 horizon instruments, both working.
But the config entry for the blackhawk has no horizon instruments defined.
Check the blackhawk model in Oxygen and see what selections and axis names are used for each horizon instrument.
Planck
-
The selections are called horizont and horizont2
The axis are named osa_horizont and osa_horizont2
I have copied the selection and axis names to my model, but the second horizon still doesn't work.
-
Yes......I just had a look myself.
I'm stumped then.
I hope someone else has a way round this for you.
Mind you the uh60 is a chopper and your model is a plane.
simulation "helicopter" might support it and simulation "airplane" maybe doesn't.
Unless you can find a plane that has 2 horizon instruments.
Planck
-
simulation "helicopter" might support it and simulation "airplane" maybe doesn't.
Yeah, I thought about that. I looked at the Ju-52, and it has two horizonts defined, but only one works. I have also been unable to find a plane that has more than one working horizon. It appears this is a limitation with the airplane simulation. :'( Thanks for your help, Planck!
Topic Closed