Tango's workbench

Post and discuss what YOU are working on. This is the place to preview and/or discuss your modern day military AI projects.
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2484
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Re: Tango's workbench

Post by Weescotty »

Prob won't work in FSX.
It relies on a GVar which work differently in FSX

User avatar
John Young
MAIW Developer
MAIW Developer
Posts: 3008
Joined: 12 Jul 2008, 15:15

Re: Tango's workbench

Post by John Young »

That's my expectation too Kev.

John

User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 10621
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Tango's workbench

Post by Firebird »

My thinking about this was that you used a variable for the animation. If the variable was 0 the blades were still.
If the engine is started then the count is set to a figure say 5000.
Then you check the variable, if the variable is >0 then animate and reduce variable by 1.

As the engine is running it will keep setting the variable to 5000, for example. When the aircraft lands and the engine switches off the rotors will keep turning for the amount of time until the variable hits 0.

The only issue is that the engine sound will switch off immediately rather than continue until the rotors stop.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________

User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2484
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Re: Tango's workbench

Post by Weescotty »

And thereby hangs the problem.
The ONLY variable we can use that we control the value of is a G:Var. (L:Vars have never worked for AI).

Unforetunately G:Vars in FSX and probably P3D are global so all the aircraft react to a change.
In FS9 they are local to the individual aircraft itself, so each aircraft can have a unique G:Var value.

User avatar
SeanG
Captain
Captain
Posts: 321
Joined: 11 May 2008, 05:22
Version: FS9
Location: Christchurch, New Zealand
Contact:

Re: Tango's workbench

Post by SeanG »

Hi all... Just stumbled onto this thread (gee the Wasp looks cool in FSX...) I have sent John my animation XML, and as pointed out earlier it uses GVars.. but with the TH-57 I am playing with I may have found a better compromise, let me do some more fiddling with it and if it works I'll share it :)

Sean
Image

User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2484
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Re: Tango's workbench

Post by Weescotty »

The advantage to a G:Var was the possibility of setting a countdown timer during which time the rotors spun, and you could 100% guarentee they always finished at a specific position.
Thats why the V-22 Osprey works so well in FS9, but can't do the same in FSX.
I will be interested to see your solution.

User avatar
SeanG
Captain
Captain
Posts: 321
Joined: 11 May 2008, 05:22
Version: FS9
Location: Christchurch, New Zealand
Contact:

Re: Tango's workbench

Post by SeanG »

Weescotty wrote:
23 Nov 2020, 03:39
I will be interested to see your solution.
Me too!! lol

Sean
tango234 wrote:
19 Nov 2020, 19:16
In other news, I've been playing around with converting the SGAI Wasp to FSX-native. Very nice looking model in P3Dv4 :D. Mostly there, just a few niggles:
Would the GMax files and animation XML's be useful for your conversion? AND, the artifacts you see may be my 'placeholder' cubes for the animations.... which I thought I'd made transparent, but might have missed.

Cheers
Sean
Image

User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2484
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Re: Tango's workbench

Post by Weescotty »

Maybe you can get L:Vars working with FSX or P3D....

The only difference is you have to give a name and specify the units...

1 (>L:TestVar,bool)

Would set the L:Var named TestVar to True

(L:TestVar,bool) 1 ==

Would test TestVar for true.


Personally I NEVER got them work for AI aicraft.

User avatar
John Young
MAIW Developer
MAIW Developer
Posts: 3008
Joined: 12 Jul 2008, 15:15

Re: Tango's workbench

Post by John Young »

There's another problem here with FSX and P3D where the trigger is the beacon light. In both sims the light comes on about 15 minutes before departure. In FS9, the trigger will initiate at any time the user launches the sim within that 15 minute window. In FSX and P3D if the user launches after the beacon light comes on, the trigger initiates at departure. That really defeats the object of the code, at least pre-departure, for an early spin of the rotors.

John

User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 10621
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Tango's workbench

Post by Firebird »

This is one of the areas that I hope that the MSFS team sort out when they get around to it.
I am hopeful after seeing some of the detail that the main areas of the sim have gone into. The only thing is that unless you are a developer for AI aircraft it is not something that you would be aware of and therefore may possibly be missed.

I have fingers and toes crossed that an AI developer or three is involved in the consultations when they get around to that part of the game.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________

User avatar
tango234
Major
Major
Posts: 636
Joined: 10 Feb 2009, 20:11
Version: P3D
Location: UK

Re: Tango's workbench

Post by tango234 »

SeanG wrote:
23 Nov 2020, 04:38
...

Would the GMax files and animation XML's be useful for your conversion? AND, the artifacts you see may be my 'placeholder' cubes for the animations.... which I thought I'd made transparent, but might have missed.

Cheers
Sean
Honestly speaking, I wouldn't have the first clue what to do with the gmax files, but the XMLs may be useful if that is alright. Granted, FSX and P3Dv4 work differently as mentioned above, but it would still be good to have I think.

As for the artifacts, they are actually a duplicate set of rotor heads that snuck in there unnoticed what I importing things to get the rotors set up, so you didn't miss anything! Easy enough to deal with but a little embarrassing...

Post Reply