F-35 Joint Strike Fighter

Discussion, tutorials,hints and tips relating to designing military ai aircraft.
Locked
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2822
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: F-35 Joint Strike Fighter

Post by Weescotty »

Removed..had a better idea!
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

I'd like to take this moment to give a big thank you to Kevin Reed tonight for his super brain at developing new xml code for the F-35A landing gear and flaps sequences. The code is a sophisticated row of rules for the AI engine to process and adds a new aspect to how the AI behaves not only in the air but also on the ground. So big thank you to Kevin. (and just when I was about to pull the pin) :wink:

Also a special thank you to Mike Mac for redoing the FDE suspension after I moved the nose wheel height and then totally forgot about it! :oops:

Also to the good people that helped test the model so far, thank you! :P

cheer's,

Mark
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

1.jpg
2.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
DaleRFU
Lieutenant Colonel
Lieutenant Colonel
Posts: 1463
Joined: 13 Mar 2009, 16:49
Version: MSFS
Location: EGNJ

Re: F-35 Joint Strike Fighter

Post by DaleRFU »

it looks stunning Mark keep it going :mrgreen:
Please visit my YouTube channel @ https://www.youtube.com/user/daledelboy
User avatar
gsnde
MAIW Admin
MAIW Admin
Posts: 4631
Joined: 05 Apr 2007, 08:13
Version: P3D
Location: South-West Germany
Contact:

Re: F-35 Joint Strike Fighter

Post by gsnde »

Absolutely gorgeous, Mark :smt001
Cheers,
Martin
________________________________________
The Owl's Nest * Military Aircraft Reference * ICAO Reference * Distance Calculator * MAIW, Military AI & UKMil Reference
User avatar
petebramley
MAIW Developer
MAIW Developer
Posts: 1545
Joined: 17 Jun 2007, 16:05
Version: P3D
Location: EGBG

Re: F-35 Joint Strike Fighter

Post by petebramley »

Sweet !
Pete B
Retired and busier than ever !!
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

Can anybody see where this code is written incorrectly.
Ideally it should be the animated nozzle xml code used similar in the RAAFed version of the GAI-NBAI FA18 Hornet but it does not seem to operate. As xml code writting is not my thing and the original author is not replying to my emails, I have little to no hope of finding an answer!
cheer's,

<name>jet_petal_outside</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 95 >
if{ 100 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 75 >
if{ 20 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 60 >
if{ 80 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 40 >
if{ 50 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 10 >
if{ 25 }
els{ 0 } } } }
</code>
<lag>400</lag>
</parameter>
</animation>
</part>
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2822
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: F-35 Joint Strike Fighter

Post by Weescotty »

Can't use
>

Use
>
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

<name>jet_petal_outside</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 95 >
if{ 100 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 75 >
if{ 20 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 60 >
if{ 80 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 40 >
if{ 50 }
els{ (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 10 >
if{ 25 }
els{ 0 } } } }
</code>
<lag>400</lag>
</parameter>
</animation>
</part>

Changing the > also had no effect on the animation operation. There must be something that is not right in this code but I don't know what I'm looking at to know what it is. It's a great animation when operating and only requires 0 - 100 keyframe. A copy of the model pedal part is attached below if some of the more knowledgable guys would like to have a crack it.
Going by Steves recent beta test results, its one of the few things now holding up the F-35A besides a few small texture maps on some load outs.
cheer's,
You do not have the required permissions to view the files attached to this post.
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2822
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: F-35 Joint Strike Fighter

Post by Weescotty »

Think your also missing a } on the final line.
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

Nope, still no joy. I'm starting to wonder if the nozzle part that I'm using to test this is properly keyframed for the code.
Got me buggered.
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

I rewrote the code using a similar base so I wouldn't get the spacing wrong but it still does not move the animation nozzle. This xml stuff is crazy, there must still be something missing, but what???

<part>
<name>jet_petal_outside</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG THROTTLE LEVER POSITION, percent) 95 >
if{ 100 }
els{ (A:GENERAL ENG THROTTLE LEVER POSITION, percent) 75 >
if{ 20 }
els{ (A:GENERAL ENG THROTTLE LEVER POSITION, percent) 60 >
if{ 80 }
els{ (A:GENERAL ENG THROTTLE LEVER POSITION, percent) 40 >
if{ 50 }
els{ (A:GENERAL ENG THROTTLE LEVER POSITION, percent) 10 >
if{ 25 }
els{ 0 }
}
}
}
</code>
<lag>400</lag>
</parameter>
</animation>
</part>
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12411
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: F-35 Joint Strike Fighter

Post by Firebird »

I think there is another '}' missing Mark.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat

Chelsea FC - World Champions
_______________________________________________________
User avatar
gsnde
MAIW Admin
MAIW Admin
Posts: 4631
Joined: 05 Apr 2007, 08:13
Version: P3D
Location: South-West Germany
Contact:

Re: F-35 Joint Strike Fighter

Post by gsnde »

Code: Select all

{  }
{ 
{  }
{ 
{  }
{ 
{  }
{ 
{  }
{  }
}
}
}
Steve is right. If you "get rid of the code" then you see 5 pairs of {} (opening and closing). Another four { opens, but only three } closes.
Cheers,
Martin
________________________________________
The Owl's Nest * Military Aircraft Reference * ICAO Reference * Distance Calculator * MAIW, Military AI & UKMil Reference
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

Guy's,
I tried it with four and five } of those things but it still dosen't operate the part.
May be another thing that I chop off the F-35A model, before long it's going to a very unimpressive waste of a few months work.
It's becoming more ordinary every day!
cheer's,
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

I tried this code as given to me on FSdeveloper but it did not work either! I'm totally confused.

<part>
<name>Nozzle</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG1 THROTTLE LEVER POSITION, percent) 30 >
if{
(A:GENERAL ENG1 THROTTLE LEVER POSITION, percent) 95 >
if{ 200 } els{ 100 }
}
els{ 0 }
</code>
<lag>30</lag>
</parameter>
</animation>
</part>
fishlips

Re: F-35 Joint Strike Fighter

Post by fishlips »

Can somebody please download the FSDS part attached and go through the codes above to work out why this does not operate, I'm at a full stop with it.
The part attached is the animated NBAI-FA18 Hornet nozzle as seen on the RAAFed version.
Regards,
Last edited by fishlips on 11 Jul 2013, 15:26, edited 1 time in total.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12411
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: F-35 Joint Strike Fighter

Post by Firebird »

OK well that code is correct, speaking about the syntax. What it is saying, in English, is that if the engine is greater than 30% then the anim is activated. If the Engine is greater than 95% then move to frame 200 else move to frame 100.

So:-
Engine 30% or less, then frame 0.
Engine 31-95% frame 100.
Engine 96-100% frame 200.

The code and the logic looks sound so maybe we have to look at the basics. Have you attached the correctly named anim to the correct part?
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat

Chelsea FC - World Champions
_______________________________________________________
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2822
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Re: F-35 Joint Strike Fighter

Post by Weescotty »

I should have noticed earlier...

(A:GENERAL ENG1 THROTTLE LEVER POSITION, percent)

Is incorrect

Use

(A:GENERAL ENG THROTTLE LEVER POSITION:1, percent)
User avatar
DaleRFU
Lieutenant Colonel
Lieutenant Colonel
Posts: 1463
Joined: 13 Mar 2009, 16:49
Version: MSFS
Location: EGNJ

Re: F-35 Joint Strike Fighter

Post by DaleRFU »

God you guys just speak a completely different language :shock:
Please visit my YouTube channel @ https://www.youtube.com/user/daledelboy
Locked