Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Recording of External Variables with SkyDolly #130

Open
Jasseji opened this issue Mar 22, 2024 · 2 comments
Open

Allow Recording of External Variables with SkyDolly #130

Jasseji opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Jasseji
Copy link

Jasseji commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
Not a Problem with the Software, but Animations which are normally triggered during flight are not saved on the Replay. (i.e. Light Switches controlled by LVARs, Carrier Catapult State, Carrier Elevators etc.)

Describe the solution you'd like
Ability to record External LVARs with the flight so they will be triggered at the same moment as they were in the initial flight, maybe Ability to Edit those LVARs too or Tell Skydolly which ones to Record.

Describe alternatives you've considered
Manually Triggering said LVARs via SPAD.next script but this is not always working as precise as it should.

Additional context
Recording Videos on Carrier Mostly and switching on Plane Animations during formation flight.

Further Details, feel free to DM me here or on Discord Jacek#6800 (Jasseji)

@till213 till213 self-assigned this Apr 28, 2024
@till213 till213 added the enhancement New feature or request label Apr 28, 2024
@till213
Copy link
Owner

till213 commented Apr 28, 2024

Hello,

From all I know getting access via SimConnect from an external application (not in-process addon: I think in those you can simply prefix the desired variable name with "L:") is not possible "out of the box".

There has been an older discussion in the MSFS forum, suggesting to implement an in-process addon that would translate the local variables as custom SimConnect events. But yes, that requires the installation of such an addon in the Community folder, not to mention to actually implement such an addon in the first place (that would most likely be aircraft-specific, too - no?).

Has this changed? Are there other ways to access local variables via SimConnect? I have not heard yet from this "SPAD.next" script - will have to do some research. Or do you have any additional info?

@till213
Copy link
Owner

till213 commented May 1, 2024

Oh!

I just stumbled over the changelog of the SDK and noticed this here:

https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/API_Reference/Events_And_Data/SimConnect_AddToDataDefinition.htm

"It is possible to get and/or set an RPN "L" variable through SimConnect using the SimConnect_AddToDataDefinition function, for example:"

SimConnect_AddToDataDefinition(hSimConnect, DataDefinitionID, "L:VARIABLE_NAME", "number", SIMCONNECT_DATATYPE_FLOAT64);

This has been mentioned in the changelog for the SDK Release 0.21.0.

So it seems that this new feature would indeed make it possible to have a user-defined set of "LVARS" recorded and replayed.

UPDATE: Before we get all too excited, the price-wining question is of course: does this also apply to SimConnect when used from an external process (such as Sky Dolly), or only for "in-process addons" (that can also use the SimConnect API)? To be tried and tested...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants