Nimrod MR2

Post all your own Military AI projects here from days gone by.
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Nimrod MR2

Post by brianf51 »

I've produced a basic FSX version of the Mighty Hunter MR2 and as expected with my first AI model I've hit a couple of snags. I wonder has anyone seen these two problems before.

The engine blanks, pitot covers and chocks appaear as planned on a cold stationary aircraft and disappear normally on start. All well and goos but Jim Rodger who was testing watched the model taxi to the runway and when the aircraft halted on the runway the items re-appeared again. Conditions at that time was four running engines but aircraft on ground. The condition controller I use to make these items appear on a parked aircraft are 1. A/C is on the ground 2. Elec power is off 3. Hyd pressure below 100.

The second problem is flap settings. The aircraft has a full range of flap settings specified in the cfg but chose full flap for take off.

As I said this is my first AI project so any ideas?

Image
User avatar
campbeme
MAIW Staff
MAIW Staff
Posts: 3293
Joined: 24 Jun 2007, 11:58
Version: FSX

Re: Nimrod MR2

Post by campbeme »

brianf51 wrote:I've produced a basic FSX version of the Mighty Hunter MR2 and as expected with my first AI model I've hit a couple of snags. I wonder has anyone seen these two problems before.

The engine blanks, pitot covers and chocks appaear as planned on a cold stationary aircraft and disappear normally on start. All well and goos but Jim Rodger who was testing watched the model taxi to the runway and when the aircraft halted on the runway the items re-appeared again. Conditions at that time was four running engines but aircraft on ground. The condition controller I use to make these items appear on a parked aircraft are 1. A/C is on the ground 2. Elec power is off 3. Hyd pressure below 100.

The second problem is flap settings. The aircraft has a full range of flap settings specified in the cfg but chose full flap for take off.

As I said this is my first AI project so any ideas?

Image
Try using the beacon as the start and end condition.
Mark
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Re: Nimrod MR2

Post by brianf51 »

I'll certainly try that, thanks Mark
MIKE JG
MAIW Veteran
MAIW Veteran
Posts: 10976
Joined: 12 Aug 2006, 02:25
Version: MSFS

Re: Nimrod MR2

Post by MIKE JG »

Beacon is on any time the engine is running, so that one light does the same thing as all those other parms you were using.
-Mike G.

Recovering flight sim addict, constant lurker.

Check out my real life RV-8 build here: RV-8 Builder Log
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12379
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Nimrod MR2

Post by Firebird »

Brian, nice looking model.
For the flaps what xml code are you using?
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Re: Nimrod MR2

Post by brianf51 »

Hi Steve,

I'm using the main model standard of l_flap_key_percent & r_flap_key_percent

which use

<PartInfo>
<Name>l_flap_percent_key</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>TRAILING EDGE FLAPS LEFT PERCENT</Variable>
<Units>percent</Units>
<Scale>1</Scale>
<Bias>0</Bias>
</Sim>
</Parameter>
</Animation>
</PartInfo>

I'm assuming that AI uses something different?
User avatar
gsnde
MAIW Admin
MAIW Admin
Posts: 4529
Joined: 05 Apr 2007, 08:13
Version: P3D
Location: South-West Germany
Contact:

Re: Nimrod MR2

Post by gsnde »

What a nice looking model, Brian.
Cheers,
Martin
________________________________________
The Owl's Nest * Military Aircraft Reference * ICAO Reference * Distance Calculator * MAIW, Military AI & UKMil Reference
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12379
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Nimrod MR2

Post by Firebird »

Flaps have to be treated differently for AI because the AI engine is a lot simpler than the main engine.
For take off it will use 0 flaps. What a lot of modellers do is dump the default anim for xml controlled flaps. This way you can get it to operate exactly as you want it, including take off flaps.
What I am talking about here is the visual application of flaps, you still need the coding in the cfg file for the actual application for the AI engine.

You use various parms available to you to alter the flaps, including lights, speed, height etc.

I was thinking that the code that Jake used for the P-3 or that Mike used for the C-135 series may be most appropriate for you to start from.

Hopefully one of these guys will see this and come to your aid.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
Christopher Low
First Lieutenant
First Lieutenant
Posts: 144
Joined: 05 Dec 2011, 10:07
Version: P3D
Location: Ulverston, England

Re: Nimrod MR2

Post by Christopher Low »

I remember seeing the UKMIL MR4 AI model flying in FSX with "ground support" units hanging off the side. I haven't seen it since, so I can't remember if I did anything to solve the issue....
Bora

Re: Nimrod MR2

Post by Bora »

Yep, looks nice ! But will there be a FS9 version as well ?
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Re: Nimrod MR2

Post by brianf51 »

Yes there will be an FS9 version. Had to dig out my FS2004 and the SDK then try to remember how to use it all. I haven't made anything in FS9 since the Skysim Vixen in 2008!
Last edited by brianf51 on 30 Jan 2013, 17:23, edited 1 time in total.
User avatar
delbydoo
Colonel
Colonel
Posts: 1889
Joined: 11 Aug 2006, 19:24
Version: FS9

Re: Nimrod MR2

Post by delbydoo »

brianf51 wrote:Yes there will be an FS9 version. Had to dig out my FS2004 and the SDK then try to remember how to use it all. I haven't made anything in FS9 since 2008!
:D :D :D :D :D
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2787
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: Nimrod MR2

Post by Weescotty »

Don't think AI aircraft use SIM ON GROUND

You can use LIGHT NAV (ac active) or LIGHT BEACON (ac ready to taxi) instead.
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Re: Nimrod MR2

Post by brianf51 »

One remaining problem I'm having is that when the aircraft is on approach the elevators are showing as fully deflected nose-down. The parts are named elevator_percent_key. Is ther an alternative part which does not display this behaviour?

Brian
User avatar
campbeme
MAIW Staff
MAIW Staff
Posts: 3293
Joined: 24 Jun 2007, 11:58
Version: FSX

Re: Nimrod MR2

Post by campbeme »

How is things going on your model Brian, have you made anymore progress?
Mark
fishlips

Re: Nimrod MR2

Post by fishlips »

Now that's a nice looking bird!

I'm also interested in how you over come your issues with the flaps and flags, etc.
cheer's,
Mark
brianf51
Second Lieutenant
Second Lieutenant
Posts: 34
Joined: 07 Jan 2013, 10:03
Version: FSX
Contact:

Re: Nimrod MR2

Post by brianf51 »

I've tied the blanks, flags & chocks to navlights_off

This is a non-geometry part set up in modeldef.xml as

<PartInfo>
<Name>navlights_off</Name>
<Visibility>
<Parameter>
<Code>(A:LIGHT NAV, bool) 1 == if{ 0 } els{ 1 } </Code>
</Parameter>
</Visibility>
</PartInfo>


Flaps are now a part called ai_flaps set up in modeldef.xml as

<PartInfo>
<Name>ai_flaps</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code> (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) 0 > if{ (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) } els{ (A:LIGHT LANDING, bool) (A:GEAR CENTER POSITION, percent) 99 > && if{ 40 } els{ 0 } } </Code>
</Parameter>
</Animation>
</PartInfo>

These may not be the best solutions but they seem to work for me.

This is also not the most elegant AI model being my first and it only has 3 LODS so don't expect too much. I've offset that by the fact that Nimrods were never encountered in great numbers even at Kinloss, in later years usually only one at a time....

If you want to try the FSX version its at http://www.simshed.co.uk/transfer/AI/NimrodAI.zip

Having very bad texture blurring problems with the FS9 version
User avatar
gsnde
MAIW Admin
MAIW Admin
Posts: 4529
Joined: 05 Apr 2007, 08:13
Version: P3D
Location: South-West Germany
Contact:

Re: Nimrod MR2

Post by gsnde »

Brian,

Not sure if this can help you with your blurry issue. John Young posted a similar question at FSDeveloper, and in the back and forth with Arno this lead to a 100% solution for blurry FS9 mipmapped textures.
Cheers,
Martin
________________________________________
The Owl's Nest * Military Aircraft Reference * ICAO Reference * Distance Calculator * MAIW, Military AI & UKMil Reference
User avatar
shaggy22
MAIW Developer
MAIW Developer
Posts: 1659
Joined: 12 Aug 2009, 14:18
Version: P3D
Location: England, Leicester
Contact:

Re: Nimrod MR2

Post by shaggy22 »

Superb work Brian, all we need now are some nice repaints of it :D :D
Dan

"Cluster bombing from B-52s are very, very accurate. The bombs are guaranteed to always hit the ground"

Twitter: @DRAviography
Facebook: https://www.facebook.com/DanReevesAviography/
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2787
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: Nimrod MR2

Post by Weescotty »

Texture blurries.....
Add an alpha channel and set one pixel to black.

You should also be able to remove the 1 == from the chocks flag code.
Post Reply